X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pyderasn.py;h=e3ac23f2edac814ec2c6f806eadf8e40f012286f;hb=3eb38566e734d6f5b274f4bb99fadb55f99ff2c7;hp=4b690f72b1ed1ec2c1c20e59b6f3acdd7620f262;hpb=7c53a135eccaf1f2dfcff835b799183ae4998f0e;p=pyderasn.git diff --git a/pyderasn.py b/pyderasn.py index 4b690f7..e3ac23f 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -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: