aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_ssl.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-15 10:24:42 +1200
committerGitHub <noreply@github.com>2019-06-15 10:24:42 +1200
commit4b43ffc1292eeb70ff886847836e21ad96ed8796 (patch)
tree88c78d3a503df5bcec28f76303faf62015169011 /ext/openssl/ossl_ssl.c
parente11fa66e75696b159572135b997548eee67f7aac (diff)
parent7348165c5024771af1758fdb1bfc222e9277f4bb (diff)
downloadruby-openssl-4b43ffc1292eeb70ff886847836e21ad96ed8796.tar.gz
Merge pull request #239 from mkauf/post_handshake_auth
Support client certificates with TLS 1.3
Diffstat (limited to 'ext/openssl/ossl_ssl.c')
-rw-r--r--ext/openssl/ossl_ssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index df2304e4..ec49587a 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -810,6 +810,10 @@ ossl_sslctx_setup(VALUE self)
}
#endif /* OPENSSL_NO_EC */
+#ifdef HAVE_SSL_CTX_SET_POST_HANDSHAKE_AUTH
+ SSL_CTX_set_post_handshake_auth(ctx, 1);
+#endif
+
val = rb_attr_get(self, id_i_cert_store);
if (!NIL_P(val)) {
X509_STORE *store = GetX509StorePtr(val); /* NO NEED TO DUP */