From e7395b3353a1e14fb62ded263c102a707172e6cd Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 4 Jan 2019 00:31:47 +0300 Subject: [PATCH] Explicit mention that *Time do not support BER --- doc/features.rst | 4 ++-- pyderasn.py | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/features.rst b/doc/features.rst index c18c83d..fd05f84 100644 --- a/doc/features.rst +++ b/doc/features.rst @@ -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 ` checking * Working with sequences as high level data objects with ability to (un)marshall them diff --git a/pyderasn.py b/pyderasn.py index 2c3ec76..c83b439 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -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. -- 2.44.0