summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2017-02-26 16:43:28 +0000
committerLuca Barbato <lu_zero@gentoo.org>2017-02-26 16:43:56 +0000
commit7cb9bf4b1803801f4670546a08e56a1a2b3b9756 (patch)
tree4496fc9b4183cbf9d025a70cc3acd2b7bcd000dc /dev-python/cryptography
parentprofiles: stable mask openmpi fabrics on amd64 (diff)
downloadgentoo-7cb9bf4b1803801f4670546a08e56a1a2b3b9756.tar.gz
gentoo-7cb9bf4b1803801f4670546a08e56a1a2b3b9756.tar.bz2
gentoo-7cb9bf4b1803801f4670546a08e56a1a2b3b9756.zip
dev-python/cryptography: Fix libressl support
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-python/cryptography')
-rw-r--r--dev-python/cryptography/cryptography-1.7.2.ebuild1
-rw-r--r--dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch16
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-python/cryptography/cryptography-1.7.2.ebuild b/dev-python/cryptography/cryptography-1.7.2.ebuild
index c8c7f9b25d72..85f516caaf19 100644
--- a/dev-python/cryptography/cryptography-1.7.2.ebuild
+++ b/dev-python/cryptography/cryptography-1.7.2.ebuild
@@ -43,6 +43,7 @@ DEPEND="${RDEPEND}
)"
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
+PATCHES=( "${FILESDIR}"/${P}-libressl-2.5.1.patch )
python_test() {
distutils_install_for_testing
diff --git a/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch b/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch
new file mode 100644
index 000000000000..38fce99a5ef6
--- /dev/null
+++ b/dev-python/cryptography/files/cryptography-1.7.2-libressl-2.5.1.patch
@@ -0,0 +1,16 @@
+diff -urN cryptography-1.7.2.orig/src/_cffi_src/openssl/x509_vfy.py cryptography-1.7.2/src/_cffi_src/openssl/x509_vfy.py
+--- cryptography-1.7.2.orig/src/_cffi_src/openssl/x509_vfy.py 2017-01-27 15:09:52.000000000 +0000
++++ cryptography-1.7.2/src/_cffi_src/openssl/x509_vfy.py 2017-02-26 15:15:09.889855740 +0000
+@@ -221,10 +221,12 @@
+ 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;
++#ifndef X509_V_ERR_HOSTNAME_MISMATCH
+ 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 && \