diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-04-02 18:16:24 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-04-02 18:16:24 -0700 |
commit | 82cf1ba2c8134d8656c6f1805ec958e28ada1a5c (patch) | |
tree | 1cc9dbe63bf9bfd6e98391eaf81dbb00e7c0206c | |
parent | e43360f108c018cba03b4876442eb16c53b95433 (diff) | |
parent | 4d6342c3761601f1007bd1b624bba5e31e6e833b (diff) | |
download | cryptography-82cf1ba2c8134d8656c6f1805ec958e28ada1a5c.tar.gz cryptography-82cf1ba2c8134d8656c6f1805ec958e28ada1a5c.tar.bz2 cryptography-82cf1ba2c8134d8656c6f1805ec958e28ada1a5c.zip |
Merge pull request #885 from exarkun/X509_STORE_CTX-paraphernalia
Bind a few APIs related to X509_STORE_CTX structures.
-rw-r--r-- | cryptography/hazmat/bindings/openssl/ssl.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/ssl.py b/cryptography/hazmat/bindings/openssl/ssl.py index ad102769..094310f3 100644 --- a/cryptography/hazmat/bindings/openssl/ssl.py +++ b/cryptography/hazmat/bindings/openssl/ssl.py @@ -180,6 +180,7 @@ int SSL_pending(const SSL *); int SSL_write(SSL *, const void *, int); int SSL_read(SSL *, void *, int); X509 *SSL_get_peer_certificate(const SSL *); +int SSL_get_ex_data_X509_STORE_CTX_idx(void); Cryptography_STACK_OF_X509 *SSL_get_peer_cert_chain(const SSL *); Cryptography_STACK_OF_X509_NAME *SSL_get_client_CA_list(const SSL *); @@ -219,6 +220,9 @@ int X509_STORE_CTX_get_error(X509_STORE_CTX *); void X509_STORE_CTX_set_error(X509_STORE_CTX *, int); int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *); X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *); +int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *, int, void *); +void *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *, int); + /* SSL_SESSION */ void SSL_SESSION_free(SSL_SESSION *); |