aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-03Upgrade python/pyasn1 to v0.4.7ndk-sysroot-r21Haibo Huang
am: 1fab31ffd7 Change-Id: I231c58c0cdb60b8e7dcf9c017d247ee6f9f01c75
2019-09-04Upgrade python/pyasn1 to v0.4.7Haibo Huang
Exempt-From-Owner-Approval: upgrade library Test: None Change-Id: I32f32feccdfbafdd24e3c9d005c0b22f5527735f
2019-09-01Release 0.4.7Ilya Etingof
2019-08-28Add an afterthought on WITH COMPONENTS constraintIlya Etingof
2019-08-27Add `SET ... WITH COMPONENTS ...` ASN.1 construct support (#171)Ilya Etingof
Added `WithComponentsConstraint` along with related `ComponentPresentConstraint` and `ComponentAbsentConstraint` classes to be used with `Sequence`/`Set` types representing `SET ... WITH COMPONENTS ...` like ASN.1 constructs.
2019-08-27Fix for Python 4 (#173)Hugo van Kemenade
2019-08-25Deprecate `sizeSpec` in favor of `subtypeSpec` (#172)Ilya Etingof
This commit deprecates `subtypeSpec` attributes and keyword argument. It is now recommended to pass `ValueSizeConstraint`, as well as all other constraints, to `subtypeSpec`. By way of the change mentioned above, this commit fixes a design bug in a way of how the items assigned to constructed types are verified. Now if `Asn1Type`-based object is assigned, its compatibility is verified based on having all tags and constraint objects as the type in field definition. When a bare Python value is assigned, then field type object is cloned and initialized with the bare value (constraints verificaton would run at this moment).
2019-08-25Add `isInconsistent` property hook to all constructed types (#170)Ilya Etingof
Added `isInconsistent` property to all constructed types. This property conceptually replaces `verifySizeSpec` method to serve a more general purpose e.g. ensuring all required fields are in a good shape. By default this check invokes subtype constraints verification and is run by codecs on value de/serialisation.
2019-08-13Fix ConstraintsUnion docstringIlya Etingof
2019-08-13Prepare 0.4.7Ilya Etingof
2019-08-01Upgrade python/pyasn1 to v0.4.6Haibo Huang
am: 7e6d5fd777 Change-Id: Ic18f542a2d34010f5c6bb149e015908e18785a54
2019-08-01Upgrade python/pyasn1 to v0.4.6Haibo Huang
Exempt-From-Owner-Approval: Upgrade library Test: None Change-Id: I94305762a92ba908aa8c1f78abdc44bc28e1e53a
2019-07-31Release 0.4.6Ilya Etingof
2019-07-31Fix failing unit tests on Py25Ilya Etingof
2019-07-31Remove a couple of `except as` statements to benefit old PythonsIlya Etingof
2019-07-24Add in TEST_MAPPING for acloud unittests.Kevin Cheng
am: 6e6b0c0c3f Change-Id: I2d2eec8a2e13e075b570d734f9609c4b68975aa4
2019-07-24Add in TEST_MAPPING for acloud unittests.Kevin Cheng
Bug: 124250384 Test: atest Exempt-From-Owner-Approval: Adding dependent target tests Change-Id: I1d9bcaacc1eff07a0100fdf3f91938e095cc4e22
2019-07-13Document base ASN.1 typesIlya Etingof
Also many fixes here and there to docs and docstrings.
2019-07-13Fix Python builtins ReST references in docstringsIlya Etingof
2019-07-13Fix Travis docs build on Python 3.4+Ilya Etingof
2019-07-13Remove Python `id` from `repr`Ilya Etingof
It seems to clutter representation printout, especially in the rendered docs.
2019-07-13Enable docs build in TravisIlya Etingof
2019-07-13Add exception classes documentationIlya Etingof
Also fix references to exception objects in other docstrings.
2019-07-13Add docstring for `.reset()` and `.clear()` methodsIlya Etingof
2019-07-12Fix to pass decoder `options` to open type decoderIlya Etingof
Prior to this fix, recursively encoded open types won't get fully decoded all the way.
2019-07-12Fix CER/DER encoders to respect open types (#167)Ilya Etingof
* Fix CER/DER encoders to respect open types Added a bunch of unit tests to CER/DER codecs covering open types.
2019-07-12Add `SequenceOf`/`SetOf` list-like slicing support (#168)Ilya Etingof
2019-07-10Merge "Upgrade python/pyasn1 to v0.4.5"Haibo Huang
am: 2559a64723 Change-Id: Ida3e88d18013be67e0a63c3abc99e9e476b5b052
2019-07-10Merge "Upgrade python/pyasn1 to v0.4.5"Haibo Huang
2019-07-10Upgrade python/pyasn1 to v0.4.5Haibo Huang
Exempt-From-Owner-Approval: Upgrade library Test: build Change-Id: I879edd58806f3b9b7fbf8cc78d02c684b5b336ae
2019-07-09Add more docs on `OpenType` (#166)Ilya Etingof
This change adds more explanations and examples on ASN.1 ANY DEFINED BY syntax (OpenType).
2019-07-07Update FUNDING.ymlIlya Etingof
2019-07-06Add `SET|SEQUENCE OF ANY` encoding support (#165)Ilya Etingof
For example: AttributeTypeAndValues ::= SEQUENCE { type OBJECT IDENTIFIER, values SET OF ANY DEFINED BY type } This patch adds support of the above ASN.1 syntax to BER/DER/CER codecs. It appears that to implement this feature properly, `SetOf`/`SequenceOf` pyasn1 types need to have `.componentType` wrapped into something similar to `NamedType` that `Set`/`Sequence` have. That additional layer would then carry the open type meta information. Without it, `Sequence`/`Set` codec needs to signal `SetOf`/`SequenceOf` codec of the open type being processed, which is a slight hack. A other inconvenience is that when `SetOf`/`SequenceOf` deal with an open type component, they should not verify types on component assignment. Without open type property in `SetOf`/`SequenceOf`, the code checks for `Any` component type which is another hack. The above shortcomings should be addressed in the follow up patch.
2019-07-04Add GitHub funding buttonIlya Etingof
2019-06-30Improve CER/DER encoding of GeneralizedTime (#164)Ilya Etingof
- Added support for subseconds CER/DER encoding edge cases in `GeneralizedTime` codec - Fixed 3-digit fractional seconds value CER/DER encoding of `GeneralizedTime`
2019-06-29Rename pyasn1 unicode exceptionsIlya Etingof
The new exception classes names are `PyAsn1UnicodeDecodeError` and `PyAsn1UnicodeEncodeError`. Also, unit tests added.
2019-06-29Add specific exceptions for String issues (#155)Alex Shafer
This change helps telling unicode-related exceptions from other PyAsn1Error exceptions.
2019-06-28Fix `AnyDecoder` to accept `TagMap` as `asn1Spec` (#152)Ilya Etingof
Fixes `AnyDecoder` to accept `TagMap` as `asn1Spec`. The use-case is to make `AnyDecoder` operational when dumping raw value on error condition is enabled
2019-06-23SequenceOf/SetOf to remain a schema objects (#162)Ilya Etingof
* Add `omitEmptyOptionals` encoder option Added `omitEmptyOptionals` option which is respected by `Sequence` and `Set` encoders. When `omitEmptyOptionals` is set to `True`, empty initialized optional components are not encoded. Default is `False`. * Change `SequenceOf`/`SetOf` behaviour - New elements to `SequenceOf`/`SetOf` objects can now be added at any position - the requirement for the new elements to reside at the end of the existing ones (i.e. s[len(s)] = 123) is removed. - Removed default initializer from `SequenceOf`/`SetOf` types to ensure consistent behaviour with the rest of ASN.1 types. Before this change, `SequenceOf`/`SetOf` instances immediately become value objects behaving like an empty list. With this change, `SequenceOf`/`SetOf` objects remain schema objects unless a component is added or `.clear()` is called. - Added `.reset()` method to all constructed types to turn value object into a schema object.
2019-06-20Remove invalid escape sequences to get rid of DeprecationWarning in Python3. ↵Harrison
(#161)
2019-02-24[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-masterandroid-mainline-10.0.0_r9android-mainline-10.0.0_r7android-mainline-10.0.0_r5android-mainline-10.0.0_r4android-mainline-10.0.0_r10android-10.0.0_r9android-10.0.0_r8android-10.0.0_r7android-10.0.0_r45android-10.0.0_r44android-10.0.0_r43android-10.0.0_r42android-10.0.0_r41android-10.0.0_r40android-10.0.0_r39android-10.0.0_r38android-10.0.0_r37android-10.0.0_r36android-10.0.0_r35android-10.0.0_r34android-10.0.0_r33android-10.0.0_r32android-10.0.0_r31android-10.0.0_r30android-10.0.0_r29android-10.0.0_r28android-10.0.0_r27android-10.0.0_r26android-10.0.0_r25android-10.0.0_r24android-10.0.0_r23android-10.0.0_r22android-10.0.0_r21android-10.0.0_r20android-10.0.0_r19android-10.0.0_r18android-10.0.0_r16android-10.0.0_r15android-10.0.0_r14android-10.0.0_r13android-10.0.0_r12android10-qpr3-s1-releaseandroid10-qpr3-releaseandroid10-qpr2-s4-releaseandroid10-qpr2-s3-releaseandroid10-qpr2-s2-releaseandroid10-qpr2-s1-releaseandroid10-qpr2-releaseandroid10-qpr1-releaseandroid10-qpr1-mainline-releaseandroid10-qpr1-d-releaseandroid10-qpr1-c-s1-releaseandroid10-qpr1-c-releaseandroid10-qpr1-b-s1-releaseandroid10-qpr1-b-releaseandroid10-mainline-media-releaseandroid10-devandroid10-d4-s1-releaseandroid10-d4-releaseandroid10-c2f2-s2-releaseandroid10-c2f2-s1-releaseandroid10-c2f2-releaseXin Li
am: 9812db06f0 -s ours am skip reason: subject contains skip directive Change-Id: I440fd956546201f1cf063281328781271c1abdd7
2019-02-20DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-masterXin Li
Bug: 120848293 Change-Id: I73e2dbe8ef6649f22055ce284f31dff6e4ec7a1a
2019-01-07Add default active developers into OWNERS am: e35592b4ed am: ea06e6e375Chih-Hung Hsieh
am: 3cc4672de3 Change-Id: Ie06af065d11a36a0a89157d0978727ec0b2daa44
2019-01-07Add default active developers into OWNERS am: e35592b4edChih-Hung Hsieh
am: ea06e6e375 Change-Id: I83f1f069515c912322f3d0e8241dd16ea13a50f7
2019-01-07Add default active developers into OWNERSChih-Hung Hsieh
am: e35592b4ed Change-Id: I841643628adc3369a2ff54b50eaa499db4472f89
2019-01-04Add default active developers into OWNERSandroid-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5android-q-preview-1Chih-Hung Hsieh
Bug: 33166666 Test: gerrit uploader Change-Id: Iaae475873005fd8ce47921f8577a8bc4f5cdf953
2018-12-29Prepare for 0.4.6Ilya Etingof
2018-12-29Release 0.4.5Ilya Etingof
Also extend copyright to the year 2019
2018-12-29Switch Travis to xenial just for Py3.7Ilya Etingof
2018-12-29Switch Travis to trustyIlya Etingof
In hope to get more builds and because Trusty should be the way to go.