mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-11 08:54:38 +08:00
fixed MD5 Random enabling conditions
This commit is contained in:
parent
103ad75c50
commit
10175caa38
@ -1763,11 +1763,15 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PPP_MD5_RANDM==1: Use MD5 for better randomness. Automatically enabled if CHAP or EAP support is enabled.
|
* PPP_MD5_RANDM==1: Use MD5 for better randomness. Automatically enabled if CHAP support is enabled.
|
||||||
*/
|
*/
|
||||||
#ifndef PPP_MD5_RANDM
|
#ifndef PPP_MD5_RANDM
|
||||||
#define PPP_MD5_RANDM 0
|
#define PPP_MD5_RANDM 0
|
||||||
#endif
|
#endif
|
||||||
|
#if CHAP_SUPPORT
|
||||||
|
#undef PPP_MD5_RANDM
|
||||||
|
#define PPP_MD5_RANDM 1 /* MD5 Random is required for CHAP */
|
||||||
|
#endif /* CHAP_SUPPORT */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PolarSSL library, used if necessary and not previously disabled
|
* PolarSSL library, used if necessary and not previously disabled
|
||||||
@ -1804,9 +1808,7 @@
|
|||||||
|
|
||||||
#if CHAP_SUPPORT || EAP_SUPPORT || PPP_MD5_RANDM
|
#if CHAP_SUPPORT || EAP_SUPPORT || PPP_MD5_RANDM
|
||||||
#ifndef LWIP_INCLUDED_POLARSSL_MD5
|
#ifndef LWIP_INCLUDED_POLARSSL_MD5
|
||||||
#define LWIP_INCLUDED_POLARSSL_MD5 1 /* CHAP and EAP require MD5 support */
|
#define LWIP_INCLUDED_POLARSSL_MD5 1 /* CHAP, EAP and MD5 Random require MD5 support */
|
||||||
#undef PPP_MD5_RANDM
|
|
||||||
#define PPP_MD5_RANDM 1 /* MD5 Random is required for CHAP and EAP */
|
|
||||||
#endif /* LWIP_INCLUDED_POLARSSL_MD5 */
|
#endif /* LWIP_INCLUDED_POLARSSL_MD5 */
|
||||||
#endif /* CHAP_SUPPORT || EAP_SUPPORT || PPP_MD5_RANDM */
|
#endif /* CHAP_SUPPORT || EAP_SUPPORT || PPP_MD5_RANDM */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user