VERSION | 2 +- doc/news.rst | 7 +++++++ pyderasn.py | 7 ++++++- diff --git a/VERSION b/VERSION index ed497871c6ebc4377fd4db84b7c59592a10da119178532bd92f54d369e7a59b1..a573d969a3f2b128d2c203089e1393b6fd573bf11e044a16bf1bf61adf5914c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.2 +4.3 diff --git a/doc/news.rst b/doc/news.rst index a02dcda973e8bbf45b8c7ed5f1341e15d699154957ffa20551f8e9901dcdc5c6..858acfdd3601e602c11eeeaa9643c7403026a2e09324c6ad3bb02fc5471732d6 100644 --- a/doc/news.rst +++ b/doc/news.rst @@ -1,6 +1,13 @@ News ==== +.. _release4.3: + +4.3 +--- +* Fix NumericString: space is allowed character +* Strict PrintableString sanitizing + .. _release4.2: 4.2 diff --git a/pyderasn.py b/pyderasn.py index d676ebc26a7aff9986df175ed5c3e9664813fb5e4586f20474aafee7fd31a4ef..c7433f11a2b3ca2210fd97730d72db35fd1f79c1b84b7f5b0ffbffd2162135bc 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -3492,7 +3492,8 @@ class NumericString(CommonString): """Numeric string - Its value is properly sanitized: only ASCII digits can be stored. + Its value is properly sanitized: only ASCII digits with spaces can + be stored. """ __slots__ = () tag_default = tag_encode(18) @@ -3508,6 +3509,10 @@ return value class PrintableString(CommonString): + """Printable string + + Its value is properly sanitized: see X.680 41.4 table 10. + """ __slots__ = () tag_default = tag_encode(19) encoding = "ascii"