From 103ad75c507fc88c39d3dadb752d071ae1751b6f Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 3 Jun 2012 16:51:03 +0200 Subject: [PATCH] automatically enable MD5 Random support if CHAP or EAP is enabled --- src/include/lwip/opt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index c8b8cd29..fd810fec 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -1763,7 +1763,7 @@ #endif /** - * PPP_MD5_RANDM==1: Use MD5 for better randomness. + * PPP_MD5_RANDM==1: Use MD5 for better randomness. Automatically enabled if CHAP or EAP support is enabled. */ #ifndef PPP_MD5_RANDM #define PPP_MD5_RANDM 0 @@ -1805,6 +1805,8 @@ #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 */ +#undef PPP_MD5_RANDM +#define PPP_MD5_RANDM 1 /* MD5 Random is required for CHAP and EAP */ #endif /* LWIP_INCLUDED_POLARSSL_MD5 */ #endif /* CHAP_SUPPORT || EAP_SUPPORT || PPP_MD5_RANDM */