security/py-cryptography: Update to 1.6

Changelog:	https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst

PR:		214915
Approved by:	ports-secteam (with hat)
MFH:		2016Q4
Security:	CVE-2016-9243
This commit is contained in:
Mark Felder 2016-12-04 22:18:51 +00:00
parent dfca695d96
commit f999f2ff7e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427810
3 changed files with 5 additions and 18 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= cryptography
PORTVERSION= 1.4
PORTVERSION= 1.6
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -21,8 +21,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.4.1:devel/py-six \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest \
${PYTHON_PKGNAMEPREFIX}iso8601>0:devel/py-iso8601
USES= python
USE_OPENSSL= yes
USES= python ssl
USE_PYTHON= autoplist distutils
CFLAGS+= -I${OPENSSLINC}

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1471010865
SHA256 (cryptography-1.4.tar.gz) = bb149540ed90c4b2171bf694fe6991d6331bc149ae623c8ff419324f4222d128
SIZE (cryptography-1.4.tar.gz) = 399707
TIMESTAMP = 1480367088
SHA256 (cryptography-1.6.tar.gz) = 4d0d86d2c8d3fc89133c3fa0d164a688a458b6663ab6fa965c80d6c2cdaf9b3f
SIZE (cryptography-1.6.tar.gz) = 410073

View file

@ -1,12 +0,0 @@
--- src/_cffi_src/openssl/ec.py.orig 2016-06-04 17:06:01 UTC
+++ src/_cffi_src/openssl/ec.py
@@ -371,7 +371,8 @@ EC_GROUP *(*EC_GROUP_new_curve_GF2m)(
static const long Cryptography_HAS_EC2M = 1;
#endif
-#if defined(OPENSSL_NO_EC) || OPENSSL_VERSION_NUMBER < 0x1000200f || \
+#if defined(OPENSSL_NO_EC) || \
+ OPENSSL_VERSION_NUMBER < 0x1000200f && !defined(LIBRESSL_VERSION_NUMBER) || \
defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20020002L
static const long Cryptography_HAS_EC_1_0_2 = 0;
const char *(*EC_curve_nid2nist)(int) = NULL;