diff options
author | wiz <wiz> | 2015-07-01 13:54:22 +0000 |
---|---|---|
committer | wiz <wiz> | 2015-07-01 13:54:22 +0000 |
commit | e4d86618af97ef0333c0e036706ac5a325542877 (patch) | |
tree | b8a82efb7ee74741d1caa8b50d0468851e59bb7d /security/py-asn1 | |
parent | 4a658b551270af2aa5cd1404dae6d32283b80ed8 (diff) | |
download | pkgsrc-e4d86618af97ef0333c0e036706ac5a325542877.tar.gz |
Update to 0.1.8:
Revision 0.1.8
--------------
- ObjectIdentifier codec fixed to work properly with arc 0 and arc 2 values.
- Explicit limit on ObjectIdentifier arc value size removed.
- Unicode initializer support added to OctetString type and derivatives.
- New prettyPrintType() abstract method implemented to base pyasn1 types
to facilitate encoding errors analisys.
- The __str__() method implemented to Tag, TagSet and TagMap classes to
ease encoding errors troubleshooting.
easing encoding errors
- Fix to SEQUENCE and SET types to give them their private componentTypes
collection (which is a NamedTypes object) so that they won't collide in
a MT execution environment.
- Missing T61String,ISO646String character types and ObjectDescriptor useful
type added.
- Distribute is gone, switched to setuptools completely.
- Missing NamedValues.__repr__() added.
- The base.NoValue() class, that indicates uninitialized ASN.1 object,
made public.
- The base.NoValue() class instances now support __repr__() what makes
possible to perform repr() on uninitialized pyasn1 types objects.
- When comparing ASN.1 types, by-tag and/or by-constraints matching
can now be performed with the isSuperTypeOf()/isSameTypeWith() optional
flags.
- Constructed types now verify their consistency by invoking
isSameTypeWith(matchTags=True, matchConstraints=False) and
isSuperTypeOf(matchTags=False, matchConstraints=True) for each of their
components rather than isSuperTypeOf() as it used to be. Constriants check
could be enforced to isSameTypeWith() with the strictConstraints=True
constructed classes attribute.
- Constructed types can now be initialized with new .setComponents() method
which accepts both var-args and keyword-args. Default repr() modified to
reflect this change.
- NamedTypes() and NamedValues() made comparable.
- Test coverage extended to cover pyasn1 types __repr__() function.
- The abs(Integer()) & abs(Real()) operation now returns respective pyasn1
type, not a Python type.
- More Python magic methods implementations added to Integer & Real classes
(e.g. __pos__, __neg__, __round__, __floor__, __ceil__, __trunc__)
- The Integer.__invert__ Python magic method implemented.
- The OctetString.__int__() and .__float__() magic methods implemented.
- Handle the case of null writer at Debug printer.
- BitString encoder/decoder performance improved.
- Built-in debugging is now based on Python logging module.
- Fix to NamedType.__repr__() to work properly.
- Fixes to __repr__() implementation of many built-in ASN.1 types to take into
account all of their initializers such as tagSet, subtypeSpec etc.
- String typed float initializer to REAL type now supported.
- Float typed mantissa initializer to REAL type for base 2 added.
- Encoding bases 8 and 16 support for REAL type binary encoder added.
- More strict CER/DER encoders added for GeneralizedTime and UTCTime types.
- Asn1Item.hasValue() added to easily distinguish initalized ASN.1 objects
from uninitialized ones (e.g. pure types).
- Fix to REAL type binary decoder to handle different bases and scale factor.
- Fix to TagSet.repr() to include [obsolete] baseTag information.
- Fix to broken REAL type decoding handling.
- Fix to BitString and OctetString decoders dealing with constructed
encoding -- it used to be possible to embed other types in substrate.
- Fix to end-of-octest sentinel handling:
* require strict two-zeros sentinel encoding
* recognize EOO sentinel only when explicitly requested by caller
of the decoder via allowEoo=True parameter (warning: API change)
- DER codec hardened not to tolerate indefinite length encoding/decoding.
Diffstat (limited to 'security/py-asn1')
-rw-r--r-- | security/py-asn1/Makefile | 4 | ||||
-rw-r--r-- | security/py-asn1/PLIST | 8 | ||||
-rw-r--r-- | security/py-asn1/distinfo | 8 |
3 files changed, 13 insertions, 7 deletions
diff --git a/security/py-asn1/Makefile b/security/py-asn1/Makefile index f7775b433e5..7715578b540 100644 --- a/security/py-asn1/Makefile +++ b/security/py-asn1/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.5 2013/05/15 22:25:22 wiz Exp $ +# $NetBSD: Makefile,v 1.6 2015/07/01 13:54:22 wiz Exp $ -DISTNAME= pyasn1-0.1.7 +DISTNAME= pyasn1-0.1.8 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//} CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyasn1/} diff --git a/security/py-asn1/PLIST b/security/py-asn1/PLIST index bdc84f73694..829412bbb2b 100644 --- a/security/py-asn1/PLIST +++ b/security/py-asn1/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2013/05/15 22:25:22 wiz Exp $ +@comment $NetBSD: PLIST,v 1.6 2015/07/01 13:54:22 wiz Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -43,6 +43,12 @@ ${PYSITELIB}/pyasn1/codec/der/encoder.pyo ${PYSITELIB}/pyasn1/compat/__init__.py ${PYSITELIB}/pyasn1/compat/__init__.pyc ${PYSITELIB}/pyasn1/compat/__init__.pyo +${PYSITELIB}/pyasn1/compat/binary.py +${PYSITELIB}/pyasn1/compat/binary.pyc +${PYSITELIB}/pyasn1/compat/binary.pyo +${PYSITELIB}/pyasn1/compat/iterfunc.py +${PYSITELIB}/pyasn1/compat/iterfunc.pyc +${PYSITELIB}/pyasn1/compat/iterfunc.pyo ${PYSITELIB}/pyasn1/compat/octets.py ${PYSITELIB}/pyasn1/compat/octets.pyc ${PYSITELIB}/pyasn1/compat/octets.pyo diff --git a/security/py-asn1/distinfo b/security/py-asn1/distinfo index 0f0db2e8325..9639fcbfebb 100644 --- a/security/py-asn1/distinfo +++ b/security/py-asn1/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.3 2013/05/15 22:25:22 wiz Exp $ +$NetBSD: distinfo,v 1.4 2015/07/01 13:54:22 wiz Exp $ -SHA1 (pyasn1-0.1.7.tar.gz) = e32b91c5a5d9609fb1d07d8685a884bab22ca6d0 -RMD160 (pyasn1-0.1.7.tar.gz) = 00dc0fc0d077239f3b60aff81280d2c502c4e211 -Size (pyasn1-0.1.7.tar.gz) = 68120 bytes +SHA1 (pyasn1-0.1.8.tar.gz) = 1fac3b68e5ae4b34ef35abf36c946d0b03a26812 +RMD160 (pyasn1-0.1.8.tar.gz) = 8891d1337132e00ac7466d6632c35b6b47e0bed6 +Size (pyasn1-0.1.8.tar.gz) = 75676 bytes |