summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-06-29 14:53:41 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-22 11:32:40 +0200
commit71ebd84debcea72d5b86861aca33553eb435126c (patch)
treee61bffba7f9a307dc63f5aee5e2fd87e13392bb7 /error.c
parent9fb45319cba1f99ffe5538243a4e735191504cc8 (diff)
downloadopenvpn-71ebd84debcea72d5b86861aca33553eb435126c.tar.gz
openvpn-71ebd84debcea72d5b86861aca33553eb435126c.tar.xz
openvpn-71ebd84debcea72d5b86861aca33553eb435126c.zip
Refactored: made M_SSL dependent on USE_OPENSSL
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: James Yonan <james@openvpn.net> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/error.c b/error.c
index 2310f96..a0de53e 100644
--- a/error.c
+++ b/error.c
@@ -37,8 +37,10 @@
#include "ps.h"
#ifdef USE_CRYPTO
+#ifdef USE_OPENSSL
#include <openssl/err.h>
#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;
@@ -262,6 +265,7 @@ void x_msg (const unsigned int flags, const char *format, ...)
}
}
#endif
+#endif
if (flags & M_OPTERR)
{