From: Adriaan de Jong Date: Wed, 29 Jun 2011 12:53:41 +0000 (+0200) Subject: Refactored: made M_SSL dependent on USE_OPENSSL X-Git-Tag: v2.3-alpha1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71ebd84debcea72d5b86861aca33553eb435126c;p=thirdparty%2Fopenvpn.git Refactored: made M_SSL dependent on USE_OPENSSL Signed-off-by: Adriaan de Jong Acked-by: James Yonan Signed-off-by: David Sommerseth --- diff --git a/error.c b/error.c index 2310f96a2..a0de53e80 100644 --- a/error.c +++ b/error.c @@ -37,8 +37,10 @@ #include "ps.h" #ifdef USE_CRYPTO +#ifdef USE_OPENSSL #include #endif +#endif #include "memdbg.h" @@ -244,6 +246,7 @@ void x_msg (const unsigned int flags, const char *format, ...) } #ifdef USE_CRYPTO +#ifdef USE_OPENSSL if (flags & M_SSL) { int nerrs = 0; @@ -261,6 +264,7 @@ void x_msg (const unsigned int flags, const char *format, ...) SWAP; } } +#endif #endif if (flags & M_OPTERR) diff --git a/error.h b/error.h index 4be326887..13221bd45 100644 --- a/error.h +++ b/error.h @@ -95,7 +95,11 @@ extern int x_msg_line_num; #define M_ERRNO (1<<8) /* show errno description */ #define M_ERRNO_SOCK (1<<9) /* show socket errno description */ -#define M_SSL (1<<10) /* show SSL error */ + +#ifdef USE_OPENSSL +# define M_SSL (1<<10) /* show SSL error */ +#endif + #define M_NOMUTE (1<<11) /* don't do mute processing */ #define M_NOPREFIX (1<<12) /* don't show date/time prefix */ #define M_USAGE_SMALL (1<<13) /* fatal options error, call usage_small */