Skip to content

Commit

Permalink
Update to 0.9:
Browse files Browse the repository at this point in the history
0.9 - 2015-05-13
~~~~~~~~~~~~~~~~

* Removed support for Python 3.2. This version of Python is rarely used
  and caused support headaches. Users affected by this should upgrade to 3.3+.
* Deprecated support for Python 2.6. At the time there is no time table for
  actually dropping support, however we strongly encourage all users to upgrade
  their Python, as Python 2.6 no longer receives support from the Python core
  team.
* Add support for the
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.SECP256K1` elliptic
  curve.
* Fixed compilation when using an OpenSSL which was compiled with the
  ``no-comp`` (``OPENSSL_NO_COMP``) option.
* Support :attr:`~cryptography.hazmat.primitives.serialization.Encoding.DER`
  serialization of public keys using the ``public_bytes`` method of
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`,
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`,
  and
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`.
* Support :attr:`~cryptography.hazmat.primitives.serialization.Encoding.DER`
  serialization of private keys using the ``private_bytes`` method of
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`,
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`,
  and
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`.
* Add support for parsing X.509 certificate signing requests (CSRs) with
  :func:`~cryptography.x509.load_pem_x509_csr` and
  :func:`~cryptography.x509.load_der_x509_csr`.
* Moved ``cryptography.exceptions.InvalidToken`` to
  :class:`cryptography.hazmat.primitives.twofactor.InvalidToken` and deprecated
  the old location. This was moved to minimize confusion between this exception
  and :class:`cryptography.fernet.InvalidToken`.
* Added support for X.509 extensions in :class:`~cryptography.x509.Certificate`
  objects. The following extensions are supported as of this release:

  * :class:`~cryptography.x509.BasicConstraints`
  * :class:`~cryptography.x509.AuthorityKeyIdentifier`
  * :class:`~cryptography.x509.SubjectKeyIdentifier`
  * :class:`~cryptography.x509.KeyUsage`
  * :class:`~cryptography.x509.SubjectAlternativeName`
  * :class:`~cryptography.x509.ExtendedKeyUsage`
  * :class:`~cryptography.x509.CRLDistributionPoints`
  * :class:`~cryptography.x509.AuthorityInformationAccess`
  * :class:`~cryptography.x509.CertificatePolicies`

  Note that unsupported extensions with the critical flag raise
  :class:`~cryptography.x509.UnsupportedExtension` while unsupported extensions
  set to non-critical are silently ignored. Read the
  :doc:`X.509 documentation</x509>` for more information.
  • Loading branch information
wiz committed May 28, 2015
1 parent b71ac21 commit 2f4c36e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 3 additions & 2 deletions security/py-cryptography/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.22 2015/04/14 11:40:31 wiz Exp $
# $NetBSD: Makefile,v 1.23 2015/05/28 07:11:08 wiz Exp $

DISTNAME= cryptography-0.8.2
DISTNAME= cryptography-0.9
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= security python
MASTER_SITES= https://pypi.python.org/packages/source/c/cryptography/
Expand All @@ -13,6 +13,7 @@ LICENSE= apache-2.0 OR modified-bsd
DEPENDS+= ${PYPKGPREFIX}-asn1-[0-9]*:../../security/py-asn1
DEPENDS+= ${PYPKGPREFIX}-cffi>=0.8:../../devel/py-cffi
DEPENDS+= ${PYPKGPREFIX}-cparser>=2.10:../../devel/py-cparser
DEPENDS+= ${PYPKGPREFIX}-idna-[0-9]*:../../www/py-idna
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
# actually, TEST_DEPENDS
BUILD_DEPENDS+= ${PYPKGPREFIX}-iso8601-[0-9]*:../../time/py-iso8601
Expand Down
7 changes: 6 additions & 1 deletion security/py-cryptography/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.8 2015/03/15 21:10:16 wiz Exp $
@comment $NetBSD: PLIST,v 1.9 2015/05/28 07:11:08 wiz Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
Expand Down Expand Up @@ -107,6 +107,9 @@ ${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_hmac.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_key_derivation.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_key_derivation.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_key_derivation.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_symmetric_key_wrap.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_symmetric_key_wrap.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_symmetric_key_wrap.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secimport.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secimport.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secimport.pyo
Expand Down Expand Up @@ -206,6 +209,8 @@ ${PYSITELIB}/cryptography/hazmat/bindings/openssl/rand.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rsa.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rsa.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rsa.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/src/osrandom_engine.c
${PYSITELIB}/cryptography/hazmat/bindings/openssl/src/osrandom_engine.h
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ssl.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ssl.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ssl.pyo
Expand Down
8 changes: 4 additions & 4 deletions security/py-cryptography/distinfo
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.15 2015/04/12 14:42:30 wiz Exp $
$NetBSD: distinfo,v 1.16 2015/05/28 07:11:08 wiz Exp $

SHA1 (cryptography-0.8.2.tar.gz) = b04c2172d34caa40143f620afe414563f5c98c9a
RMD160 (cryptography-0.8.2.tar.gz) = 7d90dab70ec9aceea7039aee3b97e7ec1071a8c4
Size (cryptography-0.8.2.tar.gz) = 268288 bytes
SHA1 (cryptography-0.9.tar.gz) = f11db888d32a25d74ef960e47bed8119c0afd1b8
RMD160 (cryptography-0.9.tar.gz) = 0d370927c1ad5682763d0127c3119608cc0b2882
Size (cryptography-0.9.tar.gz) = 302794 bytes
SHA1 (patch-src_cryptography_hazmat_bindings_utils.py) = 1dbe88db3f1af4dd1b5836d9f353223d532d79bb
SHA1 (patch-src_cryptography_hazmat_primitives_constant__time.py) = dae1d27d76589a0f1f4236e4b8a311bb44c43185
SHA1 (patch-src_cryptography_hazmat_primitives_padding.py) = 26320f2a5c8a756476e4e61a136adf79a2d3d3d1

0 comments on commit 2f4c36e

Please sign in to comment.