]> Cypherpunks.ru repositories - pyderasn.git/blob - doc/news.rst
Check for DEFAULTed value also in SET
[pyderasn.git] / doc / news.rst
1 News
2 ====
3
4 .. _release3.15:
5
6 3.15
7 ----
8 * DEFAULT-encoded value is checked also for Set-s, not for Sequences only
9
10 .. _release3.14:
11
12 3.14
13 ----
14 * Additional encoding validness check: explicit tag must contain exactly
15   one object inside. Throw DecodeError otherwise
16 * ``allow_expl_oob`` context and command-line options allow skipping of
17   that check
18
19 .. _release3.13:
20
21 3.13
22 ----
23 * DecodeError's decode paths are separated with ``:``, instead of ``.``,
24   because of colliding with dots in OIDs
25 * Ability to print element decode paths with ``--print-decode-path``
26   command line option (and corresponding keyword argument)
27 * Ability to print tree's branch specified with ``--decode-path-only``
28
29 .. _release3.12:
30
31 3.12
32 ----
33 * Fix possible uncaught TypeError in Py2 with zero bytes inside the value
34 * Fix SequenceOf/SetOf raising BoundsError instead of DecodeError
35
36 .. _release3.11:
37
38 3.11
39 ----
40 * Fix uncaught UTCTime/GeneralizedTime decode error when dealing with
41   non ASCII-encoded values
42
43 .. _release3.10:
44
45 3.10
46 ----
47 * Fix long-standing bug with explicitly tagged objects inside the
48   Choice. If Choice had explicitly tagged value, then its ``.tlvlen``
49   reports the size without taking value's explicit tag in advance
50 * Add ``.fulllen`` and ``.fulloffset`` properties for all objects
51
52 .. _release3.9:
53
54 3.9
55 ---
56 * SEQUENCE's values are printed with field's name. Previously there was
57   the following output::
58
59     AlgorithmIdentifier SEQUENCE[OBJECT IDENTIFIER 1.3.14.3.2.26, [UNIV 5] ANY 0500 OPTIONAL]
60
61   now it is::
62
63     AlgorithmIdentifier SEQUENCE[algorithm: OBJECT IDENTIFIER 1.3.14.3.2.26; parameters: [UNIV 5] ANY 0500 OPTIONAL]
64 * Fixed EOC (Unicode character) repr printing issues under Python2
65
66 .. _release3.8:
67
68 3.8
69 ---
70 BER's EOC is explicitly shown during pprinting. Following notation::
71
72       15-2 [0,0,1576]-4  . content: [0] EXPLICIT [UNIV 16] ANY
73
74 is replaced with::
75
76       15-2∞ [0,0,1576]∞  . content: [0] EXPLICIT [UNIV 16] ANY
77     [...]
78     1587    [1,1,   0]   . content:  BER EOC
79     1589    [1,1,   0]   . content: EXPLICIT BER EOC
80
81 .. _release3.7:
82
83 3.7
84 ---
85 * BER decoding support
86 * BitString's ''H notation support
87 * ``termcolor`` package is included in the tarball
88
89 .. _release3.6:
90
91 3.6
92 ---
93 * Ability to set values during Sequence initialization
94
95 .. _release3.5:
96
97 3.5
98 ---
99 * Fix TagMismatch exception completeness during Choice and Set decoding.
100   Previously we will loose offset and decode_path information about
101   concrete TagMismatched entity
102
103 .. _release3.4:
104
105 3.4
106 ---
107 * Strict NumericString's value sanitation
108 * Invalid encoding in string types will raise ``DecodeError`` exception,
109   instead of ``Unicode*Error``
110 * Fixed DecodePathDefBy workability with Python 2.x
111
112 .. _release3.3:
113
114 3.3
115 ---
116 * Fix nasty BitString decoding bug: it could fail when data follows
117   encoded BitString value. There weren't any problems when BitString is
118   at the end of Sequence
119
120 .. _release3.2:
121
122 3.2
123 ---
124 * Slightly corrected colours, now visible on white background
125
126 .. _release3.1:
127
128 3.1
129 ---
130 * Fix bug related to DecodeError showing with DecodePathDefBy entities
131 * Respect ``NO_COLOR`` environment variable
132
133 .. _release3.0:
134
135 3.0
136 ---
137 * :py:func:`pyderasn.decode_path_defby` is replaced with
138   :py:class:`pyderasn.DecodePathDefBy`
139 * Ability to turn colourized terminal output by calling
140   ``pprint(..., with_colours=True)``. You will need
141   `termcolor package <https://pypi.org/project/termcolor/>`__
142
143 .. _release2.1:
144
145 2.1
146 ---
147 * Fixed invalid offset calculation when dealing with DEFINED BY objects
148   having explicit tags
149
150 .. _release2.0:
151
152 2.0
153 ---
154 * BIT STRINGs can also be :ref:`DEFINED BY <definedby>`
155 * Decoding process can be governed with optional :ref:`ctx <ctx>`
156   keyword argument to ``decode()`` method
157 * :ref:`defines_by_path <defines_by_path_ctx>` option is now
158   :ref:`decode context <ctx>` option, not a keyword argument
159 * Ability to do :ref:`strict validation <strict_default_existence_ctx>`
160   of defaulted values met in sequence, raising an exception
161
162 .. _release1.6:
163
164 1.6
165 ---
166 Ability to skip specified number of bytes (``--skip``) in command line
167 utility.
168
169 .. _release1.5:
170
171 1.5
172 ---
173 * Generic decoder's scheme and pretty printer
174   (:py:func:`pyderasn.generic_decoder`) can be used in libraries
175 * Ability to specify :ref:`defines_by_path <defines_by_path_ctx>`
176   during command line invocation
177
178 .. _release1.4:
179
180 1.4
181 ---
182 Ability to automatically decode :ref:`DEFINED BY <definedby>` fields
183 inside SEQUENCEs.
184
185 .. _release1.3:
186
187 1.3
188 ---
189 Removed ``__lt__``/``__eq__`` from base class, as pylint likes it.
190
191 .. _release1.2:
192
193 1.2
194 ---
195 Full rich comparison operators added.
196
197
198 .. _release1.1:
199
200 1.1
201 ---
202 Trivial README addition.
203
204 .. _release1.0:
205
206 1.0
207 ---
208 Initial release.