From 231a1d3f3f427b823753dc2e53adcf9cafda619b Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 9 May 2023 16:26:55 +0100 Subject: * src/ne_openssl.c: Fix GCC warning with OpenSSL build. --- src/ne_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ne_openssl.c') 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) { -- cgit v1.2.1