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