diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-09-24 11:21:30 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-09-24 11:21:30 +0000 |
commit | 1b37437fe437d936d264dc6ecf6a2a3991580e36 (patch) | |
tree | 488f9392ae8867172359f891b4e84e94a1cc5245 | |
parent | 2e225838696e89a3f86e3a0134de51dcc9e9a01f (diff) | |
download | neon-1b37437fe437d936d264dc6ecf6a2a3991580e36.tar.gz |
* 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
-rw-r--r-- | src/ne_openssl.c | 3 |
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); |