From 1b37437fe437d936d264dc6ecf6a2a3991580e36 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 24 Sep 2018 11:21:30 +0000 Subject: * src/ne_openssl.c (ne_ssl_context_create): Enable Post-Handshake Auth with OpenSSL 1.1.1. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2019 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- src/ne_openssl.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.1