From 66e4fa95361b45e92f6102cada620cc870f42cd9 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 11 Apr 2017 19:51:46 +0200 Subject: [PATCH] python-cryptography: fix libressl-2.5.3 --- .../patches/fix-libressl-2.5.3.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/python-cryptography/patches/fix-libressl-2.5.3.patch diff --git a/srcpkgs/python-cryptography/patches/fix-libressl-2.5.3.patch b/srcpkgs/python-cryptography/patches/fix-libressl-2.5.3.patch new file mode 100644 index 00000000000..66fe89c4b91 --- /dev/null +++ b/srcpkgs/python-cryptography/patches/fix-libressl-2.5.3.patch @@ -0,0 +1,15 @@ +--- src/_cffi_src/openssl/x509_vfy.py.orig 2017-04-11 19:49:14.765073278 +0200 ++++ src/_cffi_src/openssl/x509_vfy.py 2017-04-11 19:48:51.541130712 +0200 +@@ -221,10 +221,12 @@ static const long X509_V_ERR_SUITE_B_INV + static const long X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM = 0; + static const long X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED = 0; + static const long X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 = 0; ++#if LIBRESSL_VERSION_NUMBER < 0x2050300fL + static const long X509_V_ERR_HOSTNAME_MISMATCH = 0; + static const long X509_V_ERR_EMAIL_MISMATCH = 0; + static const long X509_V_ERR_IP_ADDRESS_MISMATCH = 0; + #endif ++#endif + + /* OpenSSL 1.0.2beta2+ verification parameters */ + #if CRYPTOGRAPHY_OPENSSL_102BETA2_OR_GREATER && \