python-cryptography: fix build against libressl-2.2.1
This commit is contained in:
parent
e4d3ba2306
commit
37f46ee54c
2 changed files with 12 additions and 1 deletions
11
srcpkgs/python-cryptography/patches/libressl.patch
Normal file
11
srcpkgs/python-cryptography/patches/libressl.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/cryptography/hazmat/bindings/openssl/ec.py
|
||||
+++ src/cryptography/hazmat/bindings/openssl/ec.py
|
||||
@@ -390,7 +390,7 @@ static const long Cryptography_HAS_EC2M = 1;
|
||||
#endif
|
||||
|
||||
#if defined(OPENSSL_NO_EC) || OPENSSL_VERSION_NUMBER < 0x1000200f || \
|
||||
- defined(LIBRESSL_VERSION_NUMBER)
|
||||
+ !defined(LIBRESSL_VERSION_NUMBER)
|
||||
static const long Cryptography_HAS_EC_1_0_2 = 0;
|
||||
const char *(*EC_curve_nid2nist)(int) = NULL;
|
||||
#else
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python-cryptography'
|
||||
pkgname=python-cryptography
|
||||
version=0.9.3
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="cryptography-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
|
|
Loading…
Reference in a new issue