From 27a82ffe77ce79e494b3e46d1cb5843efd1e6483 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 4 Aug 2020 16:16:18 +0300 Subject: [PATCH] Fix example SignedAttributes bounds --- pyderasn.py | 2 +- tests/test_cms.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.44.0