1 2008-12-09 Werner Koch <wk@g10code.com>
3 * kbxutil.c (main): Call i18n_init before init_common_subsystems.
5 2008-11-20 Werner Koch <wk@g10code.com>
7 * keybox-update.c (create_tmp_file) [USE_ONLY_8DOT3]: Use other
8 suffixes to avoid conflicts with gpg uses filenames.
10 2008-11-11 Werner Koch <wk@g10code.com>
12 * Makefile.am (kbxutil_LDADD): Change order of libs.
13 ($(PROGRAMS)): Ditto for documentation.
15 2008-10-20 Werner Koch <wk@g10code.com>
17 * keybox-update.c (blob_filecopy): Remove unused arg n_packets.
18 (keybox_insert_cert): Adjust for that.
19 (keybox_update_cert): Mark unused args.
20 (keybox_set_flags): Ditto.
21 * keybox-blob.c (create_blob_trailer): Ditto.
22 * keybox-search.c (keybox_get_flags): Ditto.
23 * keybox-dump.c (_keybox_dump_find_dups): Ditto.
24 * kbxutil.c (my_gcry_logger): Ditto.
26 2008-05-06 Werner Koch <wk@g10code.com>
28 * keybox-file.c (_keybox_read_blob2): Return GPG_ERR_TOO_SHORT if
29 we get an EOF for 2nd to 5th byte as a better error message.
31 Always use gpg_error_from_syserror and gpg_err_code_from_syserror.
32 This is to avoid cases where we expect an error but due to an
33 errno set to 0 we get back a success status.
35 2008-04-01 Werner Koch <wk@g10code.com>
37 * keybox-init.c (keybox_new, keybox_release): Track used handles.
38 (_keybox_close_file): New.
39 * keybox-update.c (keybox_insert_cert, keybox_set_flags)
40 (keybox_delete, keybox_compress): Use the new close function.
42 2008-03-13 Werner Koch <wk@g10code.com>
44 * keybox-blob.c (x509_email_kludge): Use the same code as in
45 ..sm/keylist.c so that email parts are not only detected at the
46 start of the DN. Reported by Yoshiaki Kasahara.
48 2007-08-24 Werner Koch <wk@g10code.com>
50 * keybox-init.c (keybox_register_file): Use same_file_p.
52 2007-08-23 Werner Koch <wk@g10code.com>
54 * kbxutil.c: New commands --find-dups and --cut. New options
56 * keybox-dump.c (hash_blob_rawdata): New.
57 (_keybox_dump_find_dups): New.
58 (open_file): Factor some code out to this.
59 (_keybox_dump_cut_records): New.
61 2007-06-26 Werner Koch <wk@g10code.com>
63 * kbxutil.c: Include init.h
65 2007-06-15 Werner Koch <wk@g10code.com>
67 * Makefile.am (kbxutil_LDADD): Add W32SOCKLIBS.
69 2007-06-12 Werner Koch <wk@g10code.com>
71 * kbxutil.c (main): Replace some calls by init_common_subsystems.
73 2007-06-06 Werner Koch <wk@g10code.com>
75 * kbxutil.c (i18n_init): Remove.
77 2007-03-20 Werner Koch <wk@g10code.com>
79 * keybox.h (KEYBOX_FLAG_BLOB_SECRET, KEYBOX_FLAG_BLOB_EPHEMERAL):
81 * keybox-update.c (keybox_compress): Use it here instead of a
84 2007-01-31 Werner Koch <wk@g10code.com>
86 * Makefile.am (kbxutil_LDADD): Use GPG_ERROR_LIBS instead of -l.
89 2007-01-25 Werner Koch <wk@g10code.com>
91 * Makefile.am (kbxutil_LDADD): Added LIBICONV. Noted by Billy
94 2006-11-15 Werner Koch <wk@g10code.com>
96 * kbxutil.c (dump_openpgp_key): Cast printf argument.
98 2006-10-20 Werner Koch <wk@g10code.com>
100 * keybox-search.c (blob_x509_has_grip, has_keygrip): New.
101 (keybox_search): Implement new search mode.
102 * keybox-search-desc.h (KEYDB_SEARCH_MODE_KEYGRIP): New.
103 (keydb_search_desc): New member GRIP.
105 2006-09-20 Werner Koch <wk@g10code.com>
107 * Makefile.am ($(PROGRAMS): New.
109 2006-09-14 Werner Koch <wk@g10code.com>
111 Replaced all call gpg_error_from_errno(errno) by
112 gpg_error_from_syserror().
114 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
116 * Makefile.am (kbxutil_LDADD): Add ../gl/libgnu.a after
119 2005-06-15 Werner Koch <wk@g10code.com>
121 * keybox-file.c (_keybox_read_blob2): Make IMAGE unsigned.
122 (_keybox_write_blob):
124 * keybox-blob.c (create_blob_finish, _keybox_create_x509_blob):
125 Fixed warnings about signed/unsigned pointer mismatches.
126 (x509_email_kludge): Ditto.
127 (_keybox_new_blob): Changed arg IMAGE to unsigned char *.
128 (_keybox_get_blob_image): Changed return type to unsigned char*.
130 2005-06-01 Werner Koch <wk@g10code.com>
132 * keybox-file.c (ftello) [!HAVE_FSEEKO]: New replacement
133 function. Copied from ../common/ftello.c.
134 * keybox-update.c (fseeko) [!HAVE_FSEEKO]: New replacement
135 function. Copied from ../common/iobuf.c.
137 2004-12-18 Werner Koch <wk@g10code.com>
139 * keybox-defs.h (map_assuan_err): Define in terms of
140 map_assuan_err_with_source.
142 2004-12-07 Werner Koch <wk@g10code.com>
144 * keybox-init.c (keybox_release): Close the file pointer.
146 2004-11-26 Werner Koch <wk@g10code.com>
148 * Makefile.am (kbxutil_LDADD): Add ../common/libcommon.a
150 * keybox-defs.h: Include stringhelp.h.
152 2004-09-30 Werner Koch <wk@g10code.com>
154 * kbxutil.c (i18n_init): Always use LC_ALL.
156 * Makefile.am: Adjusted for gettext 0.14.
158 2004-08-24 Werner Koch <wk@g10code.de>
160 * kbxutil.c: New command --import-openpgp.
161 (main): Updated libgcrypt initialization stuff.
162 (my_gcry_logger): New.
163 (read_file): New. Taken from ../agent/protect-tool.
164 (dump_fpr, dump_openpgp_key, import_openpgp): New.
166 * keybox-openpgp.c: New.
168 2004-06-18 Werner Koch <wk@gnupg.org>
170 * keybox-dump.c (_keybox_dump_file): New arg STATS_ONLY.
172 * kbxutil.c (main): New command --stats.
174 2004-04-23 Werner Koch <wk@gnupg.org>
176 * keybox-blob.c (_keybox_update_header_blob): New.
177 * keybox-update.c (blob_filecopy): Handle header blob.
178 * keybox-file.c (_keybox_read_blob2): New. Moved code from
179 _keybox_read_blob to there.
180 * keybox-dump.c (dump_header_blob): Print header info.
182 2004-04-21 Werner Koch <wk@gnupg.org>
184 * keybox-search.c (_keybox_get_flag_location): Add flag
185 KEYBOX_FLAG_CREATED_AT.
186 * keybox-update.c (keybox_compress): New.
188 * keybox-search.c (get32, get16, blob_get_type)
189 (blob_get_blob_flags, has_short_kid, has_long_kid)
190 (has_fingerprint, has_issuer, has_issuer_sn, has_sn, has_subject)
191 (has_subject_or_alt, has_mail): inline them.
193 * keybox-update.c (blob_filecopy): Fixed an error/eof check
194 (s/if(fread)/if(nread)/).
196 * keybox-dump.c (_keybox_dump_blob): Really print the timestamps.
198 2004-04-20 Werner Koch <wk@gnupg.org>
200 * keybox-defs.h: Include jnlib/types.h and remove our own
201 definitions for byte.u16 and u32.
203 2004-02-02 Werner Koch <wk@gnupg.org>
205 * keybox.h (keybox_flag_t): New.
206 * keybox-search.c (get_flag_from_image, keybox_get_flags): New.
207 (_keybox_get_flag_location): New.
209 2003-11-12 Werner Koch <wk@gnupg.org>
211 Adjusted for API changes in Libksba.
213 * keybox-blob.c: Include time.h
215 2003-06-03 Werner Koch <wk@gnupg.org>
217 Changed all error codes in all files to the new libgpg-error scheme.
219 * keybox-defs.h: Include gpg-error.h .
220 (KeyboxError): Removed.
221 * Makefile.am: Removed keybox-error.c stuff.
223 2002-11-14 Werner Koch <wk@gnupg.org>
225 * keybox-search.c (blob_cmp_name) <compare all names>: Fixed
226 length compare; there is no 0 stored since nearly a year.
228 2002-10-31 Neal H. Walfield <neal@g10code.de>
230 * Makefile.am (AM_CPPFLAGS): Fix ytpo.
232 2002-08-10 Werner Koch <wk@gnupg.org>
234 * keybox-search.c (blob_cmp_fpr_part): New.
235 (has_short_kid, has_long_kid): Implemented.
237 2002-07-22 Werner Koch <wk@gnupg.org>
239 * keybox-defs.h: New BLOBTYPTE_EMPTY.
240 * keybox-dump.c (_keybox_dump_blob): Handle new type.
241 * keybox-file.c (_keybox_read_blob): Skip over empty blobs. Store
243 * keybox-blob.c (_keybox_new_blob): Add new arg OFF.
244 (_keybox_get_blob_fileoffset): New.
245 * keybox-update.c (keybox_delete): Implemented.
247 2002-06-19 Werner Koch <wk@gnupg.org>
249 * keybox-init.c (keybox_set_ephemeral): New.
250 * keybox-blob.c (create_blob_header): Store ephemeral flag.
251 (_keybox_create_x509_blob): Pass epheermal flag on.
252 * keybox-update.c (keybox_insert_cert): Ditto.
253 * keybox-search.c (blob_get_blob_flags): New.
254 (keybox_search): Ignore ephemeral blobs when not in ephemeral mode.
256 * keybox-dump.c (_keybox_dump_blob): Print blob flags as strings.
258 2002-02-25 Werner Koch <wk@gnupg.org>
260 * keybox-search.c (blob_cmp_mail): Use case-insensitive compare
261 because mail addresses are in general case insensitive (well
262 RFC2822 allows for case sensitive mailbox parts, but this is in
263 general considired a Bad Thing). Add additional substr parameter
264 to allow for substring matches within the mail address. Change
265 all callers to pass this along.
266 (blob_cmp_name): Likewise but do the case-insensitive search only
268 (keybox_search): Implement MAILSUB and SUBSTR mode.
270 2002-01-21 Werner Koch <wk@gnupg.org>
272 * keybox-search.c (keybox_search): Allow KEYDB_SEARCH_MODE_FPR20.
274 2002-01-15 Werner Koch <wk@gnupg.org>
276 * keybox-search.c (blob_cmp_fpr): New.
277 (has_fingerprint): Implemented;
279 2001-12-20 Werner Koch <wk@gnupg.org>
281 * keybox-blob.c (_keybox_create_x509_blob): Skip the leading
282 parenthesis of the serial number's S-exp.
283 (_keybox_create_x509_blob): And fixed length calculation.
284 (create_blob_header): Don't add an offset when writing the serial.
286 2001-12-18 Werner Koch <wk@gnupg.org>
288 * Makefile.am (AM_CPPFLAGS): Add flags for libksba
290 * keybox-blob.c (_keybox_create_x509_blob): Use
291 gcry_sexp_canon_len to get the length of the serial number.
292 (_keybox_release_blob): Need to use a new serialbuf to free the memory.
294 2001-12-17 Werner Koch <wk@gnupg.org>
296 * keybox-search.c: Changed the way the serial number is
299 2001-12-15 Werner Koch <wk@gnupg.org>
301 * keybox-search.c (blob_cmp_name): There is no terminating 0 stored
302 for the uid; fixed length compare.
304 2001-12-14 Werner Koch <wk@gnupg.org>
306 * keybox-blob.c (x509_email_kludge): New.
307 (_keybox_create_x509_blob): Insert an extra email address if the
308 subject's DN has an email part.
309 * keybox-defs.h: Added the xtoi_2 and digitp macros.
311 2001-12-13 Werner Koch <wk@gnupg.org>
313 * keybox-search.c (blob_cmp_name): Kludge to allow searching for
315 (has_subject_or_alt): New.
316 (blob_cmp_mail): New.
318 (keybox_search): Implemented exact search and exact mail search.
320 * kbx/keybox-blob.c (_keybox_create_x509_blob): Insert alternate
324 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
325 2007, 2008 Free Software Foundation, Inc.
327 This file is free software; as a special exception the author gives
328 unlimited permission to copy and/or distribute it, with or without
329 modifications, as long as this notice is preserved.
331 This file is distributed in the hope that it will be useful, but
332 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
333 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.