More precise length check in _asn1_get_indefinite_length_string().
[platform/upstream/libtasn1.git] / NEWS
1 GNU Libtasn1 NEWS                                     -*- outline -*-
2
3 * Noteworthy changes in release 3.6 (unreleased) [stable]
4 - Corrected an off-by-one error in ASN.1 DER tag decoding.
5
6 * Noteworthy changes in release 3.5 (released 2014-05-01) [stable]
7 - Correctly handle decoding of recursive CHOICE options.
8 - Allow deleting elements of SET OF. Patch by Jean-Louis Thekekara.
9 - Several small bug fixes found by coverity.
10 - Code improvements contributed by Kurt Roeckx.
11
12 * Noteworthy changes in release 3.4 (released 2013-11-25) [stable]
13 - Added asn1_delete_structure2() which allows zeroizing the contents
14   of all values in the structure prior to deinitialization.
15 - The parser accepts negative numbers in an INTEGER range (but
16   still does no enforce them).
17
18 * Noteworthy changes in release 3.3 (released 2013-03-23) [stable]
19 - More precise overflow checks using gnulib's intprops module.
20 - Updates to compile in Android systems.
21
22 * Noteworthy changes in release 3.2 (released 2012-11-30) [stable]
23 - Corrected buffer overflow in the error reporting of the parser (reported
24   by Andreas Metzler).
25
26 * Noteworthy changes in release 3.1 (released 2012-11-24) [stable]
27 - Completed rename of types:
28   ASN1_ARRAY_TYPE -> asn1_static_node (was asn1_static_node_t)
29 - Added new types: VisibleString, NumericString, IA5String, TeletexString,
30   PrintableString, UniversalString, BMPString, UTF8String. When re-defined
31   a warning is being print instead of failing.
32 - Parser outputs more detailed syntax error messages.
33 - Added asn1_decode_simple_der() and asn1_encode_simple_der().
34 - Added asn1_read_value_type() to return value and type.
35 - Introduced ASN1_ETYPE_UTC_TIME and ASN1_ETYPE_GENERALIZED_TIME
36
37 * Noteworthy changes in release 3.0 (2012-10-28) [stable]
38 - Added tool in tests/ to benchmark X.509 structure decoding.
39 - Added asn1_read_node_value() to obtain a node's value.
40 - Optimizations in internal tree allocation.
41 - Optimizations in tree search.
42 - libtasn1.h no longer exports internal structures.
43 - Types were renamed for consistency:
44   ASN1_DATA_NODE -> asn1_data_node_st
45   ASN1_ARRAY_TYPE -> asn1_static_node
46   ASN1_TYPE -> asn1_node
47   ASN1_TYPE_EMPTY -> NULL
48   static_struct_asn -> asn1_static_node_st
49   node_asn_struct -> asn1_node_st
50   node_asn -> asn1_node_st
51   (the old types are still available as definitions)
52
53 * Noteworthy changes in release 2.13 (2012-05-31) [stable]
54 - Updated fix for DER decoding issue to not depend on specific compilers.
55 - Updated DER decoding check to apply to short form integers as well.
56
57 * Noteworthy changes in release 2.12 (2012-03-19) [stable]
58 - Cleanup license headers.
59 - build: Update gnulib files.
60 - Corrected DER decoding issue (reported by Matthew Hall).
61   Added self check to detect the problem, see tests/Test_overflow.c.
62   This problem can lead to at least remotely triggered crashes, see
63   further analysis on the libtasn1 mailing list.
64
65 * Noteworthy changes in release 2.11 (2011-11-25) [stable]
66 - qa: Now builds without compiler warnings with Solaris CC.
67 - qa: Added clang analysis.  Fixed cyclomatic complexity output.
68 - tests: Added self-test of bit string functions.
69 - build: Added windows/libtasn14win.mk rules to produce Windows binaries.
70 - build: Don't hard code path to perl in doc/gdoc.
71 - Various minor fixes.
72
73 * Noteworthy changes in release 2.10 (2011-10-25) [stable]
74 - lib: Small optimization, possibly working around gcc/valgrind issue.
75 - build: Update gnulib files.
76 - asn1Coding: actually implement the -c parameter.
77 - asn1Decoding: the -c parameter serves no purpose, remove it.
78 - doc: Add examples to asn1Coding and asn1Decoding description.
79
80 * Noteworthy changes in release 2.9 (2010-12-06) [stable]
81 - tests: Link to gnulib to avoid build error related to 'rpl_ftello' on Solaris.
82   Reported by Dagobert Michelsen.
83 - doc: Fix bug reporting address to point at help-libtasn1@gnu.org.
84 - doc: Fix Returns: documentation in Texinfo.  Reported by Jeffrey Walton.
85 - build: Update gnulib files.
86
87 * Noteworthy changes in release 2.8 (2010-09-25) [stable]
88 - Update gnulib files.
89 - Use Libtool 2.2.10 to ease MinGW64 builds.
90
91 * Noteworthy changes in release 2.7 (2010-05-20) [stable]
92 - Doc: Build a PDF manual using GTK-DOC.
93 - Doc: Fix of asn1_check_version, documentation was missing from last release.
94 - Build: Avoid warnings about ignored visibility attributes on Windows.
95
96 * Noteworthy changes in release 2.6 (2010-04-20) [stable]
97 - Fix build failure on platforms without support for GNU LD version scripts.
98 - libtasn1: Simplified implementation of asn1_check_version.
99 - tests: Improved self-checks.
100 - Update gnulib files, fix many syntax-check nits, indent code,
101   fix license templates.
102
103 * Noteworthy changes in release 2.5 (2010-03-15) [stable]
104 - doc: Improve GTK-DOC comments.
105 - misc: Updated gnulib files.
106
107 * Noteworthy changes in release 2.4 (2010-01-18) [stable]
108 - Doc fixes.
109 - Updated gnulib files.
110 - Clean up copyright notices.
111
112 * Noteworthy changes in release 2.3 (2009-07-29) [stable]
113 - Libtasn1 is now an official GNU project.
114 - Solve build problem on Tru64 related to TRUE/FALSE.
115 - More careful decoding of OIDs.
116 - Fixed warning in ASN1.y.
117 - Use "Software libraries" info dircategory.
118 - Drop GPL/LGPL copies from the manual (not needed there).
119 - New configure parameters to set packaging specific information.
120   The parameters are --with-packager, --with-packager-version, and
121   --with-packager-bug-reports.  See
122   <http://article.gmane.org/gmane.comp.lib.gnulib.bugs/17791> for more
123   details.
124
125 * Noteworthy changes in release 2.2 (2009-05-20) [stable]
126 - Change how the ASN1_API decorator is used in libtasn1.h, for GTK-DOC.
127 - Changed license of libtasn1.pc from GPLv3+ to LGPLv2.1+.
128   Reported by Jeff Cai <Jeff.Cai@Sun.COM>.
129 - Building with many warning flags now requires --enable-gcc-warnings.
130 - Some warnings fixed.
131
132 * Noteworthy changes in release 2.1 (2009-04-17) [stable]
133 - Fix compilation failure on platforms that can't generate empty archives,
134   e.g., Mac OS X.  Reported by David Reiser <dbreiser@gmail.com>.
135
136 * Noteworthy changes in release 2.0 (2009-04-13) [stable]
137 - Optimized tree generation.
138 - ASN1 parser code re-generated using Bison 2.4.1.
139 - Build with more warning flags.  Many compiler warnings fixed.
140 - Compiled with -fvisibility=hidden by default if supported.
141   See http://gcc.gnu.org/wiki/Visibility
142 - The libtasn1-config tool has been removed.
143   For application developers, please stop using libtasn1-config for
144   finding libtasn1, use proper autoconf checks or pkg-config instead.
145   For users that need a libtasn1 that provides a libtasn1-config
146   script (for use with older applications), use libtasn1 v1.x instead.
147   Version 1.x is still supported.
148
149 * Noteworthy changes in release 1.8 (2009-01-16) [stable]
150 - Fix crlf self-test under Mingw+Wine.
151 - Fix build problems on platforms that lack stdint.h.
152   Reported by Dagobert Michelsen <dam@opencsw.org> in
153   <http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3377>.
154
155 * Noteworthy changes in release 1.7 (2008-11-17) [stable]
156 - Add libtasn1-config for compatibility.
157   Please stop use it as it will disappear in v2.0!
158   Use standard AC_CHECK_FUNCS autoconf tests or pkg-config instead.
159 - Read PKCS#12 blob as binary file, fixes self-tests under Mingw.
160 - Fix use of __attribute__ ((deprecated)) to work on non-GCC (#106548).
161
162 * Noteworthy changes in release 1.6 (2008-11-10) [stable]
163 - Fixed namespace violation for MAX_NAME_SIZE and MAX_ERROR_DESCRIPTION_SIZE.
164   The new names are ASN1_MAX_NAME_SIZE and ASN1_MAX_ERROR_DESCRIPTION_SIZE.
165 - Fixed namespace violation for libtasn1_perror and libtasn1_strerror.
166   The new names are asn1_perror and asn1_strerror.
167 - Fix namespace violation for LIBASN1_VERSION.
168   The new name is ASN1_VERSION.
169 - Decoder can now decode BER encoded octet strings.
170 - doc: Change license on the manual to GFDLv1.3+.
171 - doc: Sync gdoc script with GnuTLS, changes license on man-pages to GAP.
172 - doc: Improve gtk-doc manual.
173 - Assumes system has strdup and string.h.
174 - Remove libtasn1-config and libtasn1.m4,
175   use standard AC_CHECK_FUNCS autoconf tests or pkg-config instead.
176 - Change detection of when to use a linker version script,
177   use --enable-ld-version-script or --disable-ld-version-script to
178   override auto-detection logic.
179 - API and ABI changes since last version:
180   asn1_get_length_ber: New function.
181   ASN1_VERSION: New symbol, replaces LIBTASN1_VERSION.
182   asn1_strerror: New function, replaces libtasn1_strerror.
183   asn1_perror: New function, replaces libtasn1_perror.
184   libtasn1_strerror: Marked as deprecated.
185   libtasn1_perror: Marked as deprecated.
186   LIBTASN1_VERSION: Deprecated.
187
188 * Noteworthy changes in release 1.5 (2008-07-29) [stable]
189 - Update gnulib files.
190 - Fix memory leaks, from Christian Grothoff <christian@grothoff.org>.
191
192 * Noteworthy changes in release 1.4 (2008-04-21) [stable]
193 - Update gnulib files.
194 - Replace uses of alloca with malloc.
195
196 * Noteworthy changes in release 1.3 (2008-02-01) [stable]
197 - Handle 'INTEGER { ... } (a..b)' regression.
198   Revert parts of earlier fix.  asn1Parser can now again parse src/pkix.asn1.
199   The ASN1.c file was generated using Bison 2.3.
200 - Move examples from src/ to new directory examples/.
201 - Duplicate copy of divergated pkix.asn removed.
202 - Merge unnecessary lib/defines.h into lib/int.h.
203 - Configure no longer tries to use gcc -pipe.
204 - Update gnulib files.
205 - Fix mem leak in self-test.
206
207 * Noteworthy changes in release 1.2 (2007-12-10) [stable]
208 - Update gnulib files.
209
210 * Noteworthy changes in release 1.1 (2007-08-31) [stable]
211 - Fix bug that made asn1_check_version believe that 1.0 is older than 0.3.10.
212
213 * Noteworthy changes in release 1.0 (2007-08-31) [stable]
214 - The self-tests, command line tools and build infrastructure have
215   been re-licensed from GPLv2 to GPLv3.
216 - Doc fixes.
217 - Update gnulib files.
218
219 * Noteworthy changes in release 0.3.10 (2007-05-25)
220 - Update gnulib files.
221
222 * Noteworthy changes in release 0.3.9 (2007-03-02)
223 - In generated code, config.h is pulled in if HAVE_CONFIG_H.
224 - Development changes: changed from CVS to GIT as an experiment.
225   I push my changes to <http://repo.or.cz/w/libtasn1.git>.
226 - Autoconf 2.61 and automake 1.10 is required.
227
228 * Noteworthy changes in release 0.3.8 (2006-11-16)
229 - Fix reading of binary files in asn1Decoding, for Windows.
230
231 * Noteworthy changes in release 0.3.7 (2006-10-19)
232 - When asn1_der_coding encoded a TYPE_NULL and the output buffer is
233   NULL, it would not increment the counter properly, so the size of
234   the required buffer would be off by one.  Fixed.  Reported by
235   Stephen Wrobleski <steve@localtoast.org>.
236 - Fix configure to respect user-definable flags.  Reported by "Diego
237   'Flameeyes' Pettenò" <flameeyes@gentoo.org>.
238 - The --help and --version outputs from the tools have been improved.
239
240 * Noteworthy changes in release 0.3.6 (2006-08-13)
241 - Fix man pages to use \- instead of - for negative signs (as in "-1").
242 - Add -I's when building in src/, so that unistd.h etc is found on
243   systems that doesn't have them.
244 - Valgrind isn't used for cross-compilation by default, and there is
245   also --disable-valgrind-tests to unconditionally disable it.
246 - Valgrind is invoked without parameters, put things you like into
247   ~/.valgrindrc instead.
248
249 * Noteworthy changes in release 0.3.5 (2006-06-27)
250 - Fix asn1_octet_der to handle writes of zero-length buffers, before
251   it did not write the ASN.1 length for a zero-length buffer.  This caused
252   ASN.1 encodings to be incorrect on 64-bit platforms.
253 - Add self test that attempt to trigger the above bug.
254 - Fix test of -Wno-pointer-sign.
255 - Improve cross-compilation to MinGW by using AC_LIBTOOL_WIN32_DLL.
256
257 * Noteworthy changes in release 0.3.4 (2006-05-10)
258 - Really fix encodings.
259 - Add new self test, tests/Test_encoding.c.
260 - Self tests are ran under valgrind, if it is available.
261 - We test for the -Wno-pointer-sign parameter before using it.
262
263 * Noteworthy changes in release 0.3.3 (2006-05-07)
264 - Add some 'const' to prototypes.
265 - Remove some 'unsigned' keywords.
266 - Corrected asn1_der_coding() bug introduced when it became reentrant.
267   Now it produces correct encodings.
268
269 * Noteworthy changes in release 0.3.2
270 - Corrected bug in asn1_der_coding() which overwrited some
271   data in the original structure.
272 - The asn1Parser, asn1Coding and asn1Decoding programs are now installed.
273
274 * Noteworthy changes in release 0.3.1
275 - Support constant size bit strings, as in 'BIT STRING (SIZE(42))'.
276   Reported by Cyril Holweck <cyril.holweck@q-free.com>.
277 - Add two more APIs required by GnuTLS.
278 - New public APIs:
279   asn1_find_node function
280   asn1_copy_node
281
282 * Noteworthy changes in release 0.3.0
283 - Export DER utility functions, mostly so that GnuTLS can avoid using
284   libtasn1 internals.
285 - The _asn1* symbols are not exported in the shared library file (when
286   using GNU ld).
287 - The library can now be built using Visual Studio, and the project
288   files are included in windows/.
289 - New public APIs:
290   asn1_get_tag_der
291   asn1_octet_der
292   asn1_get_octet_der
293   asn1_bit_der
294   asn1_get_bit_der
295   asn1_get_length_der
296   asn1_length_der
297
298 * Noteworthy changes in release 0.2.18
299 - Fix out-of-bounds access in DER decoding, reported by Evgeny Legerov.
300 - Add 'const' keyword to some prototypes, thanks to Frediano ZIGLIO.
301 - Fixed typo in src/Makefile.am to make it build with objdir != srcdir,
302   thanks to Bernard Leak.
303 - Update of gnulib files.
304 - Typo fixes in comments, e.g. finish libasn1 to libtasn1 renaming,
305   use LGPL boiler plate on some files in lib/.
306
307 * Noteworthy changes in release 0.2.17
308 - Fixed typo to make it build.
309
310 * Noteworthy changes in release 0.2.16
311 - * Noteworthy changes in release script added again.
312
313 * Noteworthy changes in release 0.2.15
314 - Gnulib is used to implement memmove if your system does not have it.
315 - Simplified assert/error handling slightly.
316
317 * Noteworthy changes in release 0.2.14
318 - Some build fixes.
319 - Pkg-config script 'libtasn1.pc' added.
320 - Postal address to FSF in license updated.
321
322 * Noteworthy changes in release 0.2.13
323 - * Noteworthy changes in release number in libtasn1.h updated properly.
324
325 * Noteworthy changes in release 0.2.12
326 - Manual converted to Texinfo format.
327 - Manual in GTK-DOC and DevHelp formats added.
328 - Man pages for all functions added.
329 - Various internal cleanups.
330
331 * Noteworthy changes in release 0.2.11
332 - Added the self test with "make check" target
333 - Added management of ANY type with null length
334 - Corrected some writes to invalid data.
335
336 * Noteworthy changes in release 0.2.10
337 - Added scripts to assist in libtasn1 version detection
338   from configure scripts.
339 - Corrected a DER decoding bug which was reported
340   by Max Vozeler <max@hinterhof.net>.
341
342 * Noteworthy changes in release 0.2.9
343 - Accept negative numbers as range in INTEGER declarations
344
345 * Noteworthy changes in release 0.2.8
346 - Add asn1_delete_element function
347
348 * Noteworthy changes in release 0.2.7
349 - Added versioned symbols.
350
351 * Noteworthy changes in release 0.2.6
352 - ASN.1 parser accepts these kinds of integer definitions:
353   "INTEGER (5 | 10)" and
354   "INTEGER (5)"
355 - Comments start at "--" and finish at the "end of line" or
356   with another "--".
357
358 * Noteworthy changes in release 0.2.5
359 - Bug fix in ordering procedure for SET OF and SEQUENCE OF
360   types coding.
361 - Manage structured format (BER encoding) in
362   asn1_der_decoding, asn1_decoding_element and
363   asn1_der_decoding_startEnd for OCTET STRING type.
364 - Manage SEQUENCE and SET empty structure.
365 - Manage "indefinite length method" in asn1_der_decoding,
366   asn1_decoding_element and asn1_der_decoding_startEnd
367   for the following types:
368   SEQUENCE, SEQUENCE OF, SET, and SET OF.
369 - Bug fix in asn1_read_value with NULL parameter in case
370   of BIT STRING
371
372 * Noteworthy changes in release 0.2.4
373 - Bug fix in asn1_der_coding with NULL parameter
374 - Manage DEFAULT option with OBJECT IDENTIFIER
375
376 * Noteworthy changes in release 0.2.3
377 - Chenge asn1_find_structure_from_oid prototype
378 - Chenge asn1_find_structure_from_oid prototype
379 - Add ASN1_MEM_ALLOC_ERROR return value
380
381 * Noteworthy changes in release 0.2.2
382 - Add vector length check in asn1_der_coding function
383 - Add vector length check in asn1_der_coding function
384 - Add vector length check in asn1_read_value function
385 - Add asn1_check_version function
386
387 * Noteworthy changes in release 0.2.1
388 - Add asn1_find_structure_from_oid function
389 - Add asn1_read_tag function
390
391 * Noteworthy changes in release 0.2.0
392 - Support for other platforms
393 - Change asn1_create_element function interface (dest_name not needed any more)
394 - Change OBJECT IDENTIFIER syntax: numbers must be separated by dot in
395   asn1_write_element and asn1_read_element functions (e.g. "1.2.3.4")
396
397 * Noteworthy changes in release 0.1.2
398 - Added GeneralString type
399 - Fixed a DER encoding bug when nested tags are used
400
401 * Noteworthy changes in release 0.1.1
402 - Renamed to libtasn1
403 - Functions which return a string for error description
404   now accept a NULL argument.
405 - License is now GNU Lesser GPL
406
407 * Noteworthy changes in release 0.1.0
408 - Initial release
409
410 ----------------------------------------------------------------------
411 Copyright (C) 2002-2014 Free Software Foundation, Inc.
412 Copying and distribution of this file, with or without modification,
413 are permitted in any medium without royalty provided the copyright
414 notice and this notice are preserved.