From bfe0c3a8e01c69f4a757c8915e18d012e9aee218 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 21 Feb 2015 19:43:04 +0100 Subject: [PATCH] opt.h: fixed warnings if PPP auth support is not enabled lwip/src/netif/ppp/polarssl/md4.c:43:20: warning: "LWIP_INCLUDED_POLARSSL_MD4" is not defined [-Wundef] lwip/src/netif/ppp/polarssl/sha1.c:42:20: warning: "LWIP_INCLUDED_POLARSSL_SHA1" is not defined [-Wundef] lwip/src/netif/ppp/polarssl/des.c:43:20: warning: "LWIP_INCLUDED_POLARSSL_DES" is not defined [-Wundef] --- src/include/lwip/opt.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index 6aae653f..79612bc8 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -2095,9 +2095,7 @@ * If set (=1), the default if required by another enabled PPP feature unless * explicitly set to 0, using included lwIP PolarSSL. * - * If clear (=0), using external PolarSSL. - * - * Undefined if not needed. + * If clear (=0), not needed or using external PolarSSL. * * Beware of the stack requirements which can be a lot larger if you are not * using our cleaned PolarSSL library. @@ -2121,6 +2119,20 @@ #endif /* LWIP_INCLUDED_POLARSSL_DES */ #endif /* MSCHAP_SUPPORT */ +/* Default value if unset */ +#ifndef LWIP_INCLUDED_POLARSSL_MD4 +#define LWIP_INCLUDED_POLARSSL_MD4 0 +#endif /* LWIP_INCLUDED_POLARSSL_MD4 */ +#ifndef LWIP_INCLUDED_POLARSSL_MD5 +#define LWIP_INCLUDED_POLARSSL_MD5 0 +#endif /* LWIP_INCLUDED_POLARSSL_MD5 */ +#ifndef LWIP_INCLUDED_POLARSSL_SHA1 +#define LWIP_INCLUDED_POLARSSL_SHA1 0 +#endif /* LWIP_INCLUDED_POLARSSL_SHA1 */ +#ifndef LWIP_INCLUDED_POLARSSL_DES +#define LWIP_INCLUDED_POLARSSL_DES 0 +#endif /* LWIP_INCLUDED_POLARSSL_DES */ + /* * Timeouts */