diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-11 12:27:00 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-11 12:27:19 -0400 |
commit | c4d9141ea0725bf0b893b23d9a48a1cf23455331 (patch) | |
tree | a56f72b8e1e72d47451f85a75b29443bb646b704 | |
parent | cc23b5b3ea1a3f72a8739c5ea0140211b635a961 (diff) | |
download | cryptography-c4d9141ea0725bf0b893b23d9a48a1cf23455331.tar.gz cryptography-c4d9141ea0725bf0b893b23d9a48a1cf23455331.tar.bz2 cryptography-c4d9141ea0725bf0b893b23d9a48a1cf23455331.zip |
partially deopaque SSL_CTX to support a pyopenssl use case. fixes #783
-rw-r--r-- | cryptography/hazmat/bindings/openssl/ssl.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cryptography/hazmat/bindings/openssl/ssl.py b/cryptography/hazmat/bindings/openssl/ssl.py index ea945b8d..9735ae6a 100644 --- a/cryptography/hazmat/bindings/openssl/ssl.py +++ b/cryptography/hazmat/bindings/openssl/ssl.py @@ -123,7 +123,12 @@ typedef ... X509_STORE_CTX; static const long X509_V_OK; static const long X509_V_ERR_APPLICATION_VERIFICATION; typedef ... SSL_METHOD; -typedef ... SSL_CTX; +typedef struct ssl_st { + int version; + int type; + const SSL_METHOD *method; + ...; +} SSL_CTX; typedef struct { int master_key_length; |