]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - pyderasn.py
Fix example SignedAttributes bounds
[pyderasn.git] / pyderasn.py
index 4b690f72b1ed1ec2c1c20e59b6f3acdd7620f262..e3ac23f2edac814ec2c6f806eadf8e40f012286f 100755 (executable)
@@ -355,6 +355,11 @@ Let's parse that output, human::
  (and its derivatives), ``SET``, ``SET OF``, ``UTCTime``, ``GeneralizedTime``
  could be BERed.
 
+Also it could be helpful to add quick ASN.1 pprinting command in your
+pdb's configuration file::
+
+    alias pp1 import pyderasn ;; print(pyderasn.pprint(%1, oid_maps=(locals().get("OID_STR_TO_NAME", {}),)))
+
 .. _definedby:
 
 DEFINED BY
@@ -765,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: