]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Fix example SignedAttributes bounds
authorSergey Matveev <stargrave@stargrave.org>
Tue, 4 Aug 2020 13:16:18 +0000 (16:16 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 4 Aug 2020 13:16:29 +0000 (16:16 +0300)
pyderasn.py
tests/test_cms.py

index 7ca25aab5779972c785a10c46bb4da9df8933ed1..e3ac23f2edac814ec2c6f806eadf8e40f012286f 100755 (executable)
@@ -770,7 +770,7 @@ forcefully encoded in DER during CER encoding, by specifying
 
     class SignedAttributes(SetOf):
         schema = Attribute()
 
     class SignedAttributes(SetOf):
         schema = Attribute()
-        bounds = (1, 32)
+        bounds = (1, float("+inf"))
         der_forced = True
 
 .. _agg_octet_string:
         der_forced = True
 
 .. _agg_octet_string:
index 9ce038b99e73f9168c38514252b28b4f314357b5..e9ccf2198c93cd0955a29209c5041e6b8674eb87 100644 (file)
@@ -83,7 +83,7 @@ class SignatureAlgorithmIdentifier(AlgorithmIdentifier):
 
 class SignedAttributes(SetOf):
     schema = Attribute()
 
 class SignedAttributes(SetOf):
     schema = Attribute()
-    bounds = (1, 32)
+    bounds = (1, float("+inf"))
     der_forced = True
 
 
     der_forced = True