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