aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-05-02 11:35:43 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-05-02 11:35:43 -0400
commitb3c81f86f9677e77ff3c42fefeb2c1bc94dd063c (patch)
tree4b6c8902cf417e57eb92f8c2eee8b7557987f6f1 /src
parent61c3c1495d6f2afd52ec738b7591f6dc01aaa582 (diff)
parentf27897ab292dbd7cb9fba0055591d8b5423defea (diff)
downloadcryptography-b3c81f86f9677e77ff3c42fefeb2c1bc94dd063c.tar.gz
cryptography-b3c81f86f9677e77ff3c42fefeb2c1bc94dd063c.tar.bz2
cryptography-b3c81f86f9677e77ff3c42fefeb2c1bc94dd063c.zip
Merge pull request #1888 from Lukasa/cert_verify_cb
Expose SSL_CTX_set_cert_verify_callback
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/bindings/openssl/ssl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/ssl.py b/src/cryptography/hazmat/bindings/openssl/ssl.py
index b182180f..4a824ae5 100644
--- a/src/cryptography/hazmat/bindings/openssl/ssl.py
+++ b/src/cryptography/hazmat/bindings/openssl/ssl.py
@@ -211,6 +211,9 @@ int SSL_CTX_use_certificate_chain_file(SSL_CTX *, const char *);
int SSL_CTX_use_PrivateKey(SSL_CTX *, EVP_PKEY *);
int SSL_CTX_use_PrivateKey_file(SSL_CTX *, const char *, int);
int SSL_CTX_check_private_key(const SSL_CTX *);
+void SSL_CTX_set_cert_verify_callback(SSL_CTX *,
+ int (*)(X509_STORE_CTX *,void *),
+ void *);
void SSL_CTX_set_cert_store(SSL_CTX *, X509_STORE *);
X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *);