python-cryptography: fix build against libressl-2.2.1

This commit is contained in:
Alessio Sergi 2015-07-11 01:37:21 +02:00
parent e4d3ba2306
commit 37f46ee54c
2 changed files with 12 additions and 1 deletions

View 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

View file

@ -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"