summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ne_openssl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ne_openssl.c b/src/ne_openssl.c
index e7b044b..462e0ee 100644
--- a/src/ne_openssl.c
+++ b/src/ne_openssl.c
@@ -578,6 +578,9 @@ 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 OPENSSL_VERSION_NUMBER >= 0x10101000L
+ SSL_CTX_set_post_handshake_auth(ctx->ctx, 1);
+#endif
} else if (mode == NE_SSL_CTX_SERVER) {
ctx->ctx = SSL_CTX_new(SSLv23_server_method());
SSL_CTX_set_session_cache_mode(ctx->ctx, SSL_SESS_CACHE_CLIENT);