diff options
| author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2020-12-14 12:11:11 +0200 |
|---|---|---|
| committer | Alexandru Ardelean <ardeleanalex@gmail.com> | 2020-12-16 08:45:36 +0200 |
| commit | e4303a3d283b8b138668d032665e2904784ea4df (patch) | |
| tree | f85ef3f4d68859779347717d4234bdd94d79b947 /lang/python/python-cryptography/patches/0001-Add-new-ASN1_STRING_get0_data-API.patch | |
| parent | a03ce5bc7271eb8b2fc41030c52272d7e06810e6 (diff) | |
python-cryptography: bump to version 3.3.1
Regenerated patches from:
https://github.com/pyca/cryptography/pull/4920
The patch names were kept as generated via 'git format-patch 3.3.1..'
And ran through quilt.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/python-cryptography/patches/0001-Add-new-ASN1_STRING_get0_data-API.patch')
| -rw-r--r-- | lang/python/python-cryptography/patches/0001-Add-new-ASN1_STRING_get0_data-API.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lang/python/python-cryptography/patches/0001-Add-new-ASN1_STRING_get0_data-API.patch b/lang/python/python-cryptography/patches/0001-Add-new-ASN1_STRING_get0_data-API.patch new file mode 100644 index 000000000..6b206b4ce --- /dev/null +++ b/lang/python/python-cryptography/patches/0001-Add-new-ASN1_STRING_get0_data-API.patch @@ -0,0 +1,28 @@ +From 7eefc9c72f522e414f953fee2d6ca9242c566107 Mon Sep 17 00:00:00 2001 +From: Rosen Penev <rosenp@gmail.com> +Date: Fri, 7 Jun 2019 18:18:46 -0700 +Subject: [PATCH 1/7] Add new ASN1_STRING_get0_data API + +Introduced with OpenSSL 1.1 +--- + src/_cffi_src/openssl/asn1.py | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/src/_cffi_src/openssl/asn1.py ++++ b/src/_cffi_src/openssl/asn1.py +@@ -45,6 +45,7 @@ void ASN1_OBJECT_free(ASN1_OBJECT *); + + /* ASN1 STRING */ + unsigned char *ASN1_STRING_data(ASN1_STRING *); ++const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *); + int ASN1_STRING_set(ASN1_STRING *, const void *, int); + + /* ASN1 OCTET STRING */ +@@ -105,4 +106,7 @@ ASN1_NULL *ASN1_NULL_new(void); + """ + + CUSTOMIZATIONS = """ ++#if (OPENSSL_API_COMPAT >= 0x10100000L) && !CRYPTOGRAPHY_IS_LIBRESSL ++#define ASN1_STRING_data ASN1_STRING_get0_data ++#endif + """ |
