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