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