summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ne_openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ne_openssl.c b/src/ne_openssl.c
index a9b1134..9e1499d 100644
--- a/src/ne_openssl.c
+++ b/src/ne_openssl.c
@@ -581,7 +581,7 @@ ne_ssl_context *ne_ssl_context_create(int mode)
/* enable workarounds for buggy SSL server implementations */
SSL_CTX_set_options(ctx->ctx, SSL_OP_ALL);
SSL_CTX_set_verify(ctx->ctx, SSL_VERIFY_PEER, verify_callback);
-#if LIBRESSL_VERSION_NUMBER >= 0x3040000fL || (!defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10101000L)
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x3040000fL || (!defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10101000L)
SSL_CTX_set_post_handshake_auth(ctx->ctx, 1);
#endif
} else if (mode == NE_SSL_CTX_SERVER) {