summaryrefslogtreecommitdiff
path: root/security/py-cryptography/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-08-17 15:55:28 +0000
committerwiz <wiz@pkgsrc.org>2015-08-17 15:55:28 +0000
commit8ad73041d1d91c46545853b4525a0755e9446122 (patch)
treec16ae18b3c94ab84d352d11f0ea5bcd72a8bab57 /security/py-cryptography/patches
parent493bc1d81c84c778a9dbecf8bb8f60383f2b7b31 (diff)
downloadpkgsrc-8ad73041d1d91c46545853b4525a0755e9446122.tar.gz
Update to 1.0:
1.0 - 2015-08-12 ~~~~~~~~~~~~~~~~ * Switched to the new `cffi`_ ``set_source`` out-of-line API mode for compilation. This results in significantly faster imports and lowered memory consumption. Due to this change we no longer support PyPy releases older than 2.6 nor do we support any released version of PyPy3 (until a version supporting cffi 1.0 comes out). * Fix parsing of OpenSSH public keys that have spaces in comments. * Support serialization of certificate signing requests using the ``public_bytes`` method of :class:`~cryptography.x509.CertificateSigningRequest`. * Support serialization of certificates using the ``public_bytes`` method of :class:`~cryptography.x509.Certificate`. * Add ``get_provisioning_uri`` method to :class:`~cryptography.hazmat.primitives.twofactor.hotp.HOTP` and :class:`~cryptography.hazmat.primitives.twofactor.totp.TOTP` for generating provisioning URIs. * Add :class:`~cryptography.hazmat.primitives.kdf.concatkdf.ConcatKDFHash` and :class:`~cryptography.hazmat.primitives.kdf.concatkdf.ConcatKDFHMAC`. * Raise a ``TypeError`` when passing objects that are not text as the value to :class:`~cryptography.x509.NameAttribute`. * Add support for :class:`~cryptography.x509.OtherName` as a general name type. * Added new X.509 extension support in :class:`~cryptography.x509.Certificate` The following new extensions are now supported: * :class:`~cryptography.x509.OCSPNoCheck` * :class:`~cryptography.x509.InhibitAnyPolicy` * :class:`~cryptography.x509.IssuerAlternativeName` * :class:`~cryptography.x509.NameConstraints` * Extension support was added to :class:`~cryptography.x509.CertificateSigningRequest`. * Add support for creating signed certificates with :class:`~cryptography.x509.CertificateBuilder`. This includes support for the following extensions: * :class:`~cryptography.x509.BasicConstraints` * :class:`~cryptography.x509.SubjectAlternativeName` * :class:`~cryptography.x509.KeyUsage` * :class:`~cryptography.x509.ExtendedKeyUsage` * :class:`~cryptography.x509.SubjectKeyIdentifier` * :class:`~cryptography.x509.AuthorityKeyIdentifier` * :class:`~cryptography.x509.AuthorityInformationAccess` * :class:`~cryptography.x509.CRLDistributionPoints` * :class:`~cryptography.x509.InhibitAnyPolicy` * :class:`~cryptography.x509.IssuerAlternativeName` * :class:`~cryptography.x509.OCSPNoCheck` * Add support for creating certificate signing requests with :class:`~cryptography.x509.CertificateSigningRequestBuilder`. This includes support for the same extensions supported in the ``CertificateBuilder``. * Deprecate ``encode_rfc6979_signature`` and ``decode_rfc6979_signature`` in favor of :func:`~cryptography.hazmat.primitives.asymmetric.utils.encode_dss_signature` and :func:`~cryptography.hazmat.primitives.asymmetric.utils.decode_dss_signature`.
Diffstat (limited to 'security/py-cryptography/patches')
-rw-r--r--security/py-cryptography/patches/patch-src_cryptography_hazmat_bindings_utils.py32
-rw-r--r--security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_constant__time.py15
-rw-r--r--security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_padding.py15
3 files changed, 0 insertions, 62 deletions
diff --git a/security/py-cryptography/patches/patch-src_cryptography_hazmat_bindings_utils.py b/security/py-cryptography/patches/patch-src_cryptography_hazmat_bindings_utils.py
deleted file mode 100644
index e1cb525cbc2..00000000000
--- a/security/py-cryptography/patches/patch-src_cryptography_hazmat_bindings_utils.py
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-src_cryptography_hazmat_bindings_utils.py,v 1.1 2015/01/03 16:00:55 wiz Exp $
-
-Fix soname so cffi doesn't invent one for each python version + platform.
-
---- src/cryptography/hazmat/bindings/utils.py.orig 2014-12-29 01:46:47.000000000 +0000
-+++ src/cryptography/hazmat/bindings/utils.py
-@@ -93,6 +93,7 @@ def build_ffi_for_binding(module_prefix,
- cdef_source="\n".join(types + functions + macros),
- verify_source=verify_source,
- libraries=libraries,
-+ module_name=module_name,
- extra_compile_args=extra_compile_args,
- extra_link_args=extra_link_args,
- )
-@@ -100,7 +101,7 @@ def build_ffi_for_binding(module_prefix,
- return ffi
-
-
--def build_ffi(cdef_source, verify_source, libraries=[], extra_compile_args=[],
-+def build_ffi(cdef_source, verify_source, module_name, libraries=[], extra_compile_args=[],
- extra_link_args=[]):
- ffi = FFI()
- ffi.cdef(cdef_source)
-@@ -109,7 +110,7 @@ def build_ffi(cdef_source, verify_source
- ffi,
- verify_source,
- tmpdir='',
-- modulename=_create_modulename(cdef_source, verify_source, sys.version),
-+ modulename=module_name,
- libraries=libraries,
- ext_package="cryptography",
- extra_compile_args=extra_compile_args,
diff --git a/security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_constant__time.py b/security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_constant__time.py
deleted file mode 100644
index 6f753570dbd..00000000000
--- a/security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_constant__time.py
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_cryptography_hazmat_primitives_constant__time.py,v 1.1 2015/01/03 16:00:55 wiz Exp $
-
-Fix soname so cffi doesn't invent one for each python version + platform.
-
---- src/cryptography/hazmat/primitives/constant_time.py.orig 2014-12-29 01:46:47.000000000 +0000
-+++ src/cryptography/hazmat/primitives/constant_time.py
-@@ -17,7 +17,7 @@ with open(os.path.join(os.path.dirname(_
- FUNCTIONS = f.read()
-
-
--_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS)
-+_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS, module_name='constanttime')
- _lib = LazyLibrary(_ffi)
-
-
diff --git a/security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_padding.py b/security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_padding.py
deleted file mode 100644
index 9f392fc8833..00000000000
--- a/security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_padding.py
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_cryptography_hazmat_primitives_padding.py,v 1.2 2015/03/15 21:10:16 wiz Exp $
-
-Fix soname so cffi doesn't invent one for each python version + platform.
-
---- src/cryptography/hazmat/primitives/padding.py.orig 2015-03-09 04:49:14.000000000 +0000
-+++ src/cryptography/hazmat/primitives/padding.py
-@@ -22,7 +22,7 @@ with open(os.path.join(os.path.dirname(_
- FUNCTIONS = f.read()
-
-
--_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS)
-+_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS, module_name='padding')
- _lib = LazyLibrary(_ffi)
-
-