summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2023-05-09 16:26:55 +0100
committerJoe Orton <jorton@apache.org>2023-05-10 10:07:12 +0100
commit231a1d3f3f427b823753dc2e53adcf9cafda619b (patch)
tree9d93de2b05cb84ee9b2fff9f99c9c3a644d5cce5
parentea4cc797a4a6cf39639e9c0721eb59e314b3e42a (diff)
downloadneon-git-master.tar.gz
* src/ne_openssl.c: Fix GCC warning with OpenSSL build.HEADmaster
-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) {