From: James Yonan Date: Sun, 14 Nov 2010 22:38:47 +0000 (+0100) Subject: Fixed compiling issues when using --disable-crypto X-Git-Tag: v2.2-beta4~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=423d68b0ede7f10c02fa753cba8d60d2218d2dc7;p=thirdparty%2Fopenvpn.git Fixed compiling issues when using --disable-crypto Peter Korsgaard reported an issue [1] when compiling with --disable-crypto activated. He suggested a patch, which only partly solved the issue. SVN r6568 / commit 3cf9dd88fd84108 added a new feature which further made it impossible to compile without crypto. This patch fixes both issues, based on Peter Korsgaard's patch. [1]  Signed-off-by: James Yonan Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- diff --git a/base64.c b/base64.c index 2cc39444e..3449ae58a 100644 --- a/base64.c +++ b/base64.c @@ -80,8 +80,6 @@ base64_encode(const void *data, int size, char **str) return strlen(s); } -#if NTLM - static int pos(char c) { @@ -137,8 +135,6 @@ base64_decode(const char *str, void *data) return q - (unsigned char *) data; } -#endif /* NTLM, PKCS#11 */ - #else static void dummy(void) {} -#endif +#endif /* ENABLE_HTTP_PROXY, ENABLE_PKCS11, ENABLE_CLIENT_CR */ diff --git a/options.c b/options.c index a717e1e26..e4c3c2ec9 100644 --- a/options.c +++ b/options.c @@ -45,6 +45,7 @@ #include "pool.h" #include "helper.h" #include "manage.h" +#include "forward.h" #include "memdbg.h"