aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/x509.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2019-11-10 19:16:56 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2019-11-11 08:16:56 +0800
commit1a73704b8cf432fb74fc9f52ed4a0ac6637e078f (patch)
tree0b2036c46ba8b368f44f349e2485e413021736d6 /src/_cffi_src/openssl/x509.py
parent251321301546a8683099a42381e56d6230eda3a4 (diff)
downloadcryptography-1a73704b8cf432fb74fc9f52ed4a0ac6637e078f.tar.gz
cryptography-1a73704b8cf432fb74fc9f52ed4a0ac6637e078f.tar.bz2
cryptography-1a73704b8cf432fb74fc9f52ed4a0ac6637e078f.zip
Fixed #5050 -- dropped support for an old LibresSSL release (#5056)
* Fixed #5050 -- dropped support for an old LibresSSL release * Changelog
Diffstat (limited to 'src/_cffi_src/openssl/x509.py')
-rw-r--r--src/_cffi_src/openssl/x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_cffi_src/openssl/x509.py b/src/_cffi_src/openssl/x509.py
index b48f3179..991e1f09 100644
--- a/src/_cffi_src/openssl/x509.py
+++ b/src/_cffi_src/openssl/x509.py
@@ -270,7 +270,7 @@ void X509_REQ_get0_signature(const X509_REQ *, const ASN1_BIT_STRING **,
CUSTOMIZATIONS = """
/* Added in 1.0.2 beta but we need it in all versions now due to the great
opaquing. */
-#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 && !CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER
+#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 && !CRYPTOGRAPHY_IS_LIBRESSL
/* from x509/x_x509.c version 1.0.2 */
void X509_get0_signature(const ASN1_BIT_STRING **psig,
const X509_ALGOR **palg, const X509 *x)
@@ -327,7 +327,7 @@ int i2d_re_X509_CRL_tbs(X509_CRL *crl, unsigned char **pp) {
return i2d_X509_CRL_INFO(crl->crl, pp);
}
-#if !CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER
+#if !CRYPTOGRAPHY_IS_LIBRESSL
int X509_up_ref(X509 *x) {
return CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509);
}