added ECP_SUPPORT in opt.h (disabled by default); renamed MD5_SUPPORT to PPP_MD5_RANDM, which is more meaningful

This commit is contained in:
Sylvain Rochet
2012-06-03 13:07:46 +02:00
parent 9c35403b98
commit 05c84a147d
3 changed files with 17 additions and 10 deletions

View File

@@ -1741,6 +1741,13 @@
#define CCP_SUPPORT 0
#endif
/**
* ECP_SUPPORT==1: Support ECP. CURRENTLY NOT SUPPORTED! DO NOT SET!
*/
#ifndef ECP_SUPPORT
#define ECP_SUPPORT 0
#endif
/**
* VJ_SUPPORT==1: Support VJ header compression.
*/
@@ -1749,10 +1756,10 @@
#endif
/**
* MD5_SUPPORT==1: Support MD5 (see also CHAP).
* PPP_MD5_RANDM==1: Use MD5 for better randomness.
*/
#ifndef MD5_SUPPORT
#define MD5_SUPPORT 0
#ifndef PPP_MD5_RANDM
#define PPP_MD5_RANDM 0
#endif
/**
@@ -1788,11 +1795,11 @@
* using our cleaned PolarSSL library.
*/
#if CHAP_SUPPORT || EAP_SUPPORT || MD5_SUPPORT
#if CHAP_SUPPORT || EAP_SUPPORT || PPP_MD5_RANDM
#ifndef LWIP_INCLUDED_POLARSSL_MD5
#define LWIP_INCLUDED_POLARSSL_MD5 1 /* CHAP and EAP require MD5 support */
#endif /* LWIP_INCLUDED_POLARSSL_MD5 */
#endif /* CHAP_SUPPORT || EAP_SUPPORT || MD5_SUPPORT */
#endif /* CHAP_SUPPORT || EAP_SUPPORT || PPP_MD5_RANDM */
#if MSCHAP_SUPPORT
#ifndef LWIP_INCLUDED_POLARSSL_MD4