]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Explicit mention that *Time do not support BER
authorSergey Matveev <stargrave@stargrave.org>
Thu, 3 Jan 2019 21:31:47 +0000 (00:31 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 3 Jan 2019 21:31:47 +0000 (00:31 +0300)
doc/features.rst
pyderasn.py

index c18c83d9720c56ad8cd66d774ee3d61adc4ceda1..fd05f8484001bdc08c66ba98518f9abe968f05a9 100644 (file)
@@ -3,8 +3,8 @@ Features
 
 * BER/CER/DER decoding, DER encoding
 * Basic ASN.1 data types (X.208): BOOLEAN, INTEGER, BIT STRING, OCTET
-  STRING, NULL, OBJECT IDENTIFIER, ENUMERATED, all strings, UTCTime,
-  GeneralizedTime, CHOICE, ANY, SEQUENCE (OF), SET (OF)
+  STRING, NULL, OBJECT IDENTIFIER, ENUMERATED, all strings, UTCTime (no
+  BER), GeneralizedTime (no BER), CHOICE, ANY, SEQUENCE (OF), SET (OF)
 * Size :ref:`constraints <bounds>` checking
 * Working with sequences as high level data objects with ability to
   (un)marshall them
index 2c3ec76a503d20eb41624fb8a6265f4313d3b94b..c83b4393037e180c943c6e72decb9509b188a097 100755 (executable)
@@ -3661,6 +3661,10 @@ class UTCTime(CommonString):
     datetime.datetime(2017, 9, 30, 22, 7, 50)
     >>> UTCTime(datetime(2057, 9, 30, 22, 7, 50)).todatetime()
     datetime.datetime(1957, 9, 30, 22, 7, 50)
+
+    .. warning::
+
+       No BER encodings are supported. Only DER.
     """
     __slots__ = ()
     tag_default = tag_encode(23)
@@ -3812,6 +3816,10 @@ class GeneralizedTime(UTCTime):
     >>> t = GeneralizedTime(datetime(2057, 9, 30, 22, 7, 50))
     GeneralizedTime GeneralizedTime 2057-09-30T22:07:50
 
+    .. warning::
+
+       No BER encodings are supported. Only DER.
+
     .. warning::
 
        Only microsecond fractions are supported.