]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - doc/examples.rst
Limitations section
[pyderasn.git] / doc / examples.rst
index 25e2cf4a2e740b04fde0bb4fbb8b9339697518b0..ce205043a7e7189f8b3cec2064be8fd42df35b10 100644 (file)
@@ -237,9 +237,9 @@ Let's parse that output, human::
 
 ::
 
-       52-2∞ [1,1,1054]∞  . . . . eContent: [0] EXPLICIT BER OCTET STRING 1046 bytes
-                       ^                                 ^   ^            ^
-                      12                                13   9            10
+       52-2∞ [1,1,1054]∞  . . . . eContent: [0] EXPLICIT BER OCTET STRING 1046 bytes
+                       ^                                 ^   ^            ^
+            12          13                                14   9            10
 
 :0:
  Offset of the object, where its DER/BER encoding begins.
@@ -273,12 +273,15 @@ Let's parse that output, human::
  Possible other flags like OPTIONAL and DEFAULT, if value equals to the
  default one, specified in the schema.
 :12:
- Only applicable to BER encoded data. Indefinite length encoding mark.
+ Shows does object contains any kind of BER encoded data (possibly
+ Sequence holding BER-encoded underlying value).
 :13:
+ Only applicable to BER encoded data. Indefinite length encoding mark.
+:14:
  Only applicable to BER encoded data. If object has BER-specific
  encoding, then ``BER`` will be shown. It does not depend on indefinite
  length encoding. ``EOC``, ``BOOLEAN``, ``BIT STRING``, ``OCTET STRING``
- (and its derivatives) could be BERed.
+ (and its derivatives), ``SET``, ``SET OF`` could be BERed.
 
 As command line utility
 -----------------------
@@ -483,13 +486,13 @@ fields automatic decoding::
 
     class AttributeTypeAndValue(Sequence):
         schema = (
-            ((("type",), AttributeType(defines=("value", {
+            ((("type",), AttributeType(defines=((("value",), {
                 id_at_countryName: PrintableString(),
                 id_at_stateOrProvinceName: PrintableString(),
                 id_at_localityName: PrintableString(),
                 id_at_organizationName: PrintableString(),
                 id_at_commonName: PrintableString(),
-            }))),),
+            }),)))),
             ("value", AttributeValue()),
         )