Fixed compiling issues when using --disable-crypto

Peter Korsgaard <jacmet@sunsite.dk> reported an issue [1] when compiling
with --disable-crypto activated.  He suggested a patch, which only
partly solved the issue.  SVN r6568 / commit 3cf9dd88fd 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] <http://sourceforge.net/mailarchive/forum.php?thread_name=87fwx08bod.fsf%40macbook.be.48ers.dk&forum_name=openvpn-devel>

Signed-off-by: James Yonan <james@openvpn.net>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
This commit is contained in:
James Yonan 2010-11-14 23:38:47 +01:00 committed by David Sommerseth
parent 3adf2f558e
commit 423d68b0ed
2 changed files with 2 additions and 5 deletions

View file

@ -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 */

View file

@ -45,6 +45,7 @@
#include "pool.h"
#include "helper.h"
#include "manage.h"
#include "forward.h"
#include "memdbg.h"