aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/cryptography.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-09-01 14:53:12 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2018-09-01 13:53:12 -0500
commitb41903740723d90be152a8a8e2a161b5c0110122 (patch)
tree44dec4a450d0fd604fef01d2554a1c6d64aa06f3 /src/_cffi_src/openssl/cryptography.py
parentd3601b1ab171bdcaf5cb4377e4394ebd31d49a92 (diff)
downloadcryptography-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.py5
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 = """