1 2011-12-01 Werner Koch <wk@g10code.com>
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.
8 2011-04-28 Werner Koch <wk@g10code.com>
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
17 2010-07-23 Werner Koch <wk@g10code.com>
19 * keybox-blob.c (_keybox_create_x509_blob): Fix reallocation bug.
21 2010-04-20 Marcus Brinkmann <marcus@g10code.de>
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.
27 2010-04-15 Werner Koch <wk@g10code.com>
29 * keybox-blob.c: Include gettime.h
30 (make_timestamp): Remove.
32 2010-03-23 Werner Koch <wk@g10code.com>
34 * Makefile.am (extra_libs): New.
35 (kbxutil_LDADD): Use it.
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/.
41 2010-03-10 Werner Koch <wk@g10code.com>
43 * Makefile.am (kbxutil_LDADD, $(PROGRAMS)): Remove libjnlib.a.
45 * keybox-search.c, keybox-init.c, keybox-defs.h, kbxutil.c:
46 Replace "jnlib" include file part by "common".
48 2010-03-08 Werner Koch <wk@g10code.com>
50 Use macros for iobuf_ioctl commands.
52 2009-12-08 Werner Koch <wk@g10code.com>
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
60 2008-12-09 Werner Koch <wk@g10code.com>
62 * kbxutil.c (main): Call i18n_init before init_common_subsystems.
64 2008-11-20 Werner Koch <wk@g10code.com>
66 * keybox-update.c (create_tmp_file) [USE_ONLY_8DOT3]: Use other
67 suffixes to avoid conflicts with gpg uses filenames.
69 2008-11-11 Werner Koch <wk@g10code.com>
71 * Makefile.am (kbxutil_LDADD): Change order of libs.
72 ($(PROGRAMS)): Ditto for documentation.
74 2008-10-20 Werner Koch <wk@g10code.com>
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.
85 2008-05-06 Werner Koch <wk@g10code.com>
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.
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.
94 2008-04-01 Werner Koch <wk@g10code.com>
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.
101 2008-03-13 Werner Koch <wk@g10code.com>
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.
107 2007-08-24 Werner Koch <wk@g10code.com>
109 * keybox-init.c (keybox_register_file): Use same_file_p.
111 2007-08-23 Werner Koch <wk@g10code.com>
113 * kbxutil.c: New commands --find-dups and --cut. New options
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.
120 2007-06-26 Werner Koch <wk@g10code.com>
122 * kbxutil.c: Include init.h
124 2007-06-15 Werner Koch <wk@g10code.com>
126 * Makefile.am (kbxutil_LDADD): Add W32SOCKLIBS.
128 2007-06-12 Werner Koch <wk@g10code.com>
130 * kbxutil.c (main): Replace some calls by init_common_subsystems.
132 2007-06-06 Werner Koch <wk@g10code.com>
134 * kbxutil.c (i18n_init): Remove.
136 2007-03-20 Werner Koch <wk@g10code.com>
138 * keybox.h (KEYBOX_FLAG_BLOB_SECRET, KEYBOX_FLAG_BLOB_EPHEMERAL):
140 * keybox-update.c (keybox_compress): Use it here instead of a
143 2007-01-31 Werner Koch <wk@g10code.com>
145 * Makefile.am (kbxutil_LDADD): Use GPG_ERROR_LIBS instead of -l.
148 2007-01-25 Werner Koch <wk@g10code.com>
150 * Makefile.am (kbxutil_LDADD): Added LIBICONV. Noted by Billy
153 2006-11-15 Werner Koch <wk@g10code.com>
155 * kbxutil.c (dump_openpgp_key): Cast printf argument.
157 2006-10-20 Werner Koch <wk@g10code.com>
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.
164 2006-09-20 Werner Koch <wk@g10code.com>
166 * Makefile.am ($(PROGRAMS): New.
168 2006-09-14 Werner Koch <wk@g10code.com>
170 Replaced all call gpg_error_from_errno(errno) by
171 gpg_error_from_syserror().
173 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
175 * Makefile.am (kbxutil_LDADD): Add ../gl/libgnu.a after
178 2005-06-15 Werner Koch <wk@g10code.com>
180 * keybox-file.c (_keybox_read_blob2): Make IMAGE unsigned.
181 (_keybox_write_blob):
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*.
189 2005-06-01 Werner Koch <wk@g10code.com>
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.
196 2004-12-18 Werner Koch <wk@g10code.com>
198 * keybox-defs.h (map_assuan_err): Define in terms of
199 map_assuan_err_with_source.
201 2004-12-07 Werner Koch <wk@g10code.com>
203 * keybox-init.c (keybox_release): Close the file pointer.
205 2004-11-26 Werner Koch <wk@g10code.com>
207 * Makefile.am (kbxutil_LDADD): Add ../common/libcommon.a
209 * keybox-defs.h: Include stringhelp.h.
211 2004-09-30 Werner Koch <wk@g10code.com>
213 * kbxutil.c (i18n_init): Always use LC_ALL.
215 * Makefile.am: Adjusted for gettext 0.14.
217 2004-08-24 Werner Koch <wk@g10code.de>
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.
225 * keybox-openpgp.c: New.
227 2004-06-18 Werner Koch <wk@gnupg.org>
229 * keybox-dump.c (_keybox_dump_file): New arg STATS_ONLY.
231 * kbxutil.c (main): New command --stats.
233 2004-04-23 Werner Koch <wk@gnupg.org>
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.
241 2004-04-21 Werner Koch <wk@gnupg.org>
243 * keybox-search.c (_keybox_get_flag_location): Add flag
244 KEYBOX_FLAG_CREATED_AT.
245 * keybox-update.c (keybox_compress): New.
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.
252 * keybox-update.c (blob_filecopy): Fixed an error/eof check
253 (s/if(fread)/if(nread)/).
255 * keybox-dump.c (_keybox_dump_blob): Really print the timestamps.
257 2004-04-20 Werner Koch <wk@gnupg.org>
259 * keybox-defs.h: Include jnlib/types.h and remove our own
260 definitions for byte.u16 and u32.
262 2004-02-02 Werner Koch <wk@gnupg.org>
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.
268 2003-11-12 Werner Koch <wk@gnupg.org>
270 Adjusted for API changes in Libksba.
272 * keybox-blob.c: Include time.h
274 2003-06-03 Werner Koch <wk@gnupg.org>
276 Changed all error codes in all files to the new libgpg-error scheme.
278 * keybox-defs.h: Include gpg-error.h .
279 (KeyboxError): Removed.
280 * Makefile.am: Removed keybox-error.c stuff.
282 2002-11-14 Werner Koch <wk@gnupg.org>
284 * keybox-search.c (blob_cmp_name) <compare all names>: Fixed
285 length compare; there is no 0 stored since nearly a year.
287 2002-10-31 Neal H. Walfield <neal@g10code.de>
289 * Makefile.am (AM_CPPFLAGS): Fix ytpo.
291 2002-08-10 Werner Koch <wk@gnupg.org>
293 * keybox-search.c (blob_cmp_fpr_part): New.
294 (has_short_kid, has_long_kid): Implemented.
296 2002-07-22 Werner Koch <wk@gnupg.org>
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
302 * keybox-blob.c (_keybox_new_blob): Add new arg OFF.
303 (_keybox_get_blob_fileoffset): New.
304 * keybox-update.c (keybox_delete): Implemented.
306 2002-06-19 Werner Koch <wk@gnupg.org>
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.
315 * keybox-dump.c (_keybox_dump_blob): Print blob flags as strings.
317 2002-02-25 Werner Koch <wk@gnupg.org>
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
327 (keybox_search): Implement MAILSUB and SUBSTR mode.
329 2002-01-21 Werner Koch <wk@gnupg.org>
331 * keybox-search.c (keybox_search): Allow KEYDB_SEARCH_MODE_FPR20.
333 2002-01-15 Werner Koch <wk@gnupg.org>
335 * keybox-search.c (blob_cmp_fpr): New.
336 (has_fingerprint): Implemented;
338 2001-12-20 Werner Koch <wk@gnupg.org>
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.
345 2001-12-18 Werner Koch <wk@gnupg.org>
347 * Makefile.am (AM_CPPFLAGS): Add flags for libksba
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.
353 2001-12-17 Werner Koch <wk@gnupg.org>
355 * keybox-search.c: Changed the way the serial number is
358 2001-12-15 Werner Koch <wk@gnupg.org>
360 * keybox-search.c (blob_cmp_name): There is no terminating 0 stored
361 for the uid; fixed length compare.
363 2001-12-14 Werner Koch <wk@gnupg.org>
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.
370 2001-12-13 Werner Koch <wk@gnupg.org>
372 * keybox-search.c (blob_cmp_name): Kludge to allow searching for
374 (has_subject_or_alt): New.
375 (blob_cmp_mail): New.
377 (keybox_search): Implemented exact search and exact mail search.
379 * kbx/keybox-blob.c (_keybox_create_x509_blob): Insert alternate
383 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
384 2007, 2008, 2011 Free Software Foundation, Inc.
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.
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.