aboutsummaryrefslogtreecommitdiff
path: root/ssl.c
diff options
context:
space:
mode:
authorAdriaan de Jong2011-07-05 10:16:46 +0200
committerDavid Sommerseth2011-10-22 16:00:49 +0200
commit93c22ecc635bc5047468629f2a5423a153910c0b (patch)
tree365abadaa9408258b919ec169fdfdaf10a6a76dd /ssl.c
parent8d26c253e8f62d67b51d50f82c333ed4412000ac (diff)
downloadopenvpn-93c22ecc635bc5047468629f2a5423a153910c0b.zip
openvpn-93c22ecc635bc5047468629f2a5423a153910c0b.tar.gz
Disable CryptoAPI when not using OpenSSL, and document that fact.
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: James Yonan <james@openvpn.net> Acked-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'ssl.c')
-rw-r--r--ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl.c b/ssl.c
index 1607630..e2f0810 100644
--- a/ssl.c
+++ b/ssl.c
@@ -336,7 +336,7 @@ init_ssl (const struct options *options, struct tls_root_ctx *new_ctx)
}
}
#endif
-#ifdef WIN32
+#ifdef ENABLE_CRYPTOAPI
else if (options->cryptoapi_cert)
{
tls_ctx_load_cryptoapi(new_ctx, options->cryptoapi_cert);