From: Sergey Matveev Date: Tue, 4 Aug 2020 13:16:18 +0000 (+0300) Subject: Fix example SignedAttributes bounds X-Git-Tag: 8.2~5 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=27a82ffe77ce79e494b3e46d1cb5843efd1e6483 Fix example SignedAttributes bounds --- diff --git a/pyderasn.py b/pyderasn.py index 7ca25aa..e3ac23f 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -770,7 +770,7 @@ forcefully encoded in DER during CER encoding, by specifying class SignedAttributes(SetOf): schema = Attribute() - bounds = (1, 32) + bounds = (1, float("+inf")) der_forced = True .. _agg_octet_string: diff --git a/tests/test_cms.py b/tests/test_cms.py index 9ce038b..e9ccf21 100644 --- a/tests/test_cms.py +++ b/tests/test_cms.py @@ -83,7 +83,7 @@ class SignatureAlgorithmIdentifier(AlgorithmIdentifier): class SignedAttributes(SetOf): schema = Attribute() - bounds = (1, 32) + bounds = (1, float("+inf")) der_forced = True