Imported Upstream version 2.1.9
[platform/upstream/gpg2.git] / kbx / ChangeLog-2011
1 2011-12-01  Werner Koch  <wk@g10code.com>
2
3         NB: ChangeLog files are no longer manually maintained.  Starting
4         on December 1st, 2011 we put change information only in the GIT
5         commit log, and generate a top-level ChangeLog file from logs at
6         "make dist".  See doc/HACKING for details.
7
8 2011-04-28  Werner Koch  <wk@g10code.com>
9
10         * keybox-openpgp.c: Include ../common/openpgpdefs.h.
11         (enum packet_types): Remove.
12         (_keybox_parse_openpgp): Update NPARSED also on errors.
13         (parse_key): Take care of ecc algorithms.
14         * kbxutil.c (import_openpgp): Do not print an error for non-RSA v3
15         packets.
16
17 2010-07-23  Werner Koch  <wk@g10code.com>
18
19         * keybox-blob.c (_keybox_create_x509_blob): Fix reallocation bug.
20
21 2010-04-20  Marcus Brinkmann  <marcus@g10code.de>
22
23         * keybox-update.c [!HAVE_DOSISH_SYSTEM]: Include
24         ../common/sysutils.h even then to silence gcc warning about
25         missing declaration of gnupg_remove.
26
27 2010-04-15  Werner Koch  <wk@g10code.com>
28
29         * keybox-blob.c: Include gettime.h
30         (make_timestamp): Remove.
31
32 2010-03-23  Werner Koch  <wk@g10code.com>
33
34         * Makefile.am (extra_libs): New.
35         (kbxutil_LDADD): Use it.
36
37         * keybox-update.c: [HAVE_DOSISH_SYSTEM]: Include sysutils.h.
38         (keybox_compress): Replace rewind by fseek+clearerr.
39         (rename_tmp_file, keybox_compress): s/remove/gnupg_remove/.
40
41 2010-03-10  Werner Koch  <wk@g10code.com>
42
43         * Makefile.am (kbxutil_LDADD, $(PROGRAMS)): Remove libjnlib.a.
44
45         * keybox-search.c, keybox-init.c, keybox-defs.h, kbxutil.c:
46         Replace "jnlib" include file part by "common".
47
48 2010-03-08  Werner Koch  <wk@g10code.com>
49
50         Use macros for iobuf_ioctl commands.
51
52 2009-12-08  Werner Koch  <wk@g10code.com>
53
54         * keybox-search-desc.h (keydb_search_desc): Use u32 type for
55         KID. Extend the skip function ptr.
56         (gpg_pkt_user_id_t): New.
57         * keybox-search.c (has_short_kid, has_long_kid): Change to use u32
58         args for KID.
59
60 2008-12-09  Werner Koch  <wk@g10code.com>
61
62         * kbxutil.c (main): Call i18n_init before init_common_subsystems.
63
64 2008-11-20  Werner Koch  <wk@g10code.com>
65
66         * keybox-update.c (create_tmp_file) [USE_ONLY_8DOT3]: Use other
67         suffixes to avoid conflicts with gpg uses filenames.
68
69 2008-11-11  Werner Koch  <wk@g10code.com>
70
71         * Makefile.am (kbxutil_LDADD): Change order of libs.
72         ($(PROGRAMS)): Ditto for documentation.
73
74 2008-10-20  Werner Koch  <wk@g10code.com>
75
76         * keybox-update.c (blob_filecopy): Remove unused arg n_packets.
77         (keybox_insert_cert): Adjust for that.
78         (keybox_update_cert): Mark unused args.
79         (keybox_set_flags): Ditto.
80         * keybox-blob.c (create_blob_trailer): Ditto.
81         * keybox-search.c (keybox_get_flags): Ditto.
82         * keybox-dump.c (_keybox_dump_find_dups): Ditto.
83         * kbxutil.c (my_gcry_logger): Ditto.
84
85 2008-05-06  Werner Koch  <wk@g10code.com>
86
87         * keybox-file.c (_keybox_read_blob2): Return GPG_ERR_TOO_SHORT if
88         we get an EOF for 2nd to 5th byte as a better error message.
89
90         Always use gpg_error_from_syserror and gpg_err_code_from_syserror.
91         This is to avoid cases where we expect an error but due to an
92         errno set to 0 we get back a success status.
93
94 2008-04-01  Werner Koch  <wk@g10code.com>
95
96         * keybox-init.c (keybox_new, keybox_release): Track used handles.
97         (_keybox_close_file): New.
98         * keybox-update.c (keybox_insert_cert, keybox_set_flags)
99         (keybox_delete, keybox_compress): Use the new close function.
100
101 2008-03-13  Werner Koch  <wk@g10code.com>
102
103         * keybox-blob.c (x509_email_kludge): Use the same code as in
104         ..sm/keylist.c so that email parts are not only detected at the
105         start of the DN.  Reported by Yoshiaki Kasahara.
106
107 2007-08-24  Werner Koch  <wk@g10code.com>
108
109         * keybox-init.c (keybox_register_file): Use same_file_p.
110
111 2007-08-23  Werner Koch  <wk@g10code.com>
112
113         * kbxutil.c: New commands --find-dups and --cut.  New options
114         --from an --to.
115         * keybox-dump.c (hash_blob_rawdata): New.
116         (_keybox_dump_find_dups): New.
117         (open_file): Factor some code out to this.
118         (_keybox_dump_cut_records): New.
119
120 2007-06-26  Werner Koch  <wk@g10code.com>
121
122         * kbxutil.c: Include init.h
123
124 2007-06-15  Werner Koch  <wk@g10code.com>
125
126         * Makefile.am (kbxutil_LDADD): Add W32SOCKLIBS.
127
128 2007-06-12  Werner Koch  <wk@g10code.com>
129
130         * kbxutil.c (main): Replace some calls by init_common_subsystems.
131
132 2007-06-06  Werner Koch  <wk@g10code.com>
133
134         * kbxutil.c (i18n_init): Remove.
135
136 2007-03-20  Werner Koch  <wk@g10code.com>
137
138         * keybox.h (KEYBOX_FLAG_BLOB_SECRET, KEYBOX_FLAG_BLOB_EPHEMERAL):
139         New.
140         * keybox-update.c (keybox_compress): Use it here instead of a
141         magic constant.
142
143 2007-01-31  Werner Koch  <wk@g10code.com>
144
145         * Makefile.am (kbxutil_LDADD): Use GPG_ERROR_LIBS instead of -l.
146         Reordered args.
147
148 2007-01-25  Werner Koch  <wk@g10code.com>
149
150         * Makefile.am (kbxutil_LDADD): Added LIBICONV.  Noted by Billy
151         Halsey.
152
153 2006-11-15  Werner Koch  <wk@g10code.com>
154
155         * kbxutil.c (dump_openpgp_key): Cast printf argument.
156
157 2006-10-20  Werner Koch  <wk@g10code.com>
158
159         * keybox-search.c (blob_x509_has_grip, has_keygrip): New.
160         (keybox_search): Implement new search mode.
161         * keybox-search-desc.h (KEYDB_SEARCH_MODE_KEYGRIP): New.
162         (keydb_search_desc): New member GRIP.
163
164 2006-09-20  Werner Koch  <wk@g10code.com>
165
166         * Makefile.am ($(PROGRAMS): New.
167
168 2006-09-14  Werner Koch  <wk@g10code.com>
169
170         Replaced all call gpg_error_from_errno(errno) by
171         gpg_error_from_syserror().
172
173 2005-10-08  Marcus Brinkmann  <marcus@g10code.de>
174
175         * Makefile.am (kbxutil_LDADD): Add ../gl/libgnu.a after
176         ../jnlib/libjnlib.a.
177
178 2005-06-15  Werner Koch  <wk@g10code.com>
179
180         * keybox-file.c (_keybox_read_blob2): Make IMAGE unsigned.
181         (_keybox_write_blob):
182
183         * keybox-blob.c (create_blob_finish, _keybox_create_x509_blob):
184         Fixed warnings about signed/unsigned pointer mismatches.
185         (x509_email_kludge): Ditto.
186         (_keybox_new_blob): Changed arg IMAGE to unsigned char *.
187         (_keybox_get_blob_image): Changed return type to unsigned char*.
188
189 2005-06-01  Werner Koch  <wk@g10code.com>
190
191         * keybox-file.c (ftello) [!HAVE_FSEEKO]: New replacement
192         function.  Copied from ../common/ftello.c.
193         * keybox-update.c (fseeko) [!HAVE_FSEEKO]: New replacement
194         function.  Copied from ../common/iobuf.c.
195
196 2004-12-18  Werner Koch  <wk@g10code.com>
197
198         * keybox-defs.h (map_assuan_err): Define in terms of
199         map_assuan_err_with_source.
200
201 2004-12-07  Werner Koch  <wk@g10code.com>
202
203         * keybox-init.c (keybox_release): Close the file pointer.
204
205 2004-11-26  Werner Koch  <wk@g10code.com>
206
207         * Makefile.am (kbxutil_LDADD): Add ../common/libcommon.a
208
209         * keybox-defs.h: Include stringhelp.h.
210
211 2004-09-30  Werner Koch  <wk@g10code.com>
212
213         * kbxutil.c (i18n_init): Always use LC_ALL.
214
215         * Makefile.am: Adjusted for gettext 0.14.
216
217 2004-08-24  Werner Koch  <wk@g10code.de>
218
219         * kbxutil.c: New command --import-openpgp.
220         (main): Updated libgcrypt initialization stuff.
221         (my_gcry_logger): New.
222         (read_file): New.  Taken from ../agent/protect-tool.
223         (dump_fpr, dump_openpgp_key, import_openpgp): New.
224
225         * keybox-openpgp.c: New.
226
227 2004-06-18  Werner Koch  <wk@gnupg.org>
228
229         * keybox-dump.c (_keybox_dump_file): New arg STATS_ONLY.
230         (update_stats): New.
231         * kbxutil.c (main): New command --stats.
232
233 2004-04-23  Werner Koch  <wk@gnupg.org>
234
235         * keybox-blob.c (_keybox_update_header_blob): New.
236         * keybox-update.c (blob_filecopy): Handle header blob.
237         * keybox-file.c (_keybox_read_blob2): New. Moved code from
238         _keybox_read_blob to there.
239         * keybox-dump.c (dump_header_blob): Print header info.
240
241 2004-04-21  Werner Koch  <wk@gnupg.org>
242
243         * keybox-search.c (_keybox_get_flag_location): Add flag
244         KEYBOX_FLAG_CREATED_AT.
245         * keybox-update.c (keybox_compress): New.
246
247         * keybox-search.c (get32, get16, blob_get_type)
248         (blob_get_blob_flags, has_short_kid, has_long_kid)
249         (has_fingerprint, has_issuer, has_issuer_sn, has_sn, has_subject)
250         (has_subject_or_alt, has_mail): inline them.
251
252         * keybox-update.c (blob_filecopy): Fixed an error/eof check
253         (s/if(fread)/if(nread)/).
254
255         * keybox-dump.c (_keybox_dump_blob): Really print the timestamps.
256
257 2004-04-20  Werner Koch  <wk@gnupg.org>
258
259         * keybox-defs.h: Include jnlib/types.h and remove our own
260         definitions for byte.u16 and u32.
261
262 2004-02-02  Werner Koch  <wk@gnupg.org>
263
264         * keybox.h (keybox_flag_t): New.
265         * keybox-search.c (get_flag_from_image, keybox_get_flags): New.
266         (_keybox_get_flag_location): New.
267
268 2003-11-12  Werner Koch  <wk@gnupg.org>
269
270         Adjusted for API changes in Libksba.
271
272         * keybox-blob.c: Include time.h
273
274 2003-06-03  Werner Koch  <wk@gnupg.org>
275
276         Changed all error codes in all files to the new libgpg-error scheme.
277
278         * keybox-defs.h: Include gpg-error.h .
279         (KeyboxError): Removed.
280         * Makefile.am: Removed keybox-error.c stuff.
281
282 2002-11-14  Werner Koch  <wk@gnupg.org>
283
284         * keybox-search.c (blob_cmp_name) <compare all names>: Fixed
285         length compare; there is no 0 stored since nearly a year.
286
287 2002-10-31  Neal H. Walfield  <neal@g10code.de>
288
289         * Makefile.am (AM_CPPFLAGS): Fix ytpo.
290
291 2002-08-10  Werner Koch  <wk@gnupg.org>
292
293         * keybox-search.c (blob_cmp_fpr_part): New.
294         (has_short_kid, has_long_kid): Implemented.
295
296 2002-07-22  Werner Koch  <wk@gnupg.org>
297
298         * keybox-defs.h: New BLOBTYPTE_EMPTY.
299         * keybox-dump.c (_keybox_dump_blob): Handle new type.
300         * keybox-file.c (_keybox_read_blob): Skip over empty blobs.  Store
301         the file offset.
302         * keybox-blob.c (_keybox_new_blob): Add new arg OFF.
303         (_keybox_get_blob_fileoffset): New.
304         * keybox-update.c (keybox_delete): Implemented.
305
306 2002-06-19  Werner Koch  <wk@gnupg.org>
307
308         * keybox-init.c (keybox_set_ephemeral): New.
309         * keybox-blob.c (create_blob_header): Store ephemeral flag.
310         (_keybox_create_x509_blob): Pass epheermal flag on.
311         * keybox-update.c (keybox_insert_cert): Ditto.
312         * keybox-search.c (blob_get_blob_flags): New.
313         (keybox_search): Ignore ephemeral blobs when not in ephemeral mode.
314
315         * keybox-dump.c (_keybox_dump_blob): Print blob flags as strings.
316
317 2002-02-25  Werner Koch  <wk@gnupg.org>
318
319         * keybox-search.c (blob_cmp_mail): Use case-insensitive compare
320         because mail addresses are in general case insensitive (well
321         RFC2822 allows for case sensitive mailbox parts, but this is in
322         general considired a Bad Thing). Add additional substr parameter
323         to allow for substring matches within the mail address.  Change
324         all callers to pass this along.
325         (blob_cmp_name): Likewise but do the case-insensitive search only
326         in sub string mode.
327         (keybox_search): Implement MAILSUB and SUBSTR mode.
328
329 2002-01-21  Werner Koch  <wk@gnupg.org>
330
331         * keybox-search.c (keybox_search): Allow KEYDB_SEARCH_MODE_FPR20.
332
333 2002-01-15  Werner Koch  <wk@gnupg.org>
334
335         * keybox-search.c (blob_cmp_fpr): New.
336         (has_fingerprint): Implemented;
337
338 2001-12-20  Werner Koch  <wk@gnupg.org>
339
340         * keybox-blob.c (_keybox_create_x509_blob): Skip the leading
341         parenthesis of the serial number's S-exp.
342         (_keybox_create_x509_blob): And fixed length calculation.
343         (create_blob_header): Don't add an offset when writing the serial.
344
345 2001-12-18  Werner Koch  <wk@gnupg.org>
346
347         * Makefile.am (AM_CPPFLAGS): Add flags for libksba
348
349         * keybox-blob.c (_keybox_create_x509_blob): Use
350         gcry_sexp_canon_len to get the length of the serial number.
351         (_keybox_release_blob): Need to use a new serialbuf to free the memory.
352
353 2001-12-17  Werner Koch  <wk@gnupg.org>
354
355         * keybox-search.c: Changed the way the serial number is
356         represented.
357
358 2001-12-15  Werner Koch  <wk@gnupg.org>
359
360         * keybox-search.c (blob_cmp_name): There is no terminating 0 stored
361         for the uid; fixed length compare.
362
363 2001-12-14  Werner Koch  <wk@gnupg.org>
364
365         * keybox-blob.c (x509_email_kludge): New.
366         (_keybox_create_x509_blob): Insert an extra email address if the
367         subject's DN has an email part.
368         * keybox-defs.h: Added the xtoi_2 and digitp macros.
369
370 2001-12-13  Werner Koch  <wk@gnupg.org>
371
372         * keybox-search.c (blob_cmp_name): Kludge to allow searching for
373         more than one name.
374         (has_subject_or_alt): New.
375         (blob_cmp_mail): New.
376         (has_mail): New.
377         (keybox_search): Implemented exact search and exact mail search.
378
379         * kbx/keybox-blob.c (_keybox_create_x509_blob): Insert alternate
380         names.
381
382
383  Copyright 2001, 2002, 2003, 2004, 2005, 2006,
384            2007, 2008, 2011 Free Software Foundation, Inc.
385
386  This file is free software; as a special exception the author gives
387  unlimited permission to copy and/or distribute it, with or without
388  modifications, as long as this notice is preserved.
389
390  This file is distributed in the hope that it will be useful, but
391  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
392  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
393
394 Local Variables:
395 buffer-read-only: t
396 End: