diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-09-22 10:22:54 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-09-22 11:22:54 -0400 |
commit | 8b8d51b752729f7237bb51274ccf158cbb4cfce0 (patch) | |
tree | 171da9fb53afa52bcd92b1e9125c743c85f5153f /src/_cffi_src/openssl/ssl.py | |
parent | eba71712349f275bec51e3176c51ecbfa883e066 (diff) | |
download | cryptography-8b8d51b752729f7237bb51274ccf158cbb4cfce0.tar.gz cryptography-8b8d51b752729f7237bb51274ccf158cbb4cfce0.tar.bz2 cryptography-8b8d51b752729f7237bb51274ccf158cbb4cfce0.zip |
1.0.2i changed the way COMP_METHOD is exported if NO_COMP is set (#3162)
* 1.0.2i changed the way COMP_METHOD is exported if NO_COMP is set
* add a comment explaining why we changed this
* 1.0.2i handles NUMERICSTRING properly now so need only test < 1.0.2i
* needs to be visible
Diffstat (limited to 'src/_cffi_src/openssl/ssl.py')
-rw-r--r-- | src/_cffi_src/openssl/ssl.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py index 6e59d859..db884b35 100644 --- a/src/_cffi_src/openssl/ssl.py +++ b/src/_cffi_src/openssl/ssl.py @@ -664,7 +664,10 @@ static const long Cryptography_HAS_SET_CERT_CB = 1; #endif -#if defined(OPENSSL_NO_COMP) || defined(LIBRESSL_VERSION_NUMBER) +/* In OpenSSL 1.0.2i+ the handling of COMP_METHOD when OPENSSL_NO_COMP was + changed and we no longer need to typedef void */ +#if (defined(OPENSSL_NO_COMP) && CRYPTOGRAPHY_OPENSSL_LESS_THAN_102I) || \ + defined(LIBRESSL_VERSION_NUMBER) static const long Cryptography_HAS_COMPRESSION = 0; typedef void COMP_METHOD; #else |