diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-04-02 20:49:43 -0400 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-04-02 20:49:43 -0400 |
commit | 4d6342c3761601f1007bd1b624bba5e31e6e833b (patch) | |
tree | 9d5e66bc04a6a5b75aac1d44f60ef906598f22d5 | |
parent | 48610a5190286ce59204fecf096d217abaf4ed23 (diff) | |
download | cryptography-4d6342c3761601f1007bd1b624bba5e31e6e833b.tar.gz cryptography-4d6342c3761601f1007bd1b624bba5e31e6e833b.tar.bz2 cryptography-4d6342c3761601f1007bd1b624bba5e31e6e833b.zip |
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 25e49672..c0a6f016 100644 --- a/cryptography/hazmat/bindings/openssl/ssl.py +++ b/cryptography/hazmat/bindings/openssl/ssl.py @@ -171,6 +171,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 *); @@ -212,6 +213,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 *); |