commit | 9dbbfcff7cc72cb932dc6cbe2dedce8b42c28faa | [log] [tgz] |
---|---|---|
author | Ilya Etingof <etingof@gmail.com> | Tue Jun 11 20:39:53 2019 |
committer | Ilya Etingof <etingof@gmail.com> | Wed Jul 31 08:16:46 2019 |
tree | 5385178e4699ee2fe1b1c4ce446564aefde5a1f2 | |
parent | a2a8bbbcf2dff6e625ce6d601f1af9e84270c049 [diff] |
Make SIZE OF constraint operational Changes `ValueSizeConstraint` erroneously applied to `SequenceOf` and `SetOf` objects via `subtypeConstraint` attribute to be applied via `sizeSpec` attribute. Although `sizeSpec` takes the same constraint objects as `subtypeConstraint`, the former is only verified on de/serialization i.e. when the [constructed] object at hand is fully populated, while the latter is applied to [scalar] types at the moment of instantiation. This change also bumps pyasn1 requirement to 0.4.6.
This is a small but growing collection of ASN.1 data structures expressed in Python terms using pyasn1 data model.
If ASN.1 module you need is not present in this collection, try using Asn1ate tool that compiles ASN.1 documents into pyasn1 code.
If something does not work as expected, try browsing pyasn1 mailing list archives or post your question to Stack Overflow. If you want to contribute ASN.1 modules you have converted into pyasn1, please send me a pull request.
Copyright (c) 2005-2019, Ilya Etingof. All rights reserved.