From 98290a0f164e9057c98a049fbb9f580201b9a01f Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 6 Jan 2022 17:30:14 +0100 Subject: [PATCH] add `SSL_set_verify` binding for pyca/pyopenssl#255 --- src/_cffi_src/openssl/ssl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py index 3ec82fb6e536..38d72b9ce3c4 100644 --- a/src/_cffi_src/openssl/ssl.py +++ b/src/_cffi_src/openssl/ssl.py @@ -181,6 +181,8 @@ X509 *SSL_get_certificate(const SSL *); X509 *SSL_get_peer_certificate(const SSL *); int SSL_get_ex_data_X509_STORE_CTX_idx(void); +void SSL_set_verify(SSL *, int, int (*)(int, X509_STORE_CTX *)); +int SSL_get_verify_mode(const SSL *); /* Added in 1.0.2 */ X509_VERIFY_PARAM *SSL_get0_param(SSL *);