diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-09-01 14:53:12 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-09-01 13:53:12 -0500 |
commit | b41903740723d90be152a8a8e2a161b5c0110122 (patch) | |
tree | 44dec4a450d0fd604fef01d2554a1c6d64aa06f3 /src/_cffi_src/openssl/cryptography.py | |
parent | d3601b1ab171bdcaf5cb4377e4394ebd31d49a92 (diff) | |
download | cryptography-b41903740723d90be152a8a8e2a161b5c0110122.tar.gz cryptography-b41903740723d90be152a8a8e2a161b5c0110122.tar.bz2 cryptography-b41903740723d90be152a8a8e2a161b5c0110122.zip |
OCSP bindings (#4449)
* add many OCSP bindings
Much of OCSP was opaqued in 1.1.0 so this also adds a bunch of getters
for older OpenSSL. However, 1.1.0 itself made it impossible to access
certain fields in the opaque struct, so we're forced to de-opaque them
for 1.1.0 through 1.1.0i as well as 1.1.1-pre1 through 1.1.1-pre9. There
is a patch (openssl/openssl#7082) that fixes this and should be in
1.1.0j and 1.1.1-pre10 (or 1.1.1 final, whichever they choose to issue)
* backslashes are sometimes useful
* comments
Diffstat (limited to 'src/_cffi_src/openssl/cryptography.py')
-rw-r--r-- | src/_cffi_src/openssl/cryptography.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/cryptography.py b/src/_cffi_src/openssl/cryptography.py index e3e73580..3ebe3c5b 100644 --- a/src/_cffi_src/openssl/cryptography.py +++ b/src/_cffi_src/openssl/cryptography.py @@ -44,6 +44,9 @@ INCLUDES = """ (OPENSSL_VERSION_NUMBER >= 0x10100000 && !CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_110F_OR_GREATER \ (OPENSSL_VERSION_NUMBER >= 0x1010006f && !CRYPTOGRAPHY_IS_LIBRESSL) +#define CRYPTOGRAPHY_OPENSSL_BETWEEN_111_and_111PRE9 \ + (OPENSSL_VERSION_NUMBER >= 0x10101000 && \ + OPENSSL_VERSION_NUMBER <= 0x10101009) #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 \ (OPENSSL_VERSION_NUMBER < 0x10002000 || CRYPTOGRAPHY_IS_LIBRESSL) @@ -51,6 +54,8 @@ INCLUDES = """ (OPENSSL_VERSION_NUMBER < 0x1000209f || CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_110 \ (OPENSSL_VERSION_NUMBER < 0x10100000 || CRYPTOGRAPHY_IS_LIBRESSL) +#define CRYPTOGRAPHY_OPENSSL_LESS_THAN_110J \ + (OPENSSL_VERSION_NUMBER < 0x101000af || CRYPTOGRAPHY_IS_LIBRESSL) """ TYPES = """ |