chiark / gitweb /
dirmngr: Fix for --disable-libdns usage.
[gnupg2.git] / sm / 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-09-20  Werner Koch  <wk@g10code.com>
9
10         * verify.c (gpgsm_verify): s/gcry_md_start_debug/gcry_md_debug/
11         in preparation for Libgcrypt 1.6.
12         * sign.c (gpgsm_sign): Ditto.
13         * certreqgen.c (create_request): Ditto.
14         * certcheck.c (gpgsm_check_cert_sig): Ditto.
15
16 2011-08-10  Werner Koch  <wk@g10code.com>
17
18         * keydb.c (keydb_add_resource): Remove unsued var CREATED_FNAME.
19
20         * gpgsm.c (main): Remove unused var FNAME.
21
22 2011-07-21  Werner Koch  <wk@g10code.com>
23
24         * call-dirmngr.c (get_cached_cert, get_cached_cert_data_cb): New.
25         (gpgsm_dirmngr_isvalid): Try to get the only-valid-if-cert-valid
26         certificate from the dirmngr first.
27
28 2011-06-01  Marcus Brinkmann  <mb@g10code.com>
29
30         * certreqgen.c (proc_parameters): Initialize RC.
31
32 2011-04-25  Werner Koch  <wk@g10code.com>
33
34         * certlist.c (gpgsm_add_to_certlist): Mark classify_user_id for
35         use with non-OpenPGP.
36         (gpgsm_find_cert): Ditto.
37         * sign.c (get_default_signer): Ditto.
38         * keylist.c (list_internal_keys): Ditto.
39         * import.c (reimport_one): Ditto.
40         * export.c (gpgsm_export): Ditto.
41         * delete.c (delete_one): Ditto.
42
43 2011-03-10  Werner Koch  <wk@g10code.com>
44
45         * minip12.c (oid_pkcs5PBKDF2, oid_pkcs5PBES2, oid_aes128_CBC): New.
46         (set_key_iv_pbes2): New.
47         (crypt_block): Add args IV and IVLEN.  Call set_key_iv_pbes2.
48         (decrypt_block): Add args IV and IVLEN.
49         (parse_bag_encrypted_data): Hack to support PBES2 data.
50         (parse_bag_data): Ditto.
51
52 2011-03-03  Werner Koch  <wk@g10code.com>
53
54         * base64.c (base64_finish_write): Do not copy to radbuf to get rid
55         of a faulty gcc 4.4 "used uninitialized" warning.
56
57 2011-03-01  Werner Koch  <wk@g10code.com>
58
59         * certreqgen.c (pSERIAL, pISSUERDN, pNOTBEFORE, pNOTAFTER)
60         (pSIGNINGKEY, pHASHALGO): New.
61         (reqgen_ctrl_s): Remove field WRITER.
62         (read_parameters): Support new keywords.  Change arg WRITER to
63         OUT_FP; pass that to proc_parameters.
64         (proc_parameters): Add arg WRITER.  Check values of new keywords.
65         Create writer object here.  Support generation of certificates.
66         (create_request): Take new arg SIGKEY.  Allow for hash algorithms
67         other than SHA-1.  Set serialno and other values for certificate
68         creation.
69         (gpgsm_genkey): Do not create writer object but pass output stream
70         to read_parameters.
71         * certreqgen-ui.c (gpgsm_gencertreq_tty): Ask for self-signed.
72         * misc.c (transform_sigval): New.
73
74 2011-02-25  Werner Koch  <wk@g10code.com>
75
76         * certreqgen.c (create_request): Add arg SIGKEY.
77
78 2010-11-25  Werner Koch  <wk@g10code.com>
79
80         * base64.c (gpgsm_create_writer): Remove arg FP which is not used
81         by any caller.  Change all callers.
82         (struct writer_cb_parm_s): Remove field FP.
83         (do_putc, do_fputs): Remove and replace callers by direct calls to
84         es_ functions.
85
86 2010-11-23  Werner Koch  <wk@g10code.com>
87
88         * Makefile.am (gpgsm_LDADD): Add extra_bin_ldflags.
89
90 2010-10-08  Werner Koch  <wk@g10code.com>
91
92         * gpgsm.c: Add option --with-keygrip.
93         * gpgsm.h (struct opt): Add WITH_KEYGRIP.
94         * keylist.c (list_cert_std): Implement option.
95
96 2010-09-16  Werner Koch  <wk@g10code.com>
97
98         * certchain.c (gpgsm_walk_cert_chain): Use GPG_ERR_MISSING_ISSUER_CERT.
99         (do_validate_chain): Ditto.
100         (gpgsm_basic_cert_check): Ditto.
101         * call-agent.c (learn_cb): Take care of new
102         GPG_ERR_MISSING_ISSUER_CERT.
103         * import.c (check_and_store): Ditto.
104         (check_and_store): Ditto.
105
106 2010-08-16  Werner Koch  <wk@g10code.com>
107
108         * gpgsm.c (main) <aGPGConfList>: Use es_printf.
109
110         * call-dirmngr.c (start_dirmngr_ext): Use new start_new_dirmngr
111         function.
112
113         * gpgsm.c: Mark option --prefer-system-dirmngr obsolete.
114         (main): Enable dirmngr by default.
115
116         * gpgsm.h (struct opt): Remove field PREFER_SYSTEM_DIRMNGR.
117
118         * server.c (gpgsm_server): Use dirmngr_socket_name instead of the
119         envvar for the hello line info.
120
121 2010-06-21  Werner Koch  <wk@g10code.com>
122
123         * minip12.c (p12_build): Change arg CERT to const void ptr.
124         (build_cert_sequence): Change arg CERT to const ptr.
125
126         * gpgsm.c (main) <aExportSecretKeyP12>: Use to estream.
127         (open_fwrite): Removed.
128
129         * export.c: Include minip12.h.
130         (popen_protect_tool): Remove.
131         (export_p12): Use gpg-agent directly.  Change calling convention.
132         (gpgsm_p12_export): Adjust for that change.  Change arg FP to an
133         estream_t.
134         (do_putc): Remove.  Change callers to es_putc.
135         (do_fputs): Likewise.
136         (print_short_info): Remove arg FP.
137         * call-agent.c (gpgsm_agent_export_key): new.
138
139 2010-06-17  Werner Koch  <wk@g10code.com>
140
141         * import.c (parse_p12): Remove arg retfp.  Use the agent's new
142         import command.
143         (import_one): Adjust call to pkcs12.
144         (store_cert_cb, rsa_key_check): New.
145         (popen_protect_tool): Remove.
146         * minip12.c (parse_bag_encrypted_data, p12_parse): Add arg
147         R_BADPASS.
148         * call-agent.c (gpgsm_agent_ask_passphrase): New.
149         (gpgsm_agent_keywrap_key): New.
150         (struct import_key_parm_s): New.
151         (gpgsm_agent_import_key): New.
152         * minip12.c, minip12.h: Move from ../agent/.
153         * Makefile.am (gpgsm_SOURCES): Add them.
154
155 2010-06-11  Marcus Brinkmann  <marcus@g10code.de>
156
157         * server.c (cmd_message) [HAVE_W32CE_SYSTEM]: Finish pipe.
158
159 2010-06-10  Marcus Brinkmann  <marcus@g10code.de>
160
161         * server.c (SERVER_STDIN, SERVER_STDOUT): New macros.
162         (gpgsm_server): Use them with assuan_fdopen.
163
164 2010-04-23  Marcus Brinkmann  <marcus@g10code.de>
165
166         * certreqgen.c (read_parameters): Use ascii_isspace instead of
167         spacep to stop at newline, too.
168
169 2010-04-14  Werner Koch  <wk@g10code.com>
170
171         * gpgsm.c (main) [W32CE]: Disable dirmngr for now.
172
173 2010-04-13  Werner Koch  <wk@g10code.com>
174
175         * sign.c (gpgsm_sign): Do not check qualified status in
176         no-chain-validation mode.
177
178 2010-04-08  Werner Koch  <wk@g10code.com>
179
180         * gpgsm.c (open_es_fread): Add arg mode.
181         (main) <aKeygen>: Call with mode "r" instead of "rb".
182
183 2010-04-07  Werner Koch  <wk@g10code.com>
184
185         * misc.c: Remove setenv.h.  Include sysutils.h.
186         (setup_pinentry_env): s/setenv/gnupg_setenv/
187
188 2010-03-24  Werner Koch  <wk@g10code.com>
189
190         * Makefile.am (gpgsm_LDADD): Add extra_sys_libs.
191
192 2010-03-23  Werner Koch  <wk@g10code.com>
193
194         * qualified.c (gpgsm_is_in_qualified_list): Replace rewind by
195         fseek+clearerr.
196
197 2010-03-22  Werner Koch  <wk@g10code.com>
198
199         * import.c (parse_p12): Use estream functions for the tmp streams.
200         * export.c (export_p12): Ditto.
201
202 2010-03-11  Werner Koch  <wk@g10code.com>
203
204         * verify.c (gpgsm_verify): Use gpgsm_es_print_name.
205
206         * gpgsm.c: Include "asshelp.h".
207         (main): Remove assuan_set_assuan_log_prefix.  Add
208         assuan_set_log_cb.
209         * server.c (gpgsm_server): Remove assuan_set_log_stream.
210
211 2010-03-10  Werner Koch  <wk@g10code.com>
212
213         * Makefile.am (common_libs): Remove libjnlib.a.  Change order.
214
215         * gpgsm.h: Remove "estream.h".
216
217 2010-03-08  Werner Koch  <wk@g10code.com>
218
219         * certreqgen.c (gpgsm_genkey): Change OUT_FP to an estream_t
220         OUT_STREAM.
221         * certreqgen-ui.c (gpgsm_gencertreq_tty): ditto.
222
223         * server.c (cmd_genkey): Close IN_STREAM.
224
225         * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_sign): Avoid
226         dup call by using es_fdopen_nc.
227         (do_listkeys): Use es_fdopen_nc instead of dup and es_fdopen.
228         (cmd_export): Ditto.
229         (cmd_genkey): Ditto.
230         * export.c (popen_protect_tool): Change OUTFILE to an estream_t.
231         (export_p12): Change OUTFP and arg RETFP to an estream_t.
232         (gpgsm_p12_export): Change DATAFP to an estream_t.
233         (gpgsm_export): Remove arg FP.
234         * import.c (import_one): Change CERTFP and arg FP to an estream_t.
235         (popen_protect_tool): Ditto for OUTFILE.
236         (parse_p12): Change CERTFP to an estream_t.
237         * sign.c (hash_data, hash_and_copy_data): Use estream.
238         (gpgsm_sign): Change arg OUT_FP to an estream_t.
239         * verify.c (gpgsm_verify): Rename FP to IN_FP.  Change FP and arg
240         OUT_FP to an estream_t.
241         (hash_data): Use estream.
242         * base64.c (struct reader_cb_parm_s): Change FP to an estream_t.
243         (gpgsm_create_reader): Ditto.
244         (simple_reader_cb, base64_reader_cb): Adjust accordingly.
245         * decrypt.c (gpgsm_decrypt): Change OUT_FP and IN_FP to an estream_t.
246         * encrypt.c (gpgsm_encrypt): Change OUT_FP to an estream_t.  Ditto
247         for DATA_FD.
248         (encrypt_cb): Use estream.
249         * gpgsm.c (main) <aEncr, aVerify, aSign, aDecrypt>: Use estream
250         functions.
251         (main) <aExport, aKeygen>: Use open_es_fwrite.
252
253 2009-12-14  Werner Koch  <wk@g10code.com>
254
255         * server.c (cmd_passwd): New.
256         (register_commands): Register new command.
257
258 2009-12-10  Werner Koch  <wk@g10code.com>
259
260         * gpgsm.c: Add option --ignore-cert-extension.
261         * gpgsm.h (opt): Add field IGNORED_CERT_EXTENSIONS.
262         * certchain.c (unknown_criticals): Handle ignored extensions,
263
264 2009-12-08  Werner Koch  <wk@g10code.com>
265
266         * keydb.c (keydb_search_kid): Fix code even that it is not used.
267         (classify_user_id): Adjust for change of u.kid type.
268         (keydb_classify_name): Replace GPG_ERR_INV_NAME by
269         GPG_ERR_INV_USER_ID.
270         (keydb_classify_name): Remove.  Replace all callers by
271         classify_user_id.
272
273 2009-12-08  Marcus Brinkmann  <marcus@g10code.de>
274
275         * call-dirmngr.c (start_dirmngr_ext): Convert posix fd to assuan fd.
276
277 2009-12-03  Werner Koch  <wk@g10code.com>
278
279         * gpgsm.c (set_debug): Allow for numerical debug leveles.  Print
280         active debug flags.
281
282 2009-12-02  Werner Koch  <wk@g10code.com>
283
284         * verify.c (gpgsm_verify): Add audit info on hash algorithms.
285
286         * sign.c (gpgsm_sign): Add audit log calls.
287         (hash_data): Return an error indicator.
288
289 2009-12-01  Werner Koch  <wk@g10code.com>
290
291         * decrypt.c (gpgsm_decrypt): Add audit log calls.
292
293         * gpgsm.c: New option --html-audit-log.
294
295 2009-11-25  Marcus Brinkmann  <marcus@g10code.de>
296
297         * server.c (gpgsm_server): Use assuan_fd_t and assuan_fdopen on
298         fds.
299
300 2009-11-23  Werner Koch  <wk@g10code.com>
301
302         * gpgsm.c (main) <aGpgConfList>: Add key "default_pubkey_algo".
303
304 2009-11-10  Marcus Brinkmann  <marcus@g10code.de>
305
306         * server.c (cmd_getauditlog): Don't dup FD for es_fdopen_nc as
307         this leaks the FD here.
308
309 2009-11-05  Marcus Brinkmann  <marcus@g10code.de>
310
311         * call-dirmngr.c (start_dirmngr_ext): Update use of
312         assuan_pipe_connect and assuan_socket_connect.
313
314 2009-11-04  Werner Koch  <wk@g10code.com>
315
316         * certreqgen.c (proc_parameters): Change fallback key length to
317         2048.
318
319         * server.c (register_commands): Add help arg to
320         assuan_register_command.  Provide help strings for all commands.
321
322 2009-11-02  Marcus Brinkmann  <marcus@g10code.de>
323
324         * server.c (reset_notify, input_notify, output_notify): Update to
325         new assuan interface.
326         (register_commands): Use assuan_handler_t.
327         * call-agent.c (membuf_data_cb, default_inq_cb)
328         (inq_ciphertext_cb, scd_serialno_status_cb)
329         (scd_keypairinfo_status_cb, istrusted_status_cb)
330         (learn_status_cb, learn_cb, keyinfo_status_cb): Return gpg_error_t.
331
332 2009-10-16  Werner Koch  <wk@g10code.com>
333
334         * gpgsm.c (default_include_certs): Change to -2.
335         (DEFAULT_INCLUDE_CERTS): New.
336         (DEFAULT_CIPHER_ALGO): New.  Use instead of hardcoded "3DES".
337
338 2009-09-30  Werner Koch  <wk@g10code.com>
339
340         * gpgsm.c (main): Remove obsolete GCRYCTL_DISABLE_INTERNAL_LOCKING.
341
342 2009-09-23  Marcus Brinkmann  <marcus@g10code.de>
343
344         * gpgsm.c (main): Update to new assuan API.
345         * server.c: Include "gpgsm.h" before <assuan.h> due to check for
346         GPG_ERR_SOURCE_DEFAULT and assuan.h now including gpg-error.h.
347         (option_handler, cmd_recipient, cmd_signer, cmd_encrypt)
348         (cmd_decrypt, cmd_verify, cmd_sign, cmd_import, cmd_export)
349         (cmd_delkeys, cmd_message, cmd_listkeys, cmd_dumpkeys)
350         (cmd_listsecretkeys, cmd_dumpsecretkeys, cmd_genkey)
351         (cmd_getauditlog, cmd_getinfo): Return gpg_error_t instead of int.
352         (register_commands): Same for member HANDLER in table.
353         (gpgsm_server): Allocate assuan context before starting server.
354         * sm/call-dirmngr.c:
355         * call-dirmngr.c (prepare_dirmngr): Check for CTX and error before
356         setting LDAPSERVER.
357         (start_dirmngr_ext): Allocate assuan context before starting
358         server.
359         (inq_certificate, isvalid_status_cb, lookup_cb, lookup_status_cb)
360         (run_command_cb, run_command_inq_cb, run_command_status_cb):
361         Return gpg_error_t instead of int.
362
363 2009-08-06  Werner Koch  <wk@g10code.com>
364
365         * sign.c (gpgsm_sign): Print INV_SNDR for a bad default key.
366
367         * server.c (cmd_signer): Remove unneeded case for -1.  Send
368         INV_SGNR.  Use new map function.
369         (cmd_recipient): Use new map function.
370         * gpgsm.c (do_add_recipient): Use new map function for INV_RECP.
371         (main): Ditto.  Also send INV_SGNR.
372
373 2009-07-30  Werner Koch  <wk@g10code.com>
374
375         * call-agent.c (learn_cb): Do not store as ephemeral.
376
377 2009-07-29  Marcus Brinkmann  <marcus@g10code.com>
378
379         * keylist.c (print_capabilities): Print a trailing colon.
380
381 2009-07-23  Werner Koch  <wk@g10code.com>
382
383         * certchain.c (is_cert_still_valid): Emit AUDIT_CRL_CHECK.
384
385 2009-07-07  Werner Koch  <wk@g10code.com>
386
387         * server.c (command_has_option): New.
388         (cmd_getinfo): Add subcommand "cmd_has_option".
389         (cmd_import): Implement option --re-import.
390         * import.c (gpgsm_import): Add arg reimport_mode.
391         (reimport_one): New.
392
393         * gpgsm.h: Include session-env.h.
394         (opt): Add field SESSION_ENV.  Remove obsolete fields.
395         * server.c (option_handler): Rewrite setting of option fields.
396         Replace strdup by xtrystrdup.
397         * gpgsm.c (set_opt_session_env): New.
398         (main): Use it for oDisplay, oTTYname, oTTYtype and oXauthority.
399         * call-agent.c (start_agent): Adjust start_new_gpg_agent for
400         changed args.
401         * misc.c (setup_pinentry_env): Use new session_env stuff.
402
403 2009-07-02  Werner Koch  <wk@g10code.com>
404
405         * certreqgen-ui.c (gpgsm_gencertreq_tty): Allow using a key from a
406         card.
407         * call-agent.c (gpgsm_agent_scd_serialno)
408         (scd_serialno_status_cb, store_serialno): New.
409         (scd_keypairinfo_status_cb, gpgsm_agent_scd_keypairinfo): New.
410
411 2009-07-01  Werner Koch  <wk@g10code.com>
412
413         * certreqgen-ui.c (check_keygrip): New.
414         (gpgsm_gencertreq_tty): Allow using an existing key.
415
416         * gpgsm.c (open_es_fread): New.
417         (main) <aKeygen>: Implement --batch mode.
418
419 2009-06-24  Werner Koch  <wk@g10code.com>
420
421         * call-dirmngr.c (pattern_from_strlist): Remove dead assignment of N.
422         * sign.c (gpgsm_sign): Remove dead assignment.
423         * certreqgen.c (create_request): Assign GPG_ERR_BUG to RC.
424         Reported by Fabian Keil.
425
426 2009-05-27  Werner Koch  <wk@g10code.com>
427
428         * encrypt.c (encrypt_dek): Make use of make_canon_sexp.
429
430 2009-05-18  Werner Koch  <wk@g10code.com>
431
432         * server.c (option_handler): New option "no-encrypt-to".
433         (cmd_encrypt): Make use of it.
434
435         * gpgsm.c: Remove not implemented --verify-files.
436
437 2009-04-02  Werner Koch  <wk@g10code.com>
438
439         * keylist.c (list_cert_std): Print card serial number.
440
441 2009-04-01  Werner Koch  <wk@g10code.com>
442
443         * export.c (popen_protect_tool): Add command line option
444         --agent-program and pass flag bit 6.
445         * import.c (popen_protect_tool): Ditto.
446
447 2009-03-26  Werner Koch  <wk@g10code.com>
448
449         * gpgsm.c (main): s/def_digest_string/forced_digest_algo/ and
450         activate the --digest-algo option.
451         * gpgsm.h (struct opt): s/def_digest_algo/forced_digest_algo/.
452         * sign.c (gpgsm_sign): Implement --digest-algo.
453
454         * sign.c (MAX_DIGEST_LEN): Change to 64.
455
456         * call-agent.c (gpgsm_agent_marktrusted): Format the issuer name.
457
458 2009-03-25  Werner Koch  <wk@g10code.com>
459
460         * decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY stati.
461         Fixes bug#1020.
462         * fingerprint.c (gpgsm_get_short_fingerprint): Add arg R_HIGH and
463         change all callers.
464
465 2009-03-23  Werner Koch  <wk@g10code.com>
466
467         * delete.c (delete_one): Also delete ephemeral certificates if
468         specified uniquely.
469
470 2009-03-20  Werner Koch  <wk@g10code.com>
471
472         * keylist.c (list_internal_keys): Set released cert to NULL.
473
474         * call-agent.c (learn_status_cb): New.
475         (gpgsm_agent_learn): Use it.
476         (learn_cb): Send a progress for every certificate.
477
478 2009-03-18  Werner Koch  <wk@g10code.com>
479
480         * gpgsm.h (struct opt): Move field WITH_EPHEMERAL_KEYS to struct
481         server_control_s.
482         * gpgsm.c (main): Change accordingly.
483         * keylist.c (list_internal_keys): Ditto.
484         * server.c (option_handler): Add "with-ephemeral-keys".
485
486 2009-03-12  Werner Koch  <wk@g10code.com>
487
488         * certdump.c (gpgsm_dump_time): Remove.
489         * certdump.c, verify.c, certchain.c
490         * gpgsm.c: s/gpgsm_dump_time/dump_isotime/.
491
492 2009-03-06  Werner Koch  <wk@g10code.com>
493
494         * call-agent.c (gpgsm_agent_keyinfo, keyinfo_status_cb): New.
495         * keylist.c (list_cert_colon): Print card S/N.
496
497         * keylist.c (list_internal_keys): Always list ephemeral keys if
498         specified by keygrip or fingerprint.
499         (list_cert_raw): Always show ephemeral flag.
500         * export.c (gpgsm_export): Export ephemeral keys if specified by
501         keygrip.
502
503 2009-02-09  Werner Koch  <wk@g10code.com>
504
505         * gpgsm.c (main): Change default cipher back to 3DES.
506
507 2009-01-12  Werner Koch  <wk@g10code.com>
508
509         * keylist.c (print_utf8_extn_raw): Cast printf precision argument.
510
511 2009-01-08  Werner Koch  <wk@g10code.com>
512
513         * fingerprint.c (gpgsm_get_keygrip_hexstring): Add error detection.
514
515 2008-12-10  Werner Koch  <wk@g10code.com>
516
517         * gpgsm.c (our_cipher_test_algo): Use the GCRY constants as we now
518         require 1.4.
519         (our_md_test_algo): Ditto.  Add SHA224.
520         (main) <aGpgConfList>: Update default cipher algo.
521
522 2008-12-09  Werner Koch  <wk@g10code.com>
523
524         * gpgsm.c (main): Call i18n_init before init_common_subsystems.
525
526 2008-12-05  Werner Koch  <wk@g10code.com>
527
528         * certreqgen.c (create_request): Provide a custom prompt for the
529         signing.
530
531         * certdump.c (gpgsm_format_keydesc): Remove debug output.
532         (gpgsm_format_keydesc): Remove saving of errno as xfree is
533         supposed not to change it.  Use the new percent_plus_escape
534         function which also fixes the issue that we did not escaped a
535         percent in the past.
536
537 2008-11-18  Werner Koch  <wk@g10code.com>
538
539         * gpgsm.c (make_libversion): New.
540         (my_strusage): Use new function.
541         (build_lib_list): Remove.
542
543 2008-11-13  Werner Koch  <wk@g10code.com>
544
545         * gpgsm.c: Remove all unused options. Use ARGPARSE macros.
546
547 2008-10-28  Werner Koch  <wk@g10code.com>
548
549         * certdump.c (gpgsm_format_keydesc): Use xtryasprintf and xfree.
550         (gpgsm_es_print_name): Factor code out to ...
551         (gpgsm_es_print_name2): New function.
552         (gpgsm_format_name2, format_name_writer): Use estream so that it
553         works on all platforms.
554         (format_name_writer): Fix reallocation bug.
555
556 2008-10-23  Werner Koch  <wk@g10code.com>
557
558         * import.c (popen_protect_tool): Add arg CTRL and assure that the
559         agent is running.  Pass a value for CTRL from all caller.
560         * export.c (popen_protect_tool): Ditto.
561
562 2008-10-21  Werner Koch  <wk@g10code.com>
563
564         * call-dirmngr.c (inq_certificate_parm_s): Add field CTRL.
565         (gpgsm_dirmngr_isvalid): Supply a value for that field.
566         (inq_certificate): Add inquiry ISTRUSTED.
567
568         * call-agent.c (gpgsm_agent_istrusted): Add new optional arg
569         HEXFPR.  Changed all callers.
570
571 2008-10-20  Werner Koch  <wk@g10code.com>
572
573         * keydb.c (keydb_locate_writable): Mark unused arg.
574         (keydb_search_kid): Ditto.
575         (keydb_clear_some_cert_flags): Ditto.
576         * server.c (cmd_encrypt): Ditto.
577         (cmd_decrypt, cmd_verify, cmd_import, cmd_genkey): Ditto.
578         * call-agent.c (gpgsm_scd_pksign): Ditto.
579         * call-dirmngr.c (release_dirmngr, release_dirmngr2)
580         (run_command_cb): Ditto.
581         * certlist.c (gpgsm_add_cert_to_certlist): Ditto.
582         * certchain.c (find_up_dirmngr): Ditto.
583         * keylist.c (print_key_data): Ditto.
584         (list_cert_raw, list_cert_std): Ditto.
585         * qualified.c (gpgsm_is_in_qualified_list): Ditto.
586
587         * gpgsm.c (set_binary) [!W32]: Mark unused arg.
588
589 2008-10-17  Werner Koch  <wk@g10code.com>
590
591         * call-dirmngr.c (start_dirmngr, start_dirmngr2): Reset the lock
592         flag on error.
593         (release_dirmngr, release_dirmngr2): Replace asserts by error messages.
594         (gpgsm_dirmngr_lookup): Replace assert by fatal error message.
595
596 2008-10-13  Werner Koch  <wk@g10code.com>
597
598         * gpgsm.c: Add alias --delete-keys.
599
600 2008-09-30  Werner Koch  <wk@g10code.com>
601
602         * server.c (cmd_getinfo): New subcommand agent-check.
603         * call-agent.c (gpgsm_agent_send_nop): New.
604
605 2008-09-29  Werner Koch  <wk@g10code.com>
606
607         * certcheck.c (MY_GCRY_PK_ECDSA): Remove.  Change users to
608         GCRY_PK_ECDSA.
609         * gpgsm.c (MY_GCRY_PK_ECDSA): Ditto.
610         * sign.c (MY_GCRY_MD_SHA224): Remove change users to GCRY_MD_SHA224.
611
612 2008-09-04  Werner Koch  <wk@g10code.com>
613
614         * certdump.c (gpgsm_format_keydesc): Work around a mingw32 bug.
615
616 2008-09-03  Werner Koch  <wk@g10code.com>
617
618         * sign.c (MY_GCRY_MD_SHA224): New, so that we don't need libgcrypt
619         1.2.
620
621 2008-08-13  Werner Koch  <wk@g10code.com>
622
623         * keylist.c (list_cert_colon): Print 'f' for validated certs.
624
625 2008-08-08  Marcus Brinkmann  <marcus@g10code.de>
626
627         * gpgsm.h (struct server_control_s): Remove member dirmngr_seen.
628         * call-dirmngr.c (dirmngr2_ctx, dirmngr_ctx_locked)
629         (dirmngr2_ctx_locked): New global variables.
630         (prepare_dirmngr): Don't check dirmngr_seen anymore.
631         (start_dirmngr): Move bunch of code to ...
632         (start_dirmngr_ext): ... this new function.
633         (release_dirmngr, start_dirmngr2, release_dirmngr2): New
634         functions.
635         (gpgsm_dirmngr_isvalid): Call release_dirmngr.
636         (gpgsm_dirmngr_lookup): Call release_dirmngr.  If dirmngr_ctx is
637         locked, use dirmngr2_locked.
638         (gpgsm_dirmngr_run_command): Call release_dirmngr.
639
640 2008-06-25  Werner Koch  <wk@g10code.com>
641
642         * sign.c (gpgsm_sign): Revamp the hash algorithm selection.
643         * gpgsm.h (struct certlist_s): Add field HASH_ALGO and HASH_ALGO_OID.
644
645         * qualified.c (gpgsm_qualified_consent): Fix double free.
646
647         * gpgsm.c (main): Change default cipher algo to AES.
648
649         * keylist.c (print_utf8_extn_raw, print_utf8_extn): New.
650         (list_cert_raw, list_cert_std): Print the TeleSec restriction
651         extension.
652
653 2008-06-23  Werner Koch  <wk@g10code.com>
654
655         * encrypt.c (encode_session_key): Replace xmalloc by xtrymalloc.
656         Use bin2hex instead of open coding the conversion.
657         (encrypt_dek): Init S_DATA.
658
659 2008-06-13  Marcus Brinkmann  <marcus@ulysses.g10code.com>
660
661         * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
662
663 2008-06-12  Marcus Brinkmann  <marcus@g10code.de>
664
665         * gpgsm.h (struct keyserver_spec): New struct.
666         (opt): Add member keyserver.
667         * gpgsm.c (keyserver_list_free, parse_keyserver_line): New functions.
668         (main): Implement --keyserver option.
669         * call-dirmngr.c (prepare_dirmngr): Send LDAPSERVER commands.
670
671 2008-05-20  Werner Koch  <wk@g10code.com>
672
673         * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
674         the export function.  Reported by Marc Mutz.
675
676 2008-05-06  Werner Koch  <wk@g10code.com>
677
678         * keylist.c (list_external_keys): Ignore NOT FOUND error code.
679         This is bug#907.
680
681 2008-04-23  Werner Koch  <wk@g10code.com>
682
683         * certchain.c (find_up): Make correct C89 code.  Declare variable
684         at the top of the block.  Reported by Alain Guibert.
685
686 2008-04-09  Werner Koch  <wk@g10code.com>
687
688         * verify.c (gpgsm_verify): Print the message hash values on error.
689
690 2008-03-31  Werner Koch  <wk@g10code.com>
691
692         * call-dirmngr.c (start_dirmngr): Use log_info instead of
693         log_error when falling back to start dirmngr.
694
695 2008-03-20  Werner Koch  <wk@g10code.com>
696
697         * certlist.c (gpgsm_add_to_certlist): Always save the first
698         subject and issuer.  Initialize issuer with issuer and not with
699         subject.
700         (same_subject_issuer): Set issuer2 to issuer and not to subject.
701
702 2008-03-17  Werner Koch  <wk@g10code.com>
703
704         * certdump.c (my_funopen_hook_size_t): New.
705         (format_name_writer): Use it.
706
707 2008-03-13  Werner Koch  <wk@g10code.com>
708
709         * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
710         char issue.
711         (gpgsm_format_keydesc): Remove superfluous test.  Add expire date
712         to the prompt.
713
714 2008-02-18  Werner Koch  <wk@g10code.com>
715
716         * certchain.c (gpgsm_is_root_cert): Factor code out to ...
717         (is_root_cert): New.  Extend test for self-issued certificates
718         signed by other CAs.
719         (do_validate_chain, gpgsm_basic_cert_check)
720         (gpgsm_walk_cert_chain): Use it here.
721
722         * gpgsm.c: Add option --no-common-certs-import.
723
724         * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
725         (check_cert_policy): Be more silent with --quiet.
726
727         * gpgsm.c: Add option --disable-dirmngr.
728         * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
729         * call-dirmngr.c (start_dirmngr): Implement option.
730
731 2008-02-14  Werner Koch  <wk@g10code.com>
732
733         * server.c (option_handler): Add option allow-pinentry-notify.
734         (gpgsm_proxy_pinentry_notify): New.
735         * call-agent.c (default_inq_cb): New.
736         (gpgsm_agent_pksign, gpgsm_scd_pksign, gpgsm_agent_readkey)
737         (gpgsm_agent_istrusted, gpgsm_agent_marktrusted)
738         (gpgsm_agent_passwd, gpgsm_agent_get_confirmation): Call it.
739         (struct cipher_parm_s, struct genkey_parm_s): Add field CTRL.
740         (inq_ciphertext_cb): Test keyword and fallback to default_inq_cb.
741         (inq_genkey_parms): Ditto.
742         (start_agent): Tell agent to send us the pinentry notifications.
743
744 2008-02-13  Werner Koch  <wk@g10code.com>
745
746         * call-dirmngr.c (gpgsm_dirmngr_lookup): Add arg CACHE_ONLY.
747         * keylist.c (list_external_keys): Pass false for new arg.
748         * certchain.c (find_up_dirmngr): New.
749         (find_up): Also try to read from the dirmngr cache.
750         (find_up, find_up_external, gpgsm_walk_cert_chain)
751         (gpgsm_basic_cert_check, allowed_ca): Add arg CTRL and changed all
752         callers.
753         * call-agent.c (struct learn_parm_s): Add field CTRL.
754         (gpgsm_agent_learn): Set it.
755
756 2008-02-11  Werner Koch  <wk@g10code.com>
757
758         * server.c (cmd_getinfo): New.
759         (gpgsm_server): Register GETINFO.
760
761 2008-01-29  Marcus Brinkmann  <marcus@g10code.de>
762
763         * keylist.c (list_internal_keys): New variable lastcert.  Use it
764         to suppress duplicates which immediately follow each other.
765
766 2008-01-27  Werner Koch  <wk@g10code.com>
767
768         * import.c (popen_protect_tool): Set bit 7 in the flags for
769         gnupg_spawn_process so that under W32 no window appears.
770         * export.c (popen_protect_tool): Ditto.
771
772 2007-12-13  Werner Koch  <wk@g10code.com>
773
774         * gpgsm.c (main): Add option --extra-digest-algo.
775         * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
776         * verify.c (gpgsm_verify): Use it.  Use the hash algorithm from
777         the signature value.
778
779 2007-12-11  Werner Koch  <wk@g10code.com>
780
781         * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
782
783         * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
784         (cmd_recipient): Start audit session.
785
786         * gpgsm.c (main): Revamp creation of the audit log.
787
788         * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
789         * call-agent.c (start_agent): Record an audit event.
790         * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
791         it from all callers.
792         (prepare_dirmngr): New helper for start_dirmngr.
793
794         * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
795
796 2007-12-03  Werner Koch  <wk@g10code.com>
797
798         * gpgsm.c (main): Call gnupg_reopen_std.
799
800 h2007-11-22  Werner Koch  <wk@g10code.com>
801
802         * server.c (cmd_getauditlog): New.
803         (register_commands): Register GETAUDITLOG.
804
805 2007-11-19  Werner Koch  <wk@g10code.com>
806
807         * server.c (cmd_recipient, cmd_signer): Add error reason 11.
808
809         * gpgsm.c (main): Print a warning if --audit-log is used.
810
811 2007-11-15  Werner Koch  <wk@g10code.com>
812
813         * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
814         * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
815         * gpgsm.c (main): New option --xauthority.
816         * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
817         * server.c (option_handler): Ad the new options.
818
819 2007-11-07  Werner Koch  <wk@g10code.com>
820
821         * gpgsm.c (main): New option --audit-log.
822         * server.c (option_handler): New option enable-audit-log.
823         (start_audit_session): New.
824         (cmd_verify): Create audit context.
825         (gpgsm_server): Release the context.
826
827         * gpgsm.h (struct server_control_s): Add member AUDIT, include
828         audit.h.
829         * certdump.c (gpgsm_format_sn_issuer): New.
830         * verify.c (hash_data): Return an error code.
831         (gpgsm_verify): Add calls to audit_log.
832
833         * gpgsm.c (get_status_string): Remove.
834         * gpgsm.h: Include status.h instead of errors.h.
835
836 2007-10-19  Werner Koch  <wk@g10code.com>
837
838         * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
839         (gpgsm_not_qualified_warning): Ditto.
840         * certdump.c (gpgsm_format_keydesc): Ditto.
841
842 2007-09-14  Werner Koch  <wk@g10code.com>
843
844         * gpgsm.c (build_lib_list): New.
845         (my_strusage): Print lib info.
846
847 2007-08-24  Werner Koch  <wk@g10code.com>
848
849         * Makefile.am (common_libs): Swap libkeybox and jnlib.
850
851 2007-08-23  Werner Koch  <wk@g10code.com>
852
853         * certlist.c (gpgsm_certs_identical_p): New.
854         (gpgsm_add_to_certlist): Ignore duplicate certificates in
855         ambigious name detection.
856         (gpgsm_find_cert): Ditto.
857         * export.c (gpgsm_p12_export): Ditto.
858
859 2007-08-22  Werner Koch  <wk@g10code.com>
860
861         * certreqgen.c (create_request): Replace open coding by bin2hex.
862
863         * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
864
865 2007-08-21  Werner Koch  <wk@g10code.com>
866
867         * import.c (parse_p12): Use gnupg_tmpfile.
868         * export.c (export_p12): Ditto.
869
870 2007-08-20  Werner Koch  <wk@g10code.com>
871
872         * certreqgen.c (read_parameters): Change FP to an estream_t.
873         (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
874         * server.c (cmd_genkey): Adjust for that.
875         * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
876         instead of a temporary file.
877
878 2007-08-14  Werner Koch  <wk@g10code.com>
879
880         * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name.  change
881         the way infostr is xstrdupped.
882
883         * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
884         Windows.
885
886 2007-08-13  Werner Koch  <wk@g10code.com>
887
888         * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
889         message depend on that.
890         (main): Add avriable RECP_REQUIRED, set ift for encryption
891         commands and pass it to do_add_recipient.
892         (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
893
894 2007-08-09  Werner Koch  <wk@g10code.com>
895
896         * gpgsm.c (main) [W32]: Enable CRL check by default.
897         (main): Update the default control structure after reading the
898         options.
899         (gpgsm_parse_validation_model, parse_validation_model): New.
900         (main): New option --validation-model.
901         * certchain.c (gpgsm_validate_chain): Implement this option.
902         * server.c (option_handler): Ditto.
903
904         * certchain.c (is_cert_still_valid): Reformatted.  Add arg
905         FORCE_OCSP.  Changed callers to set this flag when using the chain
906         model.
907
908 2007-08-08  Werner Koch  <wk@g10code.com>
909
910         * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
911         which prefixed the output with a 3A and cut it off at a 00.
912
913         * keylist.c (list_cert_raw): Print the certificate ID first and
914         rename "Serial number" to "S/N".
915         (list_cert_std): Ditto.
916
917 2007-08-07  Werner Koch  <wk@g10code.com>
918
919         * gpgsm.c (main): Allow a string for --faked-system-time.
920
921 2007-08-06  Werner Koch  <wk@g10code.com>
922
923         Implementation of the chain model.
924
925         * gpgsm.h (struct rootca_flags_s): Define new members VALID and
926         CHAIN_MODEL.
927         * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
928         (istrusted_status_cb): Set CHAIN_MODEL.
929         * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
930         and FP by LISTFP.
931         (gpgsm_validate_chain): Factor some code out to ...
932         (check_validity_period, ask_marktrusted): .. new.
933         (check_validity_cm_basic, check_validity_cm_main): New.
934         (do_validate_chain): New with all code from gpgsm_validate_chain.
935         New arg ROOTCA_FLAGS.
936         (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
937         model.  Add RETFLAGS arg and changed all callers to pass NULL. Add
938         CHECKTIME arg and changed all callers to pass a nil value.
939         (has_validity_model_chain): New.
940         * verify.c (gpgsm_verify): Check for chain model and return as
941         part of the trust status.
942
943         * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
944         (VALIDATE_FLAG_NO_DIRMNGR): New.
945         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
946
947 2007-08-03  Werner Koch  <wk@g10code.com>
948
949         * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
950         uids.
951
952         * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
953         pk algo.
954         * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
955
956 2007-08-02  Werner Koch  <wk@g10code.com>
957
958         * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
959
960 2007-07-17  Werner Koch  <wk@g10code.com>
961
962         * gpgsm.c (main): Implement --default-key.
963         (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
964
965 2007-07-16  Werner Koch  <wk@g10code.com>
966
967         * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
968         newer assuan versions.
969
970 2007-07-12  Werner Koch  <wk@g10code.com>
971
972         * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
973         when passing an int value.
974         * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
975         (cmd_export, cmd_message, cmd_genkey):  Translate file descriptors.
976
977 2007-07-05  Werner Koch  <wk@g10code.com>
978
979         * Makefile.am (common_libs): Changed order of libs.
980
981 2007-07-04  Werner Koch  <wk@g10code.com>
982
983         * certchain.c (check_cert_policy): Remove extra checks for
984         GPG_ERR_NO_VALUE.  They are not needed since libksba 1.0.1.
985         * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
986         * certlist.c (cert_usage_p, cert_usage_p): Ditto.
987
988 2007-06-26  Werner Koch  <wk@g10code.com>
989
990         * gpgsm.c (main): Call gnupg_rl_initialize.
991         * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
992
993 2007-06-25  Werner Koch  <wk@g10code.com>
994
995         * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
996         add new arg FOR_WRITE.  Change callers to pass new arg.
997
998 2007-06-24  Werner Koch  <wk@g10code.com>
999
1000         * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
1001         es_fdopen_nc().
1002
1003 2007-06-21  Werner Koch  <wk@g10code.com>
1004
1005         * certreqgen-ui.c: New.
1006         * gpgsm.c (main): Let --gen-key call it.
1007         * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
1008         adjusted caller.
1009
1010         * gpgsm.h (ctrl_t): Remove.  It is now declared in ../common/util.h.
1011
1012         * call-agent.c (start_agent): Factored almost all code out to
1013         ../common/asshelp.c.
1014
1015 2007-06-20  Werner Koch  <wk@g10code.com>
1016
1017         * call-agent.c (start_agent) [W32]: Start the agent on the fly.
1018
1019 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
1020
1021         * gpgsm.c (main): Percent escape output of --gpgconf-list.
1022
1023 2007-06-14  Werner Koch  <wk@g10code.com>
1024
1025         * call-agent.c (start_agent): Use gnupg_module_name.
1026         * call-dirmngr.c (start_dirmngr): Ditto.
1027         * export.c (export_p12): Ditto.
1028         * import.c (parse_p12): Ditto.
1029         * gpgsm.c (run_protect_tool): Ditto.
1030
1031 2007-06-12  Werner Koch  <wk@g10code.com>
1032
1033         * gpgsm.c (main): Replace some calls by init_common_subsystems.
1034         (main): Use gnupg_datadir.
1035         * qualified.c (read_list): Use gnupg-datadir.
1036
1037 2007-06-11  Werner Koch  <wk@g10code.com>
1038
1039         * Makefile.am (common_libs): Use libcommaonstd macr.
1040
1041         * gpgsm.c (main) [W32]: Call pth_init.
1042
1043 2007-06-06  Werner Koch  <wk@g10code.com>
1044
1045         * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
1046         define orig_codeset.
1047         * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
1048         orig_codeset.
1049         (format_name_writer): Define only if funopen et al is available.
1050
1051         * gpgsm.c (i18n_init): Remove.
1052
1053 2007-05-29  Werner Koch  <wk@g10code.com>
1054
1055         * export.c (gpgsm_p12_export): Print passphrase encoding info only
1056         in PEM mode.
1057
1058 2007-05-18  Marcus Brinkmann  <marcus@g10code.de>
1059
1060         * qualified.c (gpgsm_qualified_consent,
1061         gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
1062         * certdump.c (gpgsm_format_keydesc): Likewise.
1063
1064 2007-05-07  Werner Koch  <wk@g10code.com>
1065
1066         * certcheck.c (MY_GCRY_PK_ECDSA): New.
1067
1068 2007-04-20  Werner Koch  <wk@g10code.com>
1069
1070         * gpgsm.c (main): Parameterize failed versions check messages.
1071
1072 2007-04-19  Werner Koch  <wk@g10code.com>
1073
1074         * certcheck.c (do_encode_md): Add arg PKEY.  Add support for DSA2
1075         and all ECDSA sizes.
1076         (get_dsa_qbits): New.
1077         (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
1078         so remove that.
1079
1080 2007-04-18  Werner Koch  <wk@g10code.com>
1081
1082         * certcheck.c (do_encode_md): Support 160 bit ECDSA.
1083
1084 2007-04-13  Werner Koch  <wk@g10code.com>
1085
1086         * call-agent.c (start_agent): Don't use log_error when using the
1087         fallback hack to start the agent.  This is bug 782.
1088
1089 2007-03-20  Werner Koch  <wk@g10code.com>
1090
1091         * fingerprint.c (gpgsm_get_fingerprint): Add caching.
1092         (gpgsm_get_fingerprint_string): Use bin2hexcolon().
1093         (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
1094         as much memory as required.
1095         (gpgsm_get_keygrip_hexstring): Use bin2hex.
1096
1097         * certchain.c (gpgsm_validate_chain): Keep track of the
1098         certificate chain and reset the ephemeral flags.
1099         * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
1100         Changed caller to use a mask of ~0.  Return a proper error code if
1101         the certificate is not available.
1102
1103         * gpgsm.c: Add option --p12-charset.
1104         * gpgsm.h (struct opt): Add p12_charset.
1105         * export.c (popen_protect_tool): Use new option.
1106
1107 2007-03-19  Werner Koch  <wk@g10code.com>
1108
1109         Changes to let export and key listing use estream to help systems
1110         without funopen.
1111
1112         * keylist.c: Use estream in place of stdio functions.
1113         * gpgsm.c (open_es_fwrite): New.
1114         (main): Use it for the list commands.
1115         * server.c (data_line_cookie_functions): New.
1116         (data_line_cookie_write, data_line_cookie_close): New.
1117         (do_listkeys): Use estream.
1118
1119         * certdump.c (gpgsm_print_serial): Changed to use estream.
1120         (gpgsm_print_time): Ditto.
1121         (pretty_es_print_sexp): New.
1122         (gpgsm_es_print_name): New.
1123         (print_dn_part): New arg STREAM.  Changed all callers.
1124         (print_dn_parts): Ditto.
1125         * certchain.c (gpgsm_validate_chain): Changed FP to type
1126         estream_t.
1127         (do_list, unknown_criticals, allowed_ca, check_cert_policy)
1128         (is_cert_still_valid): Ditto.
1129
1130         * export.c (gpgsm_export): New arg STREAM.
1131         (do_putc, do_fputs): New.
1132         (print_short_info): Allow printing to optional STREAM.
1133         * server.c (cmd_export): Use stream.
1134         * base64.c (do_putc, do_fputs): New.
1135         (base64_writer_cb, base64_finish_write): Let them cope with an
1136         alternate output function.
1137         (plain_writer_cb): New.
1138         (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
1139         binary output to an estream.  Changed call callers.
1140
1141 2007-01-31  Werner Koch  <wk@g10code.com>
1142
1143         * gpgsm.c (main): Let --gen-key print a more informative error
1144         message.
1145
1146 2007-01-25  Werner Koch  <wk@g10code.com>
1147
1148         * Makefile.am (gpgsm_LDADD): Add LIBICONV.  Noted by Billy Halsey.
1149
1150 2007-01-05  Werner Koch  <wk@g10code.com>
1151
1152         * certchain.c (unknown_criticals): Add subjectAltName.
1153
1154 2006-12-21  Werner Koch  <wk@g10code.com>
1155
1156         * gpgsm.c: Comment mtrace feature.
1157
1158 2006-12-21  Marcus Brinkmann  <marcus@g10code.de>
1159
1160         * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
1161
1162         * encrypt.c (encrypt_dek): Release S_CIPH.
1163
1164 2006-12-20  Marcus Brinkmann  <marcus@g10code.de>
1165
1166         * server.c (gpgsm_server): Release CTRL->server_local.
1167
1168         * base64.c: Add new members READER and WRITER in union U2.
1169         (gpgsm_create_reader): Initialise CTX->u2.reader.
1170         (gpgsm_destroy_reader): Invoke ksba_reader_release.  Return early
1171         if CTX is NULL.
1172         (gpgsm_create_writer): Initialise CTX->u2.writer.
1173         (gpgsm_destroy_writer): Invoke ksba_writer_release.  Return early
1174         if CTX is NULL.
1175
1176 2006-12-18  Marcus Brinkmann  <marcus@g10code.de>
1177
1178         * fingerprint.c (gpgsm_get_fingerprint): Close MD.
1179
1180 2006-11-24  Werner Koch  <wk@g10code.com>
1181
1182         * certdump.c (parse_dn_part): Take '#' as a special character only
1183         at the beginning of a string.
1184
1185 2006-11-21  Werner Koch  <wk@g10code.com>
1186
1187         * certdump.c (my_funopen_hook_ret_t): New.
1188         (format_name_writer): Use it for the return value.
1189
1190 2006-11-14  Werner Koch  <wk@g10code.com>
1191
1192         * server.c (skip_options): Skip leading spaces.
1193         (has_option): Honor "--".
1194         (cmd_export): Add option --data to do an inline export.  Skip all
1195         options.
1196
1197         * certdump.c (gpgsm_fpr_and_name_for_status): New.
1198         * verify.c (gpgsm_verify): Use it to print correct status messages.
1199
1200 2006-11-11  Werner Koch  <wk@g10code.com>
1201
1202         * server.c (skip_options): New.
1203
1204 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
1205
1206         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
1207
1208 2006-10-23  Werner Koch  <wk@g10code.com>
1209
1210         * gpgsm.c (main): Remap common cipher algo names to their OIDs.
1211         (main): New command --gpgconf-test.
1212
1213 2006-10-20  Werner Koch  <wk@g10code.com>
1214
1215         * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
1216
1217 2006-10-18  Werner Koch  <wk@g10code.com>
1218
1219         * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
1220         testing for GPG_ERR_NO_DATA.
1221         * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
1222         * certchain.c (check_cert_policy): Ditto.
1223
1224         * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
1225         chain length available.
1226
1227 2006-10-17  Werner Koch  <wk@g10code.com>
1228
1229         * gpgsm.c: No need for pth.h.
1230         (main): or to init it. It used to be hack for W32.
1231
1232         * sign.c (gpgsm_get_default_cert): Changed to return only
1233         certificates usable for signing.
1234
1235 2006-10-16  Werner Koch  <wk@g10code.com>
1236
1237         * certchain.c (already_asked_marktrusted)
1238         (set_already_asked_marktrusted): New.
1239         (gpgsm_validate_chain) <not trusted>: Keep track of certificates
1240         we already asked for.
1241
1242 2006-10-11  Werner Koch  <wk@g10code.com>
1243
1244         * certreqgen.c (proc_parameters, create_request): Allow for
1245         creation directly from a card.
1246         * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
1247         (gpgsm_scd_pksign): New.
1248
1249 2006-10-06  Werner Koch  <wk@g10code.com>
1250
1251         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1252         (gpgsm_LDADD): Ditto.
1253
1254 2006-10-05  Werner Koch  <wk@g10code.com>
1255
1256         * certcheck.c (do_encode_md): Check that the has algo is valid.
1257
1258 2006-10-02  Marcus Brinkmann  <marcus@g10code.de>
1259
1260         * server.c (register_commands): New commands DUMPKEYS and
1261         DUMPSECRETKEYS.
1262         (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
1263         (option_handler): Support with-key-data option.
1264
1265 2006-09-26  Werner Koch  <wk@g10code.com>
1266
1267         * certchain.c (gpgsm_validate_chain): More changes for the relax
1268         feature.  Use certificate reference counting instead of the old
1269         explicit tests. Added a missing free.
1270
1271 2006-09-25  Werner Koch  <wk@g10code.com>
1272
1273         * gpgsm.h (struct rootca_flags_s): New.
1274         * call-agent.c (istrusted_status_cb): New.
1275         (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
1276         * keylist.c (list_cert_colon): Use dummy for new arg.
1277         * certchain.c (gpgsm_validate_chain): Make use of the relax flag
1278         for root certificates.
1279         (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
1280
1281 2006-09-20  Werner Koch  <wk@g10code.com>
1282
1283         * gpgsm.c: Add alias command --dump-cert.
1284
1285         * Makefile.am:  Changes to allow parallel make runs.
1286
1287 2006-09-18  Werner Koch  <wk@g10code.com>
1288
1289         * gpgsm.c (main): Use this to import standard certificates.
1290         * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
1291
1292 2006-09-14  Werner Koch  <wk@g10code.com>
1293
1294         Replaced all call gpg_error_from_errno(errno) by
1295         gpg_error_from_syserror().
1296
1297 2006-09-13  Werner Koch  <wk@g10code.com>
1298
1299         * keylist.c (list_internal_keys): Print marker line to FP and not
1300         to stdout.
1301
1302         * gpgsm.c (main): All list key list commands now make ose of
1303         --output. Cleaned up calls to list modes.  New command
1304         --dump-chain.  Renamed --list-sigs to --list-chain and added an
1305         alias for the old one.
1306
1307         * server.c (cmd_message): Changed to use assuan_command_parse_fd.
1308         (option_handler): New option list-to-output.
1309         (do_listkeys): Use it.
1310
1311 2006-09-06  Werner Koch  <wk@g10code.com>
1312
1313         * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
1314         out_of_core.
1315         (CTRL): Removed and changed everywhere to ctrl_t.
1316         (CERTLIST): Ditto.
1317
1318         Replaced all Assuan error codes by libgpg-error codes.  Removed
1319         all map_to_assuan_status and map_assuan_err.
1320
1321         * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
1322         switch to gpg-error codes.
1323         * server.c (set_error): Adjusted.
1324
1325 2006-08-29  Werner Koch  <wk@g10code.com>
1326
1327         * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
1328         complete S-expressions as implemented by the current gpg-agent.
1329
1330         * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
1331         and export.
1332
1333 2006-07-03  Werner Koch  <wk@g10code.com>
1334
1335         * certreqgen.c (proc_parameters): Print the component label of a
1336         faulty DN.
1337
1338 2006-06-26  Werner Koch  <wk@g10code.com>
1339
1340         * certdump.c (gpgsm_cert_log_name): New.
1341         * certchain.c (is_cert_still_valid): Log the name of the certificate.
1342
1343 2006-06-20  Werner Koch  <wk@g10code.com>
1344
1345         * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
1346         option --include-certs.
1347
1348         * keylist.c (list_cert_raw): Print the certid.
1349
1350 2006-05-23  Werner Koch  <wk@g10code.com>
1351
1352         * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
1353
1354         * Makefile.am (gpgsm_LDADD): Include ZLIBS.
1355
1356 2006-05-19  Marcus Brinkmann  <marcus@g10code.de>
1357
1358         * keydb.c (keydb_insert_cert): Do not lock here, but only check if
1359         it is locked.
1360         (keydb_store_cert): Lock here.
1361
1362         * keydb.h (keydb_delete): Accept new argument UNLOCK.
1363         * keydb.c (keydb_delete): Likewise.  Only unlock if this is set.
1364         * delete.c (delete_one): Add new argument to invocation of
1365         keydb_delete.
1366
1367 2006-05-15  Werner Koch  <wk@g10code.com>
1368
1369         * keylist.c (print_names_raw): Sanitize URI.
1370
1371 2006-03-21  Werner Koch  <wk@g10code.com>
1372
1373         * certchain.c (get_regtp_ca_info): New.
1374         (allowed_ca): Use it.
1375
1376 2006-03-20  Werner Koch  <wk@g10code.com>
1377
1378         * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
1379
1380 2006-02-17  Werner Koch  <wk@g10code.com>
1381
1382         * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
1383
1384 2005-11-23  Werner Koch  <wk@g10code.com>
1385
1386         * gpgsm.h: New member QUALSIG_APPROVAL.
1387         * sign.c (gpgsm_sign): Print a warning if a certificate is not
1388         qualified.
1389         * qualified.c (gpgsm_qualified_consent): Include a note that this
1390         is not approved software.
1391         (gpgsm_not_qualified_warning): New.
1392         * gpgsm.c (main): Prepared to print a note whether the software
1393         has been approved.
1394
1395 2005-11-13  Werner Koch  <wk@g10code.com>
1396
1397         * call-agent.c (gpgsm_agent_get_confirmation): New.
1398
1399         * keylist.c (list_cert_std): Print qualified status.
1400         * qualified.c: New.
1401         * certchain.c (gpgsm_validate_chain): Check for qualified
1402         certificates.
1403
1404         * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
1405         no-chain-validation is used.
1406
1407 2005-11-11  Werner Koch  <wk@g10code.com>
1408
1409         * keylist.c (print_capabilities): Print is_qualified status.
1410
1411 2005-10-28  Werner Koch  <wk@g10code.com>
1412
1413         * certdump.c (pretty_print_sexp): New.
1414         (gpgsm_print_name2): Use it here.  This allows proper printing of
1415         DNS names as used with server certificates.
1416
1417 2005-10-10  Werner Koch  <wk@g10code.com>
1418
1419         * keylist.c: Add pkaAdress OID as reference.
1420
1421 2005-10-08  Marcus Brinkmann  <marcus@g10code.de>
1422
1423         * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
1424         ../common/libcommon.a.
1425
1426 2005-09-13  Werner Koch  <wk@g10code.com>
1427
1428         * verify.c (gpgsm_verify): Print a note if the unknown algorithm
1429         is MD2.
1430         * sign.c (gpgsm_sign): Ditto.
1431         * certcheck.c (gpgsm_check_cert_sig): Ditto.
1432
1433 2005-09-08  Werner Koch  <wk@g10code.com>
1434
1435         * export.c (popen_protect_tool): Add option --have-cert.  We
1436         probably lost this option with 1.9.14 due to restructuring of
1437         export.c.
1438
1439 2005-07-21  Werner Koch  <wk@g10code.com>
1440
1441         * gpgsm.c (main): New options --no-log-file and --debug-none.
1442
1443         * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
1444         to allow enumeration.  Changed all callers.
1445         (create_request): Process DNS and URI parameters.
1446
1447 2005-07-20  Werner Koch  <wk@g10code.com>
1448
1449         * keylist.c (email_kludge): Reworked.
1450
1451         * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
1452         arg to unsigned.
1453         * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
1454
1455 2005-07-19  Werner Koch  <wk@g10code.com>
1456
1457         * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
1458         Bug accidently introduced while solving the #$%^& gcc
1459         signed/unsigned char* warnings.
1460
1461 2005-06-15  Werner Koch  <wk@g10code.com>
1462
1463         * delete.c (delete_one): Changed FPR to unsigned.
1464         * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
1465         (gpgsm_encrypt): Ditto.
1466         * sign.c (gpgsm_sign): Made SIGVAL unsigned.
1467         * base64.c (base64_reader_cb): Need to use some casting to get
1468         around signed/unsigned char* warnings.
1469         * certcheck.c (gpgsm_check_cms_signature): Ditto.
1470         (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
1471         (do_encode_md): Made NFRAME a size_t.
1472         * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
1473         (gpgsm_dump_serial): Ditto.
1474         (gpgsm_format_serial): Ditto.
1475         (gpgsm_dump_string): Ditto.
1476         (gpgsm_dump_cert): Ditto.
1477         (parse_dn_part): Ditto.
1478         (gpgsm_print_name2): Ditto.
1479         * keylist.c (email_kludge): Ditto.
1480         * certreqgen.c (proc_parameters, create_request): Ditto.
1481         (create_request): Ditto.
1482         * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
1483         (struct cipher_parm_s): Made CIPHERTEXT unsigned.
1484         (struct genkey_parm_s): Ditto.
1485         * server.c (strcpy_escaped_plus): Made arg S signed char*.
1486         * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
1487         (gpgsm_get_keygrip): Ditto.
1488         * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
1489         (keydb_update_cert): Ditto.
1490         (classify_user_id): Apply cast to signed/unsigned assignment.
1491         (hextobyte): Ditto.
1492
1493 2005-06-01  Werner Koch  <wk@g10code.com>
1494
1495         * misc.c: Include setenv.h.
1496
1497 2005-04-21  Werner Koch  <wk@g10code.com>
1498
1499         * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
1500         * certchain.c (gpgsm_validate_chain): Make use of it.
1501
1502         * certchain.c (gpgsm_validate_chain): Check revocations even for
1503         expired certificates.  This is required because on signature
1504         verification an expired key is fine whereas a revoked one is not.
1505
1506 2005-04-20  Werner Koch  <wk@g10code.com>
1507
1508         * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
1509
1510 2005-04-19  Werner Koch  <wk@g10code.com>
1511
1512         * certchain.c (check_cert_policy): Print the diagnostic for a open
1513         failure of policies.txt only in verbose mode or when it is not
1514         ENOENT.
1515
1516 2005-04-17  Werner Koch  <wk@g10code.com>
1517
1518         * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
1519         * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
1520         this filter.  Changed all callers.
1521
1522         * certchain.c (find_up_search_by_keyid): New helper.
1523         (find_up): Also try using the AKI.keyIdentifier.
1524         (find_up_external): Ditto.
1525
1526 2005-04-15  Werner Koch  <wk@g10code.com>
1527
1528         * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
1529         well as the keyIdentifier part of the authorityKeyIdentifier.
1530
1531 2005-03-31  Werner Koch  <wk@g10code.com>
1532
1533         * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
1534         * call-agent.c (start_agent): Ditto.
1535
1536 2005-03-17  Werner Koch  <wk@g10code.com>
1537
1538         * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
1539
1540         * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
1541         failed gcry_pk_verify.
1542         (find_up): Do an external lookup also for an authorityKeyIdentifier
1543         lookup. Factored external lookup code out to ..
1544         (find_up_external): .. new.
1545
1546 2005-03-03  Werner Koch  <wk@g10code.com>
1547
1548         * Makefile.am (gpgsm_LDADD): Added PTH_LIBS.  Noted by Kazu Yamamoto.
1549
1550 2005-01-13  Werner Koch  <wk@g10code.com>
1551
1552         * certreqgen.c (proc_parameters): Cast printf arg.
1553
1554 2004-12-22  Werner Koch  <wk@g10code.com>
1555
1556         * gpgsm.c (set_binary): New.
1557         (main, open_read, open_fwrite): Use it.
1558
1559 2004-12-21  Werner Koch  <wk@g10code.com>
1560
1561         * gpgsm.c (main): Use default_homedir().
1562         (main) [W32]: Default to disabled CRL checks.
1563
1564 2004-12-20  Werner Koch  <wk@g10code.com>
1565
1566         * call-agent.c (start_agent): Before starting a pipe server start
1567         to connect to a server on the standard socket.  Use PATHSEP
1568         * call-dirmngr.c (start_dirmngr): Use PATHSEP.
1569
1570         * import.c: Include unistd.h for dup and close.
1571
1572 2004-12-18  Werner Koch  <wk@g10code.com>
1573
1574         * gpgsm.h (map_assuan_err): Define in terms of
1575         map_assuan_err_with_source.
1576         * call-agent.c (start_agent): Pass error source to
1577         send_pinentry_environment.
1578
1579 2004-12-17  Werner Koch  <wk@g10code.com>
1580
1581         * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
1582         (run_command_status_cb): Return cancel status if gpgsm_status
1583         returned an error.
1584
1585         * server.c (gpgsm_status, gpgsm_status2)
1586         (gpgsm_status_with_err_code): Return an error code.
1587         (gpgsm_status2): Always call va_end().
1588
1589 2004-12-15  Werner Koch  <wk@g10code.com>
1590
1591         * call-dirmngr.c (lookup_status_cb): Send progress messages
1592         upstream.
1593         (isvalid_status_cb): Ditto.
1594         (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
1595         (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
1596         status callback and handle PROGRESS.
1597
1598         * misc.c (setup_pinentry_env) [W32]: Don't use it.
1599
1600         * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
1601         operations and to resolve libassuan symbols.
1602         (run_protect_tool) [W32]: Disable it.
1603
1604         * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
1605
1606 2004-12-07  Werner Koch  <wk@g10code.com>
1607
1608         * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
1609         under W32 we need the w32 pth code from jnlib.
1610
1611         * misc.c (setup_pinentry_env) [W32]: Disabled.
1612
1613 2004-12-06  Werner Koch  <wk@g10code.com>
1614
1615         * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
1616
1617         * import.c (popen_protect_tool): Simplified by making use of
1618         gnupg_spawn_process.
1619         (parse_p12): Likewise, using gnupg_wait_process.
1620         * export.c (popen_protect_tool): Ditto.
1621         (export_p12): Ditto.
1622
1623         * keydb.c: Don't define DIRSEP_S here.
1624
1625 2004-12-02  Werner Koch  <wk@g10code.com>
1626
1627         * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
1628         signature for debugging.
1629         (gpgsm_validate_chain): Ditto.
1630
1631 2004-11-29  Werner Koch  <wk@g10code.com>
1632
1633         * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
1634         DEBUG_VALUE.
1635         (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE.  This
1636         now allows to add debug flags on top of a debug-level setting.
1637
1638 2004-11-23  Werner Koch  <wk@g10code.com>
1639
1640         * gpgsm.c: New option --prefer-system-dirmngr.
1641         * call-dirmngr.c (start_dirmngr): Implement this option.
1642
1643 2004-10-22  Werner Koch  <wk@g10code.com>
1644
1645         * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
1646         request PEM header.  This is according to the Sphinx standard.
1647
1648 2004-10-08  Moritz Schulte  <moritz@g10code.com>
1649
1650         * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
1651         case the no_chain_validation-return-short-cut is used (fixes
1652         memory leak).
1653
1654 2004-10-04  Werner Koch  <wk@g10code.com>
1655
1656         * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1657
1658 2004-09-30  Werner Koch  <wk@g10code.com>
1659
1660         * gpgsm.c (i18n_init): Always use LC_ALL.
1661
1662         * certdump.c (gpgsm_format_name): Factored code out to ..
1663         (gpgsm_format_name2): .. new.
1664         (gpgsm_print_name): Factored code out to ..
1665         (gpgsm_print_name2): .. new.
1666         (print_dn_part): New arg TRANSLATE.  Changed all callers.
1667         (print_dn_parts): Ditto.
1668         (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
1669         it to stay UTF-8 but we still want to filter out bad control
1670         characters.
1671
1672         * Makefile.am: Adjusted for gettext 0.14.
1673
1674         * keylist.c (list_cert_colon): Make sure that the expired flag has
1675         a higher precedence than the invalid flag.
1676
1677 2004-09-29  Werner Koch  <wk@g10code.com>
1678
1679         * import.c (parse_p12): Write an error status line for bad
1680         passphrases. Add new arg CTRL and changed caller.
1681         * export.c (export_p12): Likewise.
1682
1683 2004-09-14  Werner Koch  <wk@g10code.com>
1684
1685         * certchain.c (gpgsm_validate_chain): Give expired certificates a
1686         higher error precedence and don't bother to check any CRL in that
1687         case.
1688
1689 2004-08-24  Werner Koch  <wk@g10code.de>
1690
1691         * certlist.c: Fixed typo in ocsp OID.
1692
1693 2004-08-18  Werner Koch  <wk@g10code.de>
1694
1695         * certlist.c (gpgsm_cert_use_ocsp_p): New.
1696         (cert_usage_p): Support it here.
1697         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
1698
1699 2004-08-17  Marcus Brinkmann  <marcus@g10code.de>
1700
1701         * import.c: Fix typo in last change.
1702
1703 2004-08-17  Werner Koch  <wk@g10code.de>
1704
1705         * import.c (check_and_store): Do a full validation if
1706         --with-validation is set.
1707
1708         * certchain.c (gpgsm_basic_cert_check): Print more detailed error
1709         messages.
1710
1711         * certcheck.c (do_encode_md): Partly support DSA.  Add new arg
1712         PKALGO. Changed all callers to pass it.
1713         (pk_algo_from_sexp): New.
1714
1715 2004-08-16  Werner Koch  <wk@g10code.de>
1716
1717         * gpgsm.c: New option --fixed-passphrase.
1718         * import.c (popen_protect_tool): Pass it to the protect-tool.
1719
1720         * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1721         for encrypt-to keys.
1722
1723 2004-08-06  Werner Koch  <wk@g10code.com>
1724
1725         * gpgsm.c: New option --with-ephemeral-keys.
1726         * keylist.c (list_internal_keys): Set it here.
1727         (list_cert_raw): And indicate those keys.  Changed all our callers
1728         to pass the new arg HD through.
1729
1730 2004-07-23  Werner Koch  <wk@g10code.de>
1731
1732         * certreqgen.c (proc_parameters): Do not allow key length below
1733         1024.
1734
1735 2004-07-22  Werner Koch  <wk@g10code.de>
1736
1737         * keylist.c (list_cert_raw): Print the keygrip.
1738
1739 2004-07-20  Werner Koch  <wk@gnupg.org>
1740
1741         * certchain.c (gpgsm_validate_chain): The trust check didn't
1742         worked anymore, probably due to the changes at 2003-03-04.  Fixed.
1743
1744 2004-06-06  Werner Koch  <wk@gnupg.org>
1745
1746         * certreqgen.c (get_parameter_uint, create_request): Create
1747         an extension for key usage when requested.
1748
1749 2004-05-12  Werner Koch  <wk@gnupg.org>
1750
1751         * gpgsm.c (main): Install emergency_cleanup also as an atexit
1752         handler.
1753
1754         * verify.c (gpgsm_verify): Removed the separate error code
1755         handling for KSBA.  We use shared error codes anyway.
1756
1757         * export.c (export_p12): Removed debugging code.
1758
1759         * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1760
1761 2004-05-11  Werner Koch  <wk@gnupg.org>
1762
1763         * sign.c (gpgsm_sign): Include the error source in the final error
1764         message.
1765         * decrypt.c (gpgsm_decrypt): Ditto.
1766
1767         * fingerprint.c (gpgsm_get_key_algo_info): New.
1768         * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1769         * keylist.c (list_cert_colon): Really print the algorithm and key
1770         length.
1771         (list_cert_raw, list_cert_std): Ditto.
1772         (list_cert_colon): Reorganized to be able to tell whether a root
1773         certificate is trusted.
1774
1775         * gpgsm.c: New option --debug-allow-core-dump.
1776
1777         * gpgsm.h (opt): Add member CONFIG_FILENAME.
1778         * gpgsm.c (main): Use it here instead of the local var.
1779
1780         * server.c (gpgsm_server): Print some additional information with
1781         the hello in verbose mode.
1782
1783 2004-04-30  Werner Koch  <wk@gnupg.org>
1784
1785         * import.c (check_and_store): Do not update the stats for hidden
1786         imports of issuer certs.
1787         (popen_protect_tool): Request statusmessages from the protect-tool.
1788         (parse_p12): Detect status messages. Add new arg STATS and update them.
1789         (print_imported_summary): Include secret key stats.
1790
1791 2004-04-28  Werner Koch  <wk@gnupg.org>
1792
1793         * gpgsm.c: New command --keydb-clear-some-cert-flags.
1794         * keydb.c (keydb_clear_some_cert_flags): New.
1795         (keydb_update_keyblock, keydb_set_flags): Change error code
1796         CONFLICT to NOT_LOCKED.
1797
1798 2004-04-26  Werner Koch  <wk@gnupg.org>
1799
1800         * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1801         filename.
1802
1803         * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)
1804         (gpgsm_agent_genkey, gpgsm_agent_istrusted)
1805         (gpgsm_agent_marktrusted, gpgsm_agent_havekey)
1806         (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1807         (start_agent): New arg CTRL.  Send progress item when starting a
1808         new agent.
1809         * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1810         CTRL to be passed down to the agent function.
1811         * decrypt.c (prepare_decryption): Ditto.
1812         * certreqgen.c (proc_parameters, read_parameters): Ditto.
1813         * certcheck.c (gpgsm_create_cms_signature): Ditto.
1814
1815 2004-04-23  Werner Koch  <wk@gnupg.org>
1816
1817         * keydb.c (keydb_add_resource): Try to compress the file on init.
1818
1819         * keylist.c (oidtranstbl): New.  OIDs collected from several sources.
1820         (print_name_raw, print_names_raw, list_cert_raw): New.
1821         (gpgsm_list_keys): Check the dump mode and pass it down as
1822         necessary.
1823
1824 2004-04-22  Werner Koch  <wk@gnupg.org>
1825
1826         * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1827         --dump-secret-keys.
1828
1829 2004-04-13  Werner Koch  <wk@gnupg.org>
1830
1831         * misc.c (setup_pinentry_env): New.
1832         * import.c (popen_protect_tool): Call it.
1833         * export.c (popen_protect_tool): Call it.
1834
1835 2004-04-08  Werner Koch  <wk@gnupg.org>
1836
1837         * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
1838         encrypted message.
1839
1840 2004-04-07  Werner Koch  <wk@gnupg.org>
1841
1842         * gpgsm.c: New option --force-crl-refresh.
1843         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1844
1845 2004-04-05  Werner Koch  <wk@gnupg.org>
1846
1847         * server.c (get_status_string): Add STATUS_NEWSIG.
1848         * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1849
1850         * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1851         not just warn if a cert is not suitable; bail out immediately.
1852
1853 2004-04-01  Werner Koch  <wk@gnupg.org>
1854
1855         * call-dirmngr.c (isvalid_status_cb): New.
1856         (unhexify_fpr): New. Taken from ../g10/call-agent.c
1857         (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1858         it thru.  Detect need to check the respondert cert and do that.
1859         * certchain.c (gpgsm_validate_chain): Add new arg FLAGS.  Changed
1860         all callers.
1861
1862 2004-03-24  Werner Koch  <wk@gnupg.org>
1863
1864         * sign.c (gpgsm_sign): Include a short list of capabilities.
1865
1866 2004-03-17  Werner Koch  <wk@gnupg.org>
1867
1868         * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1869
1870 2004-03-16  Werner Koch  <wk@gnupg.org>
1871
1872         * gpgsm.c (main): Implemented --gpgconf-list.
1873
1874 2004-03-15  Werner Koch  <wk@gnupg.org>
1875
1876         * keylist.c (list_cert_colon): Hack to set the expired flag.
1877
1878 2004-03-09  Werner Koch  <wk@gnupg.org>
1879
1880         * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1881
1882         * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1883
1884 2004-03-04  Werner Koch  <wk@gnupg.org>
1885
1886         * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1887
1888         * certchain.c (is_cert_still_valid): New.  Code moved from ...
1889         (gpgsm_validate_chain): ... here because we now need to check at
1890         two places and at a later stage, so that we can pass the issuer
1891         cert down to the dirmngr.
1892
1893 2004-03-03  Werner Koch  <wk@gnupg.org>
1894
1895         * call-agent.c (start_agent): Replaced pinentry setup code by a
1896         call to a new common function.
1897
1898         * certdump.c (gpgsm_format_keydesc): Make sure the string is
1899         returned as utf-8.
1900
1901         * export.c (gpgsm_export): Make sure that we don't export more
1902         than one certificate.
1903
1904 2004-03-02  Werner Koch  <wk@gnupg.org>
1905
1906         * export.c (create_duptable, destroy_duptable)
1907         (insert_duptable): New.
1908         (gpgsm_export): Avoid duplicates.
1909
1910 2004-02-26  Werner Koch  <wk@gnupg.org>
1911
1912         * certchain.c (compare_certs): New.
1913         (gpgsm_validate_chain): Fixed infinite certificate checks after
1914         bad signatures.
1915
1916 2004-02-24  Werner Koch  <wk@gnupg.org>
1917
1918         * keylist.c (list_cert_colon): Print the fingerprint as the
1919         cert-id for root certificates.
1920
1921 2004-02-21  Werner Koch  <wk@gnupg.org>
1922
1923         * keylist.c (list_internal_keys): Return error codes.
1924         (list_external_keys, gpgsm_list_keys): Ditto.
1925         * server.c (do_listkeys): Ditto.
1926
1927         * gpgsm.c (main): Display a key description for --passwd.
1928         * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1929
1930 2004-02-20  Werner Koch  <wk@gnupg.org>
1931
1932         * gpgsm.c (main): New option --debug-ignore-expiration.
1933         * certchain.c (gpgsm_validate_chain): Use it here.
1934
1935         * certlist.c (cert_usage_p): Apply extKeyUsage.
1936
1937 2004-02-19  Werner Koch  <wk@gnupg.org>
1938
1939         * export.c (export_p12, popen_protect_tool)
1940         (gpgsm_p12_export): New.
1941         * gpgsm.c (main): New command --export-secret-key-p12.
1942
1943 2004-02-18  Werner Koch  <wk@gnupg.org>
1944
1945         * gpgsm.c (set_debug): Set the new --debug-level flags.
1946         (main): New option --gpgconf-list.
1947         (main): Do not setup -u and -r keys when not required.
1948         (main): Setup the used character set.
1949
1950         * keydb.c (keydb_add_resource): Print a hint to start the
1951         gpg-agent.
1952
1953 2004-02-17  Werner Koch  <wk@gnupg.org>
1954
1955         * gpgsm.c: Fixed value parsing for --with-validation.
1956         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1957         * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1958
1959         * gpgsm.c: New option --with-md5-fingerprint.
1960         * keylist.c (list_cert_std): Print MD5 fpr.
1961
1962         * gpgsm.c: New options --with-validation.
1963         * server.c (option_handler): New option "with-validation".
1964         * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1965         WITH_VALIDATION. Changed callers to set it.
1966         (list_external_cb, list_external_keys): Pass CTRL to the callback.
1967         (list_cert_colon): Add arg CTRL.  Check validation if requested.
1968         * certchain.c (unknown_criticals, allowed_ca, check_cert_policy)
1969         (gpgsm_validate_chain): New args LISTMODE and FP.
1970         (do_list): New helper for info output.
1971         (find_up): New arg FIND_NEXT.
1972         (gpgsm_validate_chain): After a bad signature try again with other
1973         CA certificates.
1974
1975         * import.c (print_imported_status): New arg NEW_CERT. Print
1976         additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1977         (check_and_store): Always call above function after import.
1978         * server.c (get_status_string): Added STATUS_IMPORT_OK.
1979
1980 2004-02-13  Werner Koch  <wk@gnupg.org>
1981
1982         * certcheck.c (gpgsm_create_cms_signature): Format a description
1983         for use by the pinentry.
1984         * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1985         * certdump.c (format_name_cookie, format_name_writer)
1986         (gpgsm_format_name): New.
1987         (gpgsm_format_serial): New.
1988         (gpgsm_format_keydesc): New.
1989         * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1990         (gpgsm_agent_pkdecrypt): Ditto.
1991
1992         * encrypt.c (init_dek): Check for too weak algorithms.
1993
1994         * import.c (parse_p12, popen_protect_tool): New.
1995
1996         * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1997         Changed all callers.
1998         (base64_reader_cb): Handle it here.
1999         (gpgsm_reader_eof_seen): New.
2000         (base64_reader_cb): Set a flag for EOF.
2001         (simple_reader_cb): Ditto.
2002
2003 2004-02-12  Werner Koch  <wk@gnupg.org>
2004
2005         * gpgsm.h, gpgsm.c: New option --protect-tool-program.
2006         * gpgsm.c (run_protect_tool): Use it.
2007
2008 2004-02-11  Werner Koch  <wk@gnupg.org>
2009
2010         * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
2011         will allow to override directory names at make time.
2012
2013 2004-02-02  Werner Koch  <wk@gnupg.org>
2014
2015         * import.c (check_and_store): Import certificates even with
2016         missing issuer's cert.  Fixed an "depending on the verbose
2017         setting" bug.
2018
2019         * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
2020         keybox.
2021
2022         * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
2023         revoked flag.
2024         (list_internal_keys): Retrieve validity flag.
2025         (list_external_cb): Pass 0 as validity flag.
2026         * keydb.c (keydb_get_flags, keydb_set_flags): New.
2027         (keydb_set_cert_flags): New.
2028         (lock_all): Return a proper error code.
2029         (keydb_lock): New.
2030         (keydb_delete): Don't lock but check that it has been locked.
2031         (keydb_update_keyblock): Ditto.
2032         * delete.c (delete_one): Take a lock.
2033
2034 2004-01-30  Werner Koch  <wk@gnupg.org>
2035
2036         * certchain.c (check_cert_policy): Fixed read error checking.
2037         (check_cert_policy): With no critical policies issue only a
2038         warning if the policy file does not exists.
2039
2040         * sign.c (add_certificate_list): Decrement N for the first cert.
2041
2042 2004-01-29  Werner Koch  <wk@gnupg.org>
2043
2044         * certdump.c (parse_dn_part): Map common OIDs to human readable
2045         labels.  Make sure that a value won't get truncated if it includes
2046         a Nul.
2047
2048 2004-01-28  Werner Koch  <wk@gnupg.org>
2049
2050         * certchain.c (gpgsm_validate_chain): Changed the message printed
2051         for an untrusted root certificate.
2052
2053 2004-01-27  Werner Koch  <wk@gnupg.org>
2054
2055         * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
2056         (print_dn_part): Do not delimit multiple RDN by " + ".  Handle
2057         multi-valued RDNs in a special way, i.e. in the order specified by
2058         the certificate.
2059         (print_dn_parts): Simplified.
2060
2061 2004-01-16  Werner Koch  <wk@gnupg.org>
2062
2063         * sign.c (gpgsm_sign): Print an error message on all failures.
2064         * decrypt.c (gpgsm_decrypt): Ditto.
2065
2066 2003-12-17  Werner Koch  <wk@gnupg.org>
2067
2068         * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
2069         (cmd_encrypt): Add all enrypt-to marked certs to the list.
2070         * encrypt.c (gpgsm_encrypt): Check that real recipients are
2071         available.
2072         * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
2073         options work.  Pass the list of recients to gpgsm_server.
2074         * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
2075         (opt): Add NO_ENCRYPT_TO.
2076         * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
2077         Changed all callers and ignore duplicate entries.
2078         (is_cert_in_certlist): New.
2079         (gpgsm_add_cert_to_certlist): New.
2080
2081         * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
2082         (gpgsm_dump_serial): Ditto.
2083
2084         * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
2085
2086 2003-12-16  Werner Koch  <wk@gnupg.org>
2087
2088         * gpgsm.c (main): Set the prefixes for assuan logging.
2089
2090         * sign.c (gpgsm_sign): Add validation checks for the default
2091         certificate.
2092
2093         * gpgsm.c: Add -k as alias for --list-keys and -K for
2094         --list-secret-keys.
2095
2096 2003-12-15  Werner Koch  <wk@gnupg.org>
2097
2098         * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
2099         not need for real strong random here and it even better protect
2100         the random bits used for the key.
2101
2102 2003-12-01  Werner Koch  <wk@gnupg.org>
2103
2104         * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
2105         (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
2106         * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
2107         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
2108         proceed accordingly.
2109
2110 2003-11-19  Werner Koch  <wk@gnupg.org>
2111
2112         * verify.c (gpgsm_verify): Use "0" instead of an empty string for
2113         the VALIDSIG status.
2114
2115 2003-11-18  Werner Koch  <wk@gnupg.org>
2116
2117         * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
2118
2119         * certchain.c (unknown_criticals): Fixed an error code test.
2120
2121 2003-11-12  Werner Koch  <wk@gnupg.org>
2122
2123         Adjusted for API changes in Libksba.
2124
2125 2003-10-31  Werner Koch  <wk@gnupg.org>
2126
2127         * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
2128         * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
2129         * sign.c (gpgsm_sign): Ditto.
2130         * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
2131         * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
2132         Ditto.
2133
2134 2003-10-25  Werner Koch  <wk@gnupg.org>
2135
2136         * certreqgen.c (read_parameters): Fixed faulty of !spacep().
2137
2138 2003-08-20  Marcus Brinkmann  <marcus@g10code.de>
2139
2140         * encrypt.c (encode_session_key): Allocate enough space.  Cast key
2141         byte to unsigned char to prevent sign extension.
2142         (encrypt_dek): Check return value before error.
2143
2144 2003-08-14  Timo Schulz  <twoaday@freakmail.de>
2145
2146         * encrypt.c (encode_session_key): Use new Libgcrypt interface.
2147
2148 2003-07-31  Werner Koch  <wk@gnupg.org>
2149
2150         * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
2151
2152 2003-07-29  Werner Koch  <wk@gnupg.org>
2153
2154         * gpgsm.c (main): Add secmem features and set the random seed file.
2155         (gpgsm_exit): Update the random seed file and enable debug output.
2156
2157 2003-07-27  Werner Koch  <wk@gnupg.org>
2158
2159         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
2160
2161 2003-06-24  Werner Koch  <wk@gnupg.org>
2162
2163         * server.c (gpgsm_status_with_err_code): New.
2164         * verify.c (gpgsm_verify): Use it here instead of the old
2165         tokenizing version.
2166
2167         * verify.c (strtimestamp): Renamed to strtimestamp_r
2168
2169         Adjusted for changes in the libgcrypt API. Some more fixes for the
2170         libgpg-error stuff.
2171
2172 2003-06-04  Werner Koch  <wk@gnupg.org>
2173
2174         * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
2175         Include new membuf header and changed used type.
2176
2177         Renamed error codes from INVALID to INV and removed _ERROR suffixes.
2178
2179 2003-06-03  Werner Koch  <wk@gnupg.org>
2180
2181         Changed all error codes in all files to the new libgpg-error scheme.
2182
2183         * gpgsm.h: Include gpg-error.h .
2184         * Makefile.am: Link with libgpg-error.
2185
2186 2003-04-29  Werner Koch  <wk@gnupg.org>
2187
2188         * Makefile.am: Use libassuan.  Don't override LDFLAGS anymore.
2189         * server.c (register_commands): Adjust for new Assuan semantics.
2190
2191 2002-12-03  Werner Koch  <wk@gnupg.org>
2192
2193         * call-agent.c (gpgsm_agent_passwd): New.
2194         * gpgsm.c (main): New command --passwd and --call-protect-tool
2195         (run_protect_tool): New.
2196
2197 2002-11-25  Werner Koch  <wk@gnupg.org>
2198
2199         * verify.c (gpgsm_verify): Handle content-type attribute.
2200
2201 2002-11-13  Werner Koch  <wk@gnupg.org>
2202
2203         * call-agent.c (start_agent): Try to use $GPG_TTY instead of
2204         ttyname.  Changed ttyname to test stdin becuase it can be assumed
2205         that output redirection is more common that input redirection.
2206
2207 2002-11-12  Werner Koch  <wk@gnupg.org>
2208
2209         * gpgsm.c: New command --call-dirmngr.
2210         * call-dirmngr.c (gpgsm_dirmngr_run_command)
2211         (run_command_inq_cb,run_command_cb)
2212         (run_command_status_cb): New.
2213
2214 2002-11-11  Werner Koch  <wk@gnupg.org>
2215
2216         * certcheck.c (gpgsm_check_cms_signature): Don't double free
2217         s_sig but free s_pkey at leave.
2218
2219 2002-11-10  Werner Koch  <wk@gnupg.org>
2220
2221         * gpgsm.c: Removed duplicate --list-secret-key entry.
2222
2223 2002-09-19  Werner Koch  <wk@gnupg.org>
2224
2225         * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
2226
2227         * certchain.c (find_up): Print info when the cert was not found
2228         by the autorithyKeyIdentifier.
2229
2230 2002-09-03  Werner Koch  <wk@gnupg.org>
2231
2232         * gpgsm.c (main): Disable the internal libgcrypt locking.
2233
2234 2002-08-21  Werner Koch  <wk@gnupg.org>
2235
2236         * import.c (print_imported_summary): Cleaned up.  Print new
2237         not_imported value.
2238         (check_and_store): Update non_imported counter.
2239         (print_import_problem): New.
2240         (check_and_store): Print error status message.
2241         * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
2242
2243 2002-08-20  Werner Koch  <wk@gnupg.org>
2244
2245         * gpgsm.c (main): Use the log file only in server mode.
2246
2247         * import.c (print_imported_summary): New.
2248         (check_and_store): Update the counters, take new argument.
2249         (import_one): Factored out core of gpgsm_import.
2250         (gpgsm_import): Print counters.
2251         (gpgsm_import_files): New.
2252         * gpgsm.c (main): Use the new function for import.
2253
2254 2002-08-19  Werner Koch  <wk@gnupg.org>
2255
2256         * decrypt.c (gpgsm_decrypt): Return a better error status token.
2257         * verify.c (gpgsm_verify): Don't error on messages with no signing
2258         time or no message digest.  This is only the case for messages
2259         without any signed attributes.
2260
2261 2002-08-16  Werner Koch  <wk@gnupg.org>
2262
2263         * certpath.c: Renamed to ..
2264         * certchain.c: this. Renamed all all other usages of "path" in the
2265         context of certificates to "chain".
2266
2267         * call-agent.c (learn_cb): Special treatment when the issuer
2268         certificate is missing.
2269
2270 2002-08-10  Werner Koch  <wk@gnupg.org>
2271
2272         * Makefile.am (INCLUDES): Add definition for localedir.
2273
2274         * keylist.c (list_cert_colon): Print the short fingerprint in the
2275         key ID field.
2276         * fingerprint.c (gpgsm_get_short_fingerprint): New.
2277         * verify.c (gpgsm_verify): Print more verbose info for a good
2278         signature.
2279
2280 2002-08-09  Werner Koch  <wk@gnupg.org>
2281
2282         * decrypt.c (prepare_decryption): Hack to detected already
2283         unpkcsedone keys.
2284
2285         * gpgsm.c (emergency_cleanup): New.
2286         (main): Initialize the signal handler.
2287
2288         * sign.c (gpgsm_sign): Reset the hash context for subsequent
2289         signers and release it at the end.
2290
2291 2002-08-05  Werner Koch  <wk@gnupg.org>
2292
2293         * server.c (cmd_signer): New command "SIGNER"
2294         (register_commands): Register it.
2295         (cmd_sign): Pass the signer list to gpgsm_sign.
2296         * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
2297         for secret key if set and changed all callers.
2298         * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
2299         multiple signers.
2300         * gpgsm.c (main): Support more than one -u.
2301
2302         * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
2303         which is actually what gets returned from add_to_certlist.
2304
2305 2002-07-26  Werner Koch  <wk@gnupg.org>
2306
2307         * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
2308         (gpgsm_check_cms_signature): Ditto.
2309
2310 2002-07-22  Werner Koch  <wk@gnupg.org>
2311
2312         * keydb.c (keydb_add_resource): Register a lock file.
2313         (lock_all, unlock_all): Implemented.
2314
2315         * delete.c: New.
2316         * gpgsm.c: Made --delete-key work.
2317         * server.c (cmd_delkeys): New.
2318         (register_commands): New command DELKEYS.
2319
2320         * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
2321         used and a STATUS_ERROR with the algorithm oid.
2322
2323 2002-07-03  Werner Koch  <wk@gnupg.org>
2324
2325         * server.c (gpgsm_status2): Insert a blank between all optional
2326         arguments when using assuan.
2327         * server.c (cmd_recipient): No more need for extra blank in constants.
2328         * import.c (print_imported_status): Ditto.
2329         * gpgsm.c (main): Ditto.
2330
2331 2002-07-02  Werner Koch  <wk@gnupg.org>
2332
2333         * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
2334         the fingerprint.
2335
2336         * certpath.c (check_cert_policy): Don't use log_error to print a
2337         warning.
2338
2339         * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
2340         all callers.
2341         * call-agent.c (learn_cb): Print info message only for real imports.
2342
2343         * import.c (gpgsm_import): Moved duplicated code to ...
2344         (check_and_store): new function.  Added magic to import the entire
2345         chain. Print status only for real imports and moved printing code
2346         to ..
2347         (print_imported_status): New.
2348
2349         * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
2350         call in very verbose mode.
2351
2352         * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
2353         with the server mode.
2354
2355 2002-06-29  Werner Koch  <wk@gnupg.org>
2356
2357         * gpgsm.c: New option --auto-issuer-key-retrieve.
2358         * certpath.c (find_up): Try to retrieve an issuer key from an
2359         external source and from the ephemeral key DB.
2360         (find_up_store_certs_cb): New.
2361
2362         * keydb.c (keydb_set_ephemeral): Does now return the old
2363         state.  Call the backend only when required.
2364
2365         * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
2366         (lookup_status_cb): Issue status only when CTRL is not NULL.
2367         (gpgsm_dirmngr_lookup): Document that CTRL is optional.
2368
2369         * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
2370
2371 2002-06-28  Werner Koch  <wk@gnupg.org>
2372
2373         * server.c (cmd_recipient): Add more reason codes.
2374
2375 2002-06-27  Werner Koch  <wk@gnupg.org>
2376
2377         * certpath.c (gpgsm_basic_cert_check): Use
2378         --debug-no-path-validation to also bypass this basic check.
2379
2380         * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
2381
2382         * call-agent.c (start_agent): Create and pass the list of FD to
2383         keep in the child to assuan.
2384         * call-dirmngr.c (start_dirmngr): Ditto.
2385
2386 2002-06-26  Werner Koch  <wk@gnupg.org>
2387
2388         * import.c (gpgsm_import): Print an STATUS_IMPORTED.
2389
2390         * gpgsm.c: --debug-no-path-validation does not take an argument.
2391
2392 2002-06-25  Werner Koch  <wk@gnupg.org>
2393
2394         * certdump.c (print_dn_part): Always print a leading slash,
2395         removed NEED_DELIM arg and changed caller.
2396
2397         * export.c (gpgsm_export): Print LFs to FP and not stdout.
2398         (print_short_info): Ditto.  Make use of gpgsm_print_name.
2399
2400         * server.c (cmd_export): Use output-fd instead of data lines; this
2401         was actually the specified way.
2402
2403 2002-06-24  Werner Koch  <wk@gnupg.org>
2404
2405         * gpgsm.c: Removed duped help entry for --list-keys.
2406
2407         * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
2408
2409         * certpath.c (gpgsm_validate_path): Use it here instead of the
2410         debug flag hack.
2411
2412         * certpath.c (check_cert_policy): Return No_Policy_Match if the
2413         policy file could not be opened.
2414
2415 2002-06-20  Werner Koch  <wk@gnupg.org>
2416
2417         * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
2418         certificate with the required key usage.
2419
2420         * gpgsm.c (main): Fixed a segv when using --outfile without an
2421         argument.
2422
2423         * keylist.c (print_capabilities): Also check for non-repudiation
2424         and data encipherment.
2425         * certlist.c (cert_usage_p): Test for signing and encryption was
2426         swapped.  Add a case for certification usage, handle
2427         non-repudiation and data encipherment.
2428         (gpgsm_cert_use_cert_p): New.
2429         (gpgsm_add_to_certlist): Added a CTRL argument and changed all
2430         callers to pass it.
2431         * certpath.c (gpgsm_validate_path): Use it here to print a status
2432         message. Added a CTRL argument and changed all callers to pass it.
2433         * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
2434         usage.
2435         * verify.c (gpgsm_verify): Ditto.
2436         * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2437
2438 2002-06-19  Werner Koch  <wk@gnupg.org>
2439
2440         * call-agent.c (learn_cb): Use log_info instead of log_error on
2441         successful import.
2442
2443         * keydb.c (keydb_set_ephemeral): New.
2444         (keydb_store_cert): New are ephemeral, changed all callers.
2445         * keylist.c (list_external_cb): Store cert as ephemeral.
2446         * export.c (gpgsm_export): Kludge to export epehmeral certificates.
2447
2448         * gpgsm.c (main): New command --list-external-keys.
2449
2450 2002-06-17  Werner Koch  <wk@gnupg.org>
2451
2452         * certreqgen.c (read_parameters): Improved error handling.
2453         (gpgsm_genkey): Print error message.
2454
2455 2002-06-13  Werner Koch  <wk@gnupg.org>
2456
2457         * gpgsm.c (main): New option --log-file.
2458
2459 2002-06-12  Werner Koch  <wk@gnupg.org>
2460
2461         * call-dirmngr.c (lookup_status_cb): New.
2462         (gpgsm_dirmngr_lookup): Use the status CB.  Add new arg CTRL and
2463         changed caller to pass it.
2464
2465         * gpgsm.c (open_fwrite): New.
2466         (main): Allow --output for --verify.
2467
2468         * sign.c (hash_and_copy_data): New.
2469         (gpgsm_sign): Implemented normal (non-detached) signatures.
2470         * gpgsm.c (main): Ditto.
2471
2472         * certpath.c (gpgsm_validate_path): Special error handling for
2473         no policy match.
2474
2475 2002-06-10  Werner Koch  <wk@gnupg.org>
2476
2477         * server.c (get_status_string): Add STATUS_ERROR.
2478
2479         * certpath.c (gpgsm_validate_path): Tweaked the error checking to
2480         return error codes in a more sensitive way.
2481         * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
2482         CA certificate and when the certificate has been revoked.  Issue
2483         TRUST_FULLY even when the cert has expired.  Append an error token
2484         to these status lines.  Issue the new generic error status when a
2485         cert was not found and when leaving the function.
2486
2487 2002-06-04  Werner Koch  <wk@gnupg.org>
2488
2489         * gpgsm.c (main): New command --list-sigs
2490         * keylist.c (list_cert_std): New.  Use it whenever colon mode is
2491         not used.
2492         (list_cert_chain): New.
2493
2494 2002-05-31  Werner Koch  <wk@gnupg.org>
2495
2496         * gpgsm.c (main): Don't print the "go ahead" message for an
2497         invalid command.
2498
2499 2002-05-23  Werner Koch  <wk@gnupg.org>
2500
2501         * import.c (gpgsm_import): Add error messages.
2502
2503 2002-05-21  Werner Koch  <wk@gnupg.org>
2504
2505         * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
2506         (list_external_keys): New.
2507         (gpgsm_list_keys): Dispatcher for above.
2508         * call-dirmngr.c (lookup_cb,pattern_from_strlist)
2509         (gpgsm_dirmngr_lookup): New.
2510         * server.c (option_handler): Handle new option --list-mode.
2511         (do_listkeys): Handle options and actually use the mode argument.
2512         (get_status_string): New code TRUNCATED.
2513
2514         * import.c (gpgsm_import): Try to identify the type of input and
2515         handle certs-only messages.
2516
2517 2002-05-14  Werner Koch  <wk@gnupg.org>
2518
2519         * gpgsm.c: New option --faked-system-time
2520         * sign.c (gpgsm_sign): And use it here.
2521         * certpath.c (gpgsm_validate_path): Ditto.
2522
2523 2002-05-03  Werner Koch  <wk@gnupg.org>
2524
2525         * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
2526         all callers.
2527         * verify.c (gpgsm_verify): Tweaked usage of log_debug and
2528         log_error.  Return EXPSIG status and add expiretime to VALIDSIG.
2529
2530 2002-04-26  Werner Koch  <wk@gnupg.org>
2531
2532         * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
2533         Changed all users.
2534
2535         * call-agent.c (start_agent): Be more silent without -v.
2536         * call-dirmngr.c (start_dirmngr): Ditto.
2537
2538 2002-04-25  Werner Koch  <wk@gnupg.org>
2539
2540         * call-agent.c (start_agent): Make copies of old locales and check
2541         for setlocale.
2542
2543 2002-04-25  Marcus Brinkmann  <marcus@g10code.de>
2544
2545         * call-agent.c (start_agent): Fix error handling logic so the
2546         locale is always correctly reset.
2547
2548 2002-04-25  Marcus Brinkmann  <marcus@g10code.de>
2549
2550         * server.c (option_handler): Accept display, ttyname, ttytype,
2551         lc_ctype and lc_messages options.
2552         * gpgsm.c (main): Allocate memory for these options.
2553         * gpgsm.h (struct opt): Make corresponding members non-const.
2554
2555 2002-04-24  Marcus Brinkmann  <marcus@g10code.de>
2556
2557         * gpgsm.h (struct opt): New members display, ttyname, ttytype,
2558         lc_ctype, lc_messages.
2559         * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
2560         oTTYname, oTTYtype, oLCctype, oLCmessages.
2561         (opts): New entries for these options.
2562         (main): Handle these new options.
2563         * call-agent.c (start_agent): Set the various display and tty
2564         parameter after resetting.
2565
2566 2002-04-18  Werner Koch  <wk@gnupg.org>
2567
2568         * certreqgen.c (gpgsm_genkey): Write status output on success.
2569
2570 2002-04-15  Werner Koch  <wk@gnupg.org>
2571
2572         * gpgsm.c (main): Check ksba version.
2573
2574         * certpath.c (find_up): New to use the authorithKeyIdentifier.
2575         Use it in all other functions to locate the signing cert..
2576
2577 2002-04-11  Werner Koch  <wk@gnupg.org>
2578
2579         * certlist.c (cert_usable_p): New.
2580         (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
2581         (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
2582         (gpgsm_add_to_certlist): Check the key usage.
2583         * sign.c (gpgsm_sign): Ditto.
2584         * verify.c (gpgsm_verify): Print a message wehn an unsuitable
2585         certificate was used.
2586         * decrypt.c (gpgsm_decrypt): Ditto
2587         * keylist.c (print_capabilities): Determine values from the cert.
2588
2589 2002-03-28  Werner Koch  <wk@gnupg.org>
2590
2591         * keylist.c (list_cert_colon): Fixed listing of crt record; the
2592         issuer is not at the right place.  Print a chainingID.
2593         * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
2594         common errors.
2595
2596 2002-03-21  Werner Koch  <wk@gnupg.org>
2597
2598         * export.c: New.
2599         * gpgsm.c: Add command --export.
2600         * server.c (cmd_export): New.
2601
2602 2002-03-13  Werner Koch  <wk@gnupg.org>
2603
2604         * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
2605
2606 2002-03-12  Werner Koch  <wk@gnupg.org>
2607
2608         * certpath.c (check_cert_policy): Print the policy list.
2609
2610         * verify.c (gpgsm_verify): Detect certs-only message.
2611
2612 2002-03-11  Werner Koch  <wk@gnupg.org>
2613
2614         * import.c (gpgsm_import): Print a notice about imported certificates
2615         when in verbose mode.
2616
2617         * gpgsm.c (main): Print INV_RECP status.
2618         * server.c (cmd_recipient): Ditto.
2619
2620         * server.c (gpgsm_status2): New.  Allows for a list of strings.
2621         (gpgsm_status): Divert to gpgsm_status2.
2622
2623         * encrypt.c (gpgsm_encrypt): Don't use a default key when no
2624         recipients are given.  Print a NO_RECP status.
2625
2626 2002-03-06  Werner Koch  <wk@gnupg.org>
2627
2628         * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
2629         (do_listkeys): new.  Add pattern parsing.
2630
2631         * keylist.c (gpgsm_list_keys): Handle selection pattern.
2632
2633         * gpgsm.c: New command --learn-card
2634         * call-agent.c (learn_cb,gpgsm_agent_learn): New.
2635
2636         * gpgsm.c (main): Print error messages for non-implemented commands.
2637
2638         * base64.c (base64_reader_cb): Use case insensitive compare of the
2639         Content-Type string to detect plain base-64.
2640
2641 2002-03-05  Werner Koch  <wk@gnupg.org>
2642
2643         * gpgsm.c, gpgsm.h: Add local_user.
2644         * sign.c (gpgsm_get_default_cert): New.
2645         (get_default_signer): Use the new function if local_user is not
2646         set otherwise used that value.
2647         * encrypt.c (get_default_recipient): Removed.
2648         (gpgsm_encrypt): Use gpgsm_get_default_cert.
2649
2650         * verify.c (gpgsm_verify): Better error text for a bad signature
2651         found by comparing the hashs.
2652
2653 2002-02-27  Werner Koch  <wk@gnupg.org>
2654
2655         * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2656         of assuan_transact.
2657
2658 2002-02-25  Werner Koch  <wk@gnupg.org>
2659
2660         * server.c (option_handler): Allow to use -2 for "send all certs
2661         except the root cert".
2662         * sign.c (add_certificate_list): Implement it here.
2663         * certpath.c (gpgsm_is_root_cert): New.
2664
2665 2002-02-19  Werner Koch  <wk@gnupg.org>
2666
2667         * certpath.c (check_cert_policy): New.
2668         (gpgsm_validate_path): And call it from here.
2669         * gpgsm.c (main): New options --policy-file,
2670         --disable-policy-checks and --enable-policy-checks.
2671         * gpgsm.h (opt): Added policy_file, no_policy_checks.
2672
2673 2002-02-18  Werner Koch  <wk@gnupg.org>
2674
2675         * certpath.c (gpgsm_validate_path): Ask the agent to add the
2676         certificate into the trusted list.
2677         * call-agent.c (gpgsm_agent_marktrusted): New.
2678
2679 2002-02-07  Werner Koch  <wk@gnupg.org>
2680
2681         * certlist.c (gpgsm_add_to_certlist): Check that the specified
2682         name identifies a certificate unambiguously.
2683         (gpgsm_find_cert): Ditto.
2684
2685         * server.c (cmd_listkeys): Check that the data stream is available.
2686         (cmd_listsecretkeys): Ditto.
2687         (has_option): New.
2688         (cmd_sign): Fix ambiguousity in option recognition.
2689
2690         * gpgsm.c (main): Enable --logger-fd.
2691
2692         * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2693         performance.
2694
2695         * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2696         the agent.
2697
2698         * keylist.c (list_cert_colon): Filter out control characters.
2699
2700 2002-02-06  Werner Koch  <wk@gnupg.org>
2701
2702         * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
2703
2704         * server.c (reset_notify): Close input and output FDs.
2705         (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
2706         (cmd_genkey): Close the FDs and release the recipient list even in
2707         the error case.
2708
2709 2002-02-01  Marcus Brinkmann  <marcus@g10code.de>
2710
2711         * sign.c (gpgsm_sign): Do not release certificate twice.
2712
2713 2002-01-29  Werner Koch  <wk@gnupg.org>
2714
2715         * call-agent.c (gpgsm_agent_havekey): New.
2716         * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
2717         when we know that the secret key is available.
2718         (gpgsm_list_keys): New arg MODE, check whether a secret key is
2719         available.  Changed all callers.
2720         * gpgsm.c (main): New command --list-secret-keys.
2721         * server.c (cmd_listsecretkeys): New.
2722         (cmd_listkeys): Return secret keys with "crs" record.
2723
2724 2002-01-28  Werner Koch  <wk@gnupg.org>
2725
2726         * certreqgen.c (create_request): Store the email address in the req.
2727
2728 2002-01-25  Werner Koch  <wk@gnupg.org>
2729
2730         * gpgsm.c (main): Disable core dumps.
2731
2732         * sign.c (add_certificate_list): New.
2733         (gpgsm_sign): Add the certificates to the CMS object.
2734         * certpath.c (gpgsm_walk_cert_chain): New.
2735         * gpgsm.h (server_control_s): Add included_certs.
2736         * gpgsm.c: Add option --include-certs.
2737         (gpgsm_init_default_ctrl): New.
2738         (main): Call it.
2739         * server.c (gpgsm_server): Ditto.
2740         (option_handler): Support --include-certs.
2741
2742 2002-01-23  Werner Koch  <wk@gnupg.org>
2743
2744         * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
2745         * certdump.c (gpgsm_dump_string): New.
2746         (print_dn): Replaced by above.
2747
2748 2002-01-22  Werner Koch  <wk@gnupg.org>
2749
2750         * certpath.c (unknown_criticals): New.
2751         (allowed_ca): New.
2752         (gpgsm_validate_path): Check validity, CA attribute, path length
2753         and unknown critical extensions.
2754
2755 2002-01-21  Werner Koch  <wk@gnupg.org>
2756
2757         * gpgsm.c: Add option --enable-crl-checks.
2758
2759         * call-agent.c (start_agent): Implemented socket based access.
2760         * call-dirmngr.c (start_dirmngr): Ditto.
2761
2762 2002-01-20  Werner Koch  <wk@gnupg.org>
2763
2764         * server.c (option_handler): New.
2765         (gpgsm_server): Register it with assuan.
2766
2767 2002-01-19  Werner Koch  <wk@gnupg.org>
2768
2769         * server.c (gpgsm_server): Use assuan_deinit_server and setup
2770         assuan logging if enabled.
2771         * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2772         an Assuan log file.
2773
2774         * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2775
2776 2002-01-15  Werner Koch  <wk@gnupg.org>
2777
2778         * import.c (gpgsm_import): Just do a basic cert check before
2779         storing it.
2780         * certpath.c (gpgsm_basic_cert_check): New.
2781
2782         * keydb.c (keydb_store_cert): New.
2783         * import.c (store_cert): Removed and change all caller to use
2784         the new function.
2785         * verify.c (store_cert): Ditto.
2786
2787         * certlist.c (gpgsm_add_to_certlist): Validate the path
2788
2789         * certpath.c (gpgsm_validate_path): Check the trust list.
2790         * call-agent.c (gpgsm_agent_istrusted): New.
2791
2792 2002-01-14  Werner Koch  <wk@gnupg.org>
2793
2794         * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2795         * certlist.c (gpgsm_find_cert): New.
2796
2797 2002-01-13  Werner Koch  <wk@gnupg.org>
2798
2799         * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2800         hash after the dot.
2801
2802 2002-01-11  Werner Koch  <wk@gnupg.org>
2803
2804         * call-dirmngr.c: New.
2805         * certpath.c (gpgsm_validate_path): Check the CRL here.
2806         * fingerprint.c (gpgsm_get_certid): New.
2807         * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2808
2809 2002-01-10  Werner Koch  <wk@gnupg.org>
2810
2811         * base64.c (gpgsm_create_writer): Allow to set the object name
2812
2813 2002-01-08  Werner Koch  <wk@gnupg.org>
2814
2815         * keydb.c (spacep): Removed because it is now in util.c
2816
2817         * server.c (cmd_genkey): New.
2818         * certreqgen.c: New.  The parameter handling code has been taken
2819         from gnupg/g10/keygen.c version 1.0.6.
2820         * call-agent.c (gpgsm_agent_genkey): New.
2821
2822 2002-01-02  Werner Koch  <wk@gnupg.org>
2823
2824         * server.c (rc_to_assuan_status): Removed and changed all callers
2825         to use map_to_assuan_status.
2826
2827 2001-12-20  Werner Koch  <wk@gnupg.org>
2828
2829         * verify.c (gpgsm_verify): Implemented non-detached signature
2830         verification.  Add OUT_FP arg, initialize a writer and changed all
2831         callers.
2832         * server.c (cmd_verify): Pass an out_fp if one has been set.
2833
2834         * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2835
2836         * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2837         global.
2838         (print_time): Renamed to gpgsm_dump_time, made global.
2839         (gpgsm_dump_serial): Take a real S-Expression as argument and
2840         print the first item.
2841         * keylist.c (list_cert_colon): Ditto.
2842         * keydb.c (keydb_search_issuer_sn): Ditto.
2843         * decrypt.c (print_integer_sexp): Removed and made callers
2844         use gpgsm_dump_serial.
2845         * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2846
2847 2001-12-19  Marcus Brinkmann  <marcus@g10code.de>
2848
2849         * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2850
2851 2001-12-18  Werner Koch  <wk@gnupg.org>
2852
2853         * verify.c (print_integer_sexp): Renamed from print_integer and
2854         print the serial number according to the S-Exp rules.
2855         * decrypt.c (print_integer_sexp): Ditto.
2856
2857 2001-12-17  Werner Koch  <wk@gnupg.org>
2858
2859         * keylist.c (list_cert_colon): Changed for new return value of
2860         get_serial.
2861         * keydb.c (keydb_search_issuer_sn): Ditto.
2862         * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2863         returingin functions.
2864         * fingerprint.c (gpgsm_get_keygrip): Ditto.
2865         * encrypt.c (encrypt_dek): Ditto
2866         * certcheck.c (gpgsm_check_cms_signature): Ditto
2867         * decrypt.c (prepare_decryption): Ditto.
2868         * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2869         use KsbaSexp type and calculate the length.
2870
2871         * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2872
2873         * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2874
2875         * fingerprint.c (gpgsm_get_keygrip): Use the new
2876         gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2877         therefore the grip values changed.
2878
2879 2001-12-15  Werner Koch  <wk@gnupg.org>
2880
2881         * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2882         kludge.
2883         (gpgsm_create_cms_signature): Removed the commented fake key
2884         code.  This makes the function pretty simple.
2885
2886         * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2887
2888         * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2889         * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2890
2891 2001-12-14  Werner Koch  <wk@gnupg.org>
2892
2893         * keylist.c (list_cert_colon): Kludge to show an email address
2894         encoded in the subject's DN.
2895
2896         * verify.c (gpgsm_verify): Add hash debug helpers
2897         * sign.c (gpgsm_sign): Ditto.
2898
2899         * base64.c (base64_reader_cb): Reset the linelen when we need to
2900         skip the line and adjusted test; I somehow forgot about DeMorgan.
2901
2902         * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify)
2903         (cmd_import): Close the FDs on success.
2904         (close_message_fd): New.
2905         (input_notify): Setting autodetect_encoding to 0 after initializing
2906         it to 0 is pretty pointless.  Easy to fix.
2907
2908         * gpgsm.c (main): New option --debug-wait n, so that it is
2909         possible to attach gdb when used in server mode.
2910
2911         * sign.c (get_default_signer): Use keydb_classify_name here.
2912
2913 2001-12-14  Marcus Brinkmann  <marcus@g10code.de>
2914
2915         * call-agent.c (LINELENGTH): Removed.
2916         (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2917         (gpgsm_agent_pkdecrypt): Likewise.
2918
2919 2001-12-13  Werner Koch  <wk@gnupg.org>
2920
2921         * keylist.c (list_cert_colon): Print alternative names of subject
2922         and a few other values.
2923
2924 2001-12-12  Werner Koch  <wk@gnupg.org>
2925
2926         * gpgsm.c (main): New options --assume-{armor,base64,binary}.
2927         * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2928
2929 2001-12-04  Werner Koch  <wk@gnupg.org>
2930
2931         * call-agent.c (read_from_agent): Check for inquire responses.
2932         (request_reply): Handle them using a new callback arg, changed all
2933         callers.
2934         (gpgsm_agent_pkdecrypt): New.
2935
2936 2001-11-27  Werner Koch  <wk@gnupg.org>
2937
2938         * base64.c: New.  Changed all other functions to use this instead
2939         of direct creation of ksba_reader/writer.
2940         * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2941
2942 2001-11-26  Werner Koch  <wk@gnupg.org>
2943
2944         * gpgsm.c: New option --agent-program
2945         * call-agent.c (start_agent): Allow to override the default path
2946         to the agent.
2947
2948         * keydb.c (keydb_add_resource): Create keybox
2949
2950         * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2951
2952         * server.c (rc_to_assuan_status): New.  Use it for all commands.
2953
2954
2955  Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2956            2010, 2011 Free Software Foundation, Inc.
2957
2958  This file is free software; as a special exception the author gives
2959  unlimited permission to copy and/or distribute it, with or without
2960  modifications, as long as this notice is preserved.
2961
2962  This file is distributed in the hope that it will be useful, but
2963  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2964  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2965
2966 Local Variables:
2967 buffer-read-only: t
2968 End: