diff options
author | wiz <wiz> | 2013-05-15 22:25:22 +0000 |
---|---|---|
committer | wiz <wiz> | 2013-05-15 22:25:22 +0000 |
commit | b082370d1461d8988dd461fa1262c561d7719277 (patch) | |
tree | 185d8982a3931c5bb2fd162b2b6a23e02b55b987 /security/py-asn1 | |
parent | d6a108ff4e4b9cf5aa0dafe01416aedc366ff657 (diff) | |
download | pkgsrc-b082370d1461d8988dd461fa1262c561d7719277.tar.gz |
Update to 0.1.7:
Revision 0.1.7
--------------
- License updated to vanilla BSD 2-Clause to ease package use
(http://opensource.org/licenses/BSD-2-Clause).
- Test suite made discoverable by unittest/unittest2 discovery feature.
- Fix to decoder working on indefinite length substrate -- end-of-octets
marker is now detected by both tag and value. Otherwise zero values may
interfere with end-of-octets marker.
- Fix to decoder to fail in cases where tagFormat indicates inappropriate
format for the type (e.g. BOOLEAN is always PRIMITIVE, SET is always
CONSTRUCTED and OCTET STRING is either of the two)
- Fix to REAL type encoder to force primitive encoding form encoding.
- Fix to CHOICE decoder to handle explicitly tagged, indefinite length
mode encoding
- Fix to REAL type decoder to handle negative REAL values correctly. Test
case added.
Revision 0.1.6
--------------
- The compact (valueless) way of encoding zero INTEGERs introduced in
0.1.5 seems to fail miserably as the world is filled with broken
BER decoders. So we had to back off the *encoder* for a while.
There's still the IntegerEncoder.supportCompactZero flag which
enables compact encoding form whenever it evaluates to True.
- Report package version on debugging code initialization.
Revision 0.1.5
--------------
- Documentation updated and split into chapters to better match
web-site contents.
- Make prettyPrint() working for non-initialized pyasn1 data objects. It
used to throw an exception.
- Fix to encoder to produce empty-payload INTEGER values for zeros
- Fix to decoder to support empty-payload INTEGER and REAL values
- Fix to unit test suites imports to be able to run each from
their current directory
Revision 0.1.4
--------------
- Built-in codec debugging facility added
- Added some more checks to ObjectIdentifier BER encoder catching
posible 2^8 overflow condition by two leading sub-OIDs
- Implementations overriding the AbstractDecoder.valueDecoder method
changed to return the rest of substrate behind the item being processed
rather than the unprocessed substrate within the item (which is usually
empty).
- Decoder's recursiveFlag feature generalized as a user callback function
which is passed an uninitialized object recovered from substrate and
its uninterpreted payload.
- Catch inappropriate substrate type passed to decoder.
- Expose tagMap/typeMap/Decoder objects at DER decoder to uniform API.
- Obsolete __init__.MajorVersionId replaced with __init__.__version__
which is now in-sync with distutils.
- Package classifiers updated.
- The __init__.py's made non-empty (rumors are that they may be optimized
out by package managers).
- Bail out gracefully whenever Python version is older than 2.4.
- Fix to Real codec exponent encoding (should be in 2's complement form),
some more test cases added.
- Fix in Boolean truth testing built-in methods
- Fix to substrate underrun error handling at ObjectIdentifier BER decoder
- Fix to BER Boolean decoder that allows other pre-computed
values besides 0 and 1
- Fix to leading 0x80 octet handling in DER/CER/DER ObjectIdentifier decoder.
See http://www.cosic.esat.kuleuven.be/publications/article-1432.pdf
Revision 0.1.3
--------------
- Include class name into asn1 value constraint violation exception.
- Fix to OctetString.prettyOut() method that looses leading zero when
building hex string.
Revision 0.1.2
--------------
- Fix to __long__() to actually return longs on py2k
- Fix to OctetString.__str__() workings of a non-initialized object.
- Fix to quote initializer of OctetString.__repr__()
- Minor fix towards ObjectIdentifier.prettyIn() reliability
- ObjectIdentifier.__str__() is aliased to prettyPrint()
- Exlicit repr() calls replaced with '%r'
Revision 0.1.1
--------------
- Hex/bin string initializer to OctetString object reworked
(in a backward-incompatible manner)
- Fixed float() infinity compatibility issue (affects 2.5 and earlier)
- Fixed a bug/typo at Boolean CER encoder.
- Major overhawl for Python 2.4 -- 3.2 compatibility:
+ get rid of old-style types
+ drop string module usage
+ switch to rich comparation
+ drop explicit long integer type use
+ map()/filter() replaced with list comprehension
+ apply() replaced with */**args
+ switched to use 'key' sort() callback function
+ support both __nonzero__() and __bool__() methods
+ modified not to use py3k-incompatible exception syntax
+ getslice() operator fully replaced with getitem()
+ dictionary operations made 2K/3K compatible
+ base type for encoding substrate and OctetString-based types
is now 'bytes' when running py3k and 'str' otherwise
+ OctetString and derivatives now unicode compliant.
+ OctetString now supports two python-neutral getters: asOcts() & asInts()
+ print OctetString content in hex whenever it is not printable otherwise
+ in test suite, implicit relative import replaced with the absolute one
+ in test suite, string constants replaced with numerics
Revision 0.0.13
---------------
- Fix to base10 normalization function that loops on univ.Real(0)
Revision 0.0.13b
----------------
- ASN.1 Real type is now supported properly.
- Objects of Constructed types now support __setitem__()
- Set/Sequence objects can now be addressed by their field names (string index)
and position (integer index).
- Typo fix to ber.SetDecoder code that prevented guided decoding operation.
- Fix to explicitly tagged items decoding support.
- Fix to OctetString.prettyPrint() to better handle non-printable content.
- Fix to repr() workings of Choice objects.
Revision 0.0.13a
----------------
- Major codec re-design.
- Documentation significantly improved.
- ASN.1 Any type is now supported.
- All example ASN.1 modules moved to separate pyasn1-modules package.
- Fix to initial sub-OID overflow condition detection an encoder.
- BitString initialization value verification improved.
- The Set/Sequence.getNameByPosition() method implemented.
- Fix to proper behaviour of PermittedAlphabetConstraint object.
- Fix to improper Boolean substrate handling at CER/DER decoders.
- Changes towards performance improvement:
+ all dict.has_key() & dict.get() invocations replaced with modern syntax
(this breaks compatibility with Python 2.1 and older).
+ tag and tagset caches introduced to decoder
+ decoder code improved to prevent unnecessary pyasn1 objects creation
+ allow disabling components verification when setting components to
structured types, this is used by decoder whilst running in guided mode.
+ BER decoder for integer values now looks up a small set of pre-computed
substrate values to save on decoding.
+ a few pre-computed values configured to ObjectIdentifier BER encoder.
+ ChoiceDecoder split-off SequenceOf one to save on unnecessary checks.
+ replace slow hasattr()/getattr() calls with isinstance() introspection.
+ track the number of initialized components of Constructed types to save
on default/optional components initialization.
+ added a shortcut ObjectIdentifier.asTuple() to be used instead of
__getitem__() in hotspots.
+ use Tag.asTuple() and pure integers at tag encoder.
+ introduce and use in decoder the baseTagSet attribute of the built-in
ASN.1 types.
Revision 0.0.12a
----------------
- The individual tag/length/value processing methods of
encoder.AbstractItemEncoder renamed (leading underscore stripped)
to promote overloading in cases where partial substrate processing
is required.
- The ocsp.py, ldap.py example scripts added.
- Fix to univ.ObjectIdentifier input value handler to disallow negative
sub-IDs.
Diffstat (limited to 'security/py-asn1')
-rw-r--r-- | security/py-asn1/Makefile | 6 | ||||
-rw-r--r-- | security/py-asn1/PLIST | 15 | ||||
-rw-r--r-- | security/py-asn1/distinfo | 8 |
3 files changed, 21 insertions, 8 deletions
diff --git a/security/py-asn1/Makefile b/security/py-asn1/Makefile index 37f912023ab..f7775b433e5 100644 --- a/security/py-asn1/Makefile +++ b/security/py-asn1/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2012/10/23 18:16:53 asau Exp $ -# +# $NetBSD: Makefile,v 1.5 2013/05/15 22:25:22 wiz Exp $ -DISTNAME= pyasn1-0.0.11a +DISTNAME= pyasn1-0.1.7 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//} CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyasn1/} @@ -9,6 +8,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyasn1/} MAINTAINER= tonnerre@NetBSD.org HOMEPAGE= http://pyasn1.sourceforge.net/ COMMENT= ITU Abstract Syntax Notification for Python +LICENSE= 2-clause-bsd PYDISTUTILSPKG= yes PYSETUP= setup.py diff --git a/security/py-asn1/PLIST b/security/py-asn1/PLIST index 9180fd0edac..bdc84f73694 100644 --- a/security/py-asn1/PLIST +++ b/security/py-asn1/PLIST @@ -1,8 +1,9 @@ -@comment $NetBSD: PLIST,v 1.4 2010/05/01 17:23:36 tonnerre Exp $ +@comment $NetBSD: PLIST,v 1.5 2013/05/15 22:25:22 wiz Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt ${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/${EGG_INFODIR}/zip-safe ${PYSITELIB}/pyasn1/__init__.py ${PYSITELIB}/pyasn1/__init__.pyc ${PYSITELIB}/pyasn1/__init__.pyo @@ -39,6 +40,15 @@ ${PYSITELIB}/pyasn1/codec/der/decoder.pyo ${PYSITELIB}/pyasn1/codec/der/encoder.py ${PYSITELIB}/pyasn1/codec/der/encoder.pyc ${PYSITELIB}/pyasn1/codec/der/encoder.pyo +${PYSITELIB}/pyasn1/compat/__init__.py +${PYSITELIB}/pyasn1/compat/__init__.pyc +${PYSITELIB}/pyasn1/compat/__init__.pyo +${PYSITELIB}/pyasn1/compat/octets.py +${PYSITELIB}/pyasn1/compat/octets.pyc +${PYSITELIB}/pyasn1/compat/octets.pyo +${PYSITELIB}/pyasn1/debug.py +${PYSITELIB}/pyasn1/debug.pyc +${PYSITELIB}/pyasn1/debug.pyo ${PYSITELIB}/pyasn1/error.py ${PYSITELIB}/pyasn1/error.pyc ${PYSITELIB}/pyasn1/error.pyo @@ -66,6 +76,9 @@ ${PYSITELIB}/pyasn1/type/namedval.pyo ${PYSITELIB}/pyasn1/type/tag.py ${PYSITELIB}/pyasn1/type/tag.pyc ${PYSITELIB}/pyasn1/type/tag.pyo +${PYSITELIB}/pyasn1/type/tagmap.py +${PYSITELIB}/pyasn1/type/tagmap.pyc +${PYSITELIB}/pyasn1/type/tagmap.pyo ${PYSITELIB}/pyasn1/type/univ.py ${PYSITELIB}/pyasn1/type/univ.pyc ${PYSITELIB}/pyasn1/type/univ.pyo diff --git a/security/py-asn1/distinfo b/security/py-asn1/distinfo index 18bd46ab747..0f0db2e8325 100644 --- a/security/py-asn1/distinfo +++ b/security/py-asn1/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.2 2010/05/01 17:23:36 tonnerre Exp $ +$NetBSD: distinfo,v 1.3 2013/05/15 22:25:22 wiz Exp $ -SHA1 (pyasn1-0.0.11a.tar.gz) = a68483bc6def7d162e44d68aa23fbab595e2b914 -RMD160 (pyasn1-0.0.11a.tar.gz) = e5af2d88e2fa5d5e7266b8477d4a6aa4b8b2c5d2 -Size (pyasn1-0.0.11a.tar.gz) = 34317 bytes +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 |