Imported Upstream version 1.3.4
[platform/upstream/libksba.git] / ChangeLog
1 2016-05-03  Werner Koch  <wk@gnupg.org>
2
3         Release 1.3.4.
4         * configure.ac: Set LT version to C19/A11/R5.
5
6         Update config.{guess,sub} to 2016-04-02 and 2016-03-30.
7         * build-aux/config.guess: Update.
8         * build-aux/config.sub: Update.
9
10         Create an SWDB file during "make distcheck"
11         * Makefile.am (distcheck-hook): New.
12
13         Fix an undefined return value in ksba_cert_get_digest_algo.
14         * src/cert.c (ksba_cert_get_digest_algo): Set ALGO in the error case.
15         * tests/cert-basic.c (one_file): Take care of printf which does not
16         handle NULL for %s
17
18         Fix an OOB read access in _ksba_dn_to_str.
19         * src/dn.c (append_utf8_value): Use a straightforward check to fix an
20         off-by-one.
21
22         Fix possible read access beyond the buffer.
23         * src/ber-help.c (_ksba_ber_parse_tl): Add extra sanity check.
24         * src/cert.c (ksba_cert_get_cert_policies): Check TLV given length
25         against buffer length.
26         (ksba_cert_get_ext_key_usages): Ditto.
27         * src/ocsp.c (parse_asntime_into_isotime): Ditto.
28
29 2015-10-28  Werner Koch  <wk@gnupg.org>
30
31         Add more curves to the name->OID table.
32         * src/keyinfo.c (curve_names): Add more curves.
33
34         Fix lookup of ECC OIDs by name.
35         * src/keyinfo.c (get_ecc_curve_oid): Fix obviously never tested table
36         lookup.
37
38 2015-08-25  Werner Koch  <wk@gnupg.org>
39
40         Add configure option --enable-build-timestamp.
41         * configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default.  Add
42         ac_define_unquoted.
43
44 2015-04-10  Werner Koch  <wk@gnupg.org>
45
46         Release 1.3.3.
47
48 2015-04-09  Werner Koch  <wk@gnupg.org>
49
50         Do not abort on decoder stack overflow.
51         * src/ber-decoder.c (push_decoder_state, pop_decoder_state): Return an
52         error code.
53         (set_error): Prefix error message with "ksba:". Act on new return code.
54         (decoder_next): Act on new return code.
55
56         Fix integer overflow in the BER decoder.
57         * src/ber-decoder.c (ber_decoder_s): Change val.length from int to
58         size_t.
59         (sum_a1_a2_gt_b, sum_a1_a2_ge_b): New.
60         (decoder_next): Check for integer overflow.  Use new sum function for
61         size check.
62         (_ksba_ber_decoder_dump): Use size_t for n to match change of
63         val.length.  Adjust printf fomrat.  Check for integer overflow and use
64         gpg_error_from_syserror instead of GPG_ERR_ENOMEM.
65         (_ksba_ber_decoder_decode): Use new sum function for size check.
66         Check for integer overflow.  Use size_t for n to match change of
67         val.length.
68
69 2015-04-08  Werner Koch  <wk@gnupg.org>
70
71         Fix encoding of invalid utf-8 strings in dn.c.
72         * src/dn.c (append_quoted, append_atv): Use snprintf.
73         (append_utf8_value): Fix invalid encoding handling.
74
75 2015-01-30  Werner Koch  <wk@gnupg.org>
76
77         w32: Use -static-libgcc to avoid linking to libgcc_s_sjlj-1.dll.
78         * src/Makefile.am (extra_ltoptions): New.
79         (libksba_la_LDFLAGS): Use it.
80
81         Update ASN.1 grammar for newer Bison versions.
82         * src/asn1-parse.y (YYERROR_VERBOSE): Replace by ...
83         (%define parse.error.verbose): this.
84         (YYPARSE_PARM, YYLEX_PARM): Replace by ...
85         (%parm): this.
86         (%pure_parser): Replace by ...
87         (%define api.pure full): this.
88         (yyerror): Add arg parm.
89
90 2015-01-28  Werner Koch  <wk@gnupg.org>
91
92         Require automake 1.14 and update build-aux files.
93         * Makefile.am (AUTOMAKE_OPTIONS): Move to ...
94         * configure.ac (AM_INIT_AUTOMAKE: here.  Add serial-tests.
95
96 2014-11-25  Werner Koch  <wk@gnupg.org>
97
98         Release 1.3.2.
99         * configure.ac: Set LT version to C19/A11/R3.
100
101         build: Update version number magic.
102         * autogen.sh: Update from gnupg master.
103         * configure.ac: Change for new init style.  Create VERSION.
104         * Makefile.am (dist-hook): Do no create VERSION
105
106         Fix buffer overflow in ksba_oid_to_str.
107         * src/oid.c (ksba_oid_to_str): Fix unsigned underflow.
108
109         * tests/Makefile.am (noinst_PROGRAMS): Move t-oid to ..
110         (TESTS): here.
111         * tests/t-oid.c (test_oid_to_str): New.
112         (main): Run the new tests by default.  The former functionality
113         requires the use of one of the new options.
114
115 2014-09-25  Werner Koch  <wk@gnupg.org>
116
117         Strip CRs while building the oid translation table.
118         * tests/Makefile.am (oidtranstbl.h): Strip CRs
119
120 2014-09-18  Werner Koch  <wk@gnupg.org>
121
122         Release 1.3.1.
123         * configure.ac: Set LT version to C19/A11/R2.
124
125 2014-07-22  Dmitry Eremin-Solenikov  <dbaryshkov@gmail.com>
126
127         Fix two memory leaks in cert-basic test.
128         * tests/cert-basic.c (one_file): always free public key and der2.
129
130         Enable optional valgrind for testsuite.
131         * configure.ac: Enable gnulib valgrind module.
132         * gl/m4/gnulib.m4: Enable valgrind module.
133         * tests/Makefile.am: Enable valgrind as LOG_COMPILER.
134         * gl/m4/valgrind-tests.m4: New
135
136         Fix memory leak in crl parsing code.
137         * src/crl.c (store_one_entry_extension): Free memory at oid variable -
138           otherwise libksba leaks memory on crl parsing.
139
140         Adapt mkoidtbl script to newer dumpasn1 database format.
141         * tests/mkoidtbl.awk: optionally parse oid at OID line.
142
143         Reuse common test functions in cert-basic test.
144         * tests/cert-basic.c (xmalloc, print_hex, print_sexp, print_time,
145           print_dn): Drop.
146
147         tests: fix print_sexp and print_sexp_hex functions.
148         * tests/t-common.h (print_sexp, print_sexp_hex): advance pointer on
149           closing brace.
150
151         tests: Pass -no-install to libtool.
152         * tests/Makefile.am: add AM_LDFLAGS = -no-install
153
154 2014-04-15  Werner Koch  <wk@gnupg.org>
155
156         tests: Fix warning about unused var.
157         * tests/t-dnparser.c (main): Drop unneeded var INPUTLEN.
158
159         Fix possible segv if NULL is passed as cert.
160         * src/cert.c (ksba_cert_get_digest_algo): Fix !cert case.
161
162 2014-01-10  Werner Koch  <wk@gnupg.org>
163
164         Remove cruft.
165         * autogen.rc: Remove cruft.
166
167         Use the generic autogen.sh script.
168         * Makefile.am (EXTRA_DIST): Add autogen.rc.
169         * autogen.rc: New.
170         * autogen.sh: Update from current GnuPG.
171         * ltmain.sh: Move to build-aux/.
172         * compile: Ditto.
173         * config.guess: Ditto.
174         * config.sub: Ditto.
175         * depcomp: Ditto.
176         * doc/mdate-sh: Ditto.
177         * doc/texinfo.tex: Ditto.
178         * install-sh: Ditto.
179         * missing: Ditto.
180         * ylwrap: Ditto.
181         * configure.ac (AC_CONFIG_AUX_DIR): New.
182
183 2014-01-08  Werner Koch  <wk@gnupg.org>
184
185         Add --enable-silent-rules stuff.
186         * configure.ac: Add AM_SILENT_RULES.
187
188         Fix libtool 2.4.2 to correctly detect .def files.
189         * ltmain.sh (sed_uncomment_deffile): New.
190         (orig_export_symbols): Uncomment def file before testing for EXPORTS.
191         * m4/libtool.m4: Do the same for the generated code.
192
193 2013-12-10  David 'Digit' Turner  <digit@google.com>
194
195         Update libtool to support Android.
196         * m4/libtool.m4: Add "linux*android*" case.  Taken from the libtool
197         repository.
198
199 2013-12-10  Werner Koch  <wk@gnupg.org>
200
201         Add build support for ppc64le.
202         * config.guess, config.sub: Update to latest version (2013-11-29).
203         * m4/libtool.m4: Add patches for ppc64le.
204
205         Fix duplicate definition of TRUE and FALSE in grammar file.
206         * src/asn1-parse.y (YYPRINT): Define.
207         (%token-table): Define.
208         (TRUE,FALSE,BOOLEAN): Prefix these tokens with "ksba_" to avoid name
209         conflicts.
210         (key_word, key_word_token): Remove arrays.
211         (%token): Add literal strings to almost all tokens.
212         (yylex): Use yytname array for keyword lookup.
213
214 2012-11-16  Werner Koch  <wk@gnupg.org>
215
216         Improve parsing of the GIT revision number.
217         * configure.ac (mmm4_revision): Use git rev-parse.
218
219         Fix non-portable use of chmod in autogen.sh.
220         * autogen.sh: Remove option -c from chmod.
221
222 2012-09-27  Werner Koch  <wk@gnupg.org>
223
224         Release 1.3.0.
225         * configure.ac: Set LT version to C19/A11/R1.
226
227 2012-09-26  Werner Koch  <wk@gnupg.org>
228
229         Update build helper scripts.
230         * config.guess, config.sub: Update to version 2012-07-31.
231         * ltmain.sh: Update to version 2.4.2.
232         * install-sh, m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4
233         * m4/lt~obsolete.m4: Update to autoconf 2.69 versions.
234
235         Adjust for stricter autoconf requirements.
236         * configure.ac: Fix usage of AC_LANG_PROGRAM.
237
238         Do not distribute a copy of gitlog-to-changelog.
239         * Makefile.am (AUTOMAKE_OPTIONS): Do not create a tar.gz.
240         (gen-ChangeLog): Require an installed gitlog-to-changelog.
241         * build-aux/gitlog-to-changelog: Remove.
242
243         Allow building with w64-mingw32.
244         * autogen.sh <--build-w32>: Support the w64-mingw32 toolchain.  Also
245         prepare for 64 bit building.
246
247         Switch to the new automagic beta numbering scheme.
248         * configure.ac: Add all the required m4 magic.
249
250         Change library license to LGPLv3+/GPLv2+.
251         * COPYING.GPLv2, COPYING.GPLv3, COPYING.LGPLv3: New.
252         * COPYING: Replace text by a reference to the new files.
253         * AUTHORS: Update copyright, license, and maintainer information.
254         * Makefile.am (EXTRA_DIST): Distribute the new files.
255
256         Remove unused or useless files.
257         * src/asn1-parse.h: Remove empty file.
258         * src/asn1-parse.y: Do not include asn1-parse.h.
259
260 2011-12-06  Werner Koch  <wk@gnupg.org>
261
262         Allow to set subject and issuer.
263         * src/certreq.c (ksba_certreq_set_issuer): Do not check the subject.
264
265 2011-12-01  Werner Koch  <wk@gnupg.org>
266
267         Post release updates.
268
269         Generate the ChangeLog from commit logs.
270         * build-aux/gitlog-to-changelog: New script.  Taken from gnulib.
271         * build-aux/git-log-fix: New file.
272         * build-aux/git-log-footer: New file.
273         * doc/HACKING: New file.
274         * ChangeLog: New file.
275         * Makefile.am (EXTRA_DIST): Add new files.
276         (gen-ChangeLog): New.
277         (dist-hook): Run gen-ChangeLog.
278         * autogen.sh: Install commit-msg hook for git.
279
280         Rename all ChangeLog files to ChangeLog-2011.
281
282 2011-12-01  Werner Koch  <wk@gnupg.org>
283
284         NB: Changes done before December 1st, 2011 are described in
285         per directory files named ChangeLog-2011.  See doc/HACKING for
286         details.
287
288         -----
289         Copyright (C) 2011 g10 Code GmbH
290
291         Copying and distribution of this file and/or the original GIT
292         commit log messages, with or without modification, are
293         permitted provided the copyright notice and this notice are
294         preserved.