1 2011-12-01 Werner Koch <wk@g10code.com>
3 NB: ChangeLog files are no longer manually maintained. Starting
4 on December 1st, 2011 we put change information only in the GIT
5 commit log, and generate a top-level ChangeLog file from logs at
6 "make dist". See doc/HACKING for details.
8 2011-09-20 Werner Koch <wk@g10code.com>
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.
16 2011-08-10 Werner Koch <wk@g10code.com>
18 * keydb.c (keydb_add_resource): Remove unsued var CREATED_FNAME.
20 * gpgsm.c (main): Remove unused var FNAME.
22 2011-07-21 Werner Koch <wk@g10code.com>
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.
28 2011-06-01 Marcus Brinkmann <mb@g10code.com>
30 * certreqgen.c (proc_parameters): Initialize RC.
32 2011-04-25 Werner Koch <wk@g10code.com>
34 * certlist.c (gpgsm_add_to_certlist): Mark classify_user_id for
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.
43 2011-03-10 Werner Koch <wk@g10code.com>
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.
52 2011-03-03 Werner Koch <wk@g10code.com>
54 * base64.c (base64_finish_write): Do not copy to radbuf to get rid
55 of a faulty gcc 4.4 "used uninitialized" warning.
57 2011-03-01 Werner Koch <wk@g10code.com>
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
69 (gpgsm_genkey): Do not create writer object but pass output stream
71 * certreqgen-ui.c (gpgsm_gencertreq_tty): Ask for self-signed.
72 * misc.c (transform_sigval): New.
74 2011-02-25 Werner Koch <wk@g10code.com>
76 * certreqgen.c (create_request): Add arg SIGKEY.
78 2010-11-25 Werner Koch <wk@g10code.com>
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
86 2010-11-23 Werner Koch <wk@g10code.com>
88 * Makefile.am (gpgsm_LDADD): Add extra_bin_ldflags.
90 2010-10-08 Werner Koch <wk@g10code.com>
92 * gpgsm.c: Add option --with-keygrip.
93 * gpgsm.h (struct opt): Add WITH_KEYGRIP.
94 * keylist.c (list_cert_std): Implement option.
96 2010-09-16 Werner Koch <wk@g10code.com>
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.
106 2010-08-16 Werner Koch <wk@g10code.com>
108 * gpgsm.c (main) <aGPGConfList>: Use es_printf.
110 * call-dirmngr.c (start_dirmngr_ext): Use new start_new_dirmngr
113 * gpgsm.c: Mark option --prefer-system-dirmngr obsolete.
114 (main): Enable dirmngr by default.
116 * gpgsm.h (struct opt): Remove field PREFER_SYSTEM_DIRMNGR.
118 * server.c (gpgsm_server): Use dirmngr_socket_name instead of the
119 envvar for the hello line info.
121 2010-06-21 Werner Koch <wk@g10code.com>
123 * minip12.c (p12_build): Change arg CERT to const void ptr.
124 (build_cert_sequence): Change arg CERT to const ptr.
126 * gpgsm.c (main) <aExportSecretKeyP12>: Use to estream.
127 (open_fwrite): Removed.
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
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.
139 2010-06-17 Werner Koch <wk@g10code.com>
141 * import.c (parse_p12): Remove arg retfp. Use the agent's new
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
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.
155 2010-06-11 Marcus Brinkmann <marcus@g10code.de>
157 * server.c (cmd_message) [HAVE_W32CE_SYSTEM]: Finish pipe.
159 2010-06-10 Marcus Brinkmann <marcus@g10code.de>
161 * server.c (SERVER_STDIN, SERVER_STDOUT): New macros.
162 (gpgsm_server): Use them with assuan_fdopen.
164 2010-04-23 Marcus Brinkmann <marcus@g10code.de>
166 * certreqgen.c (read_parameters): Use ascii_isspace instead of
167 spacep to stop at newline, too.
169 2010-04-14 Werner Koch <wk@g10code.com>
171 * gpgsm.c (main) [W32CE]: Disable dirmngr for now.
173 2010-04-13 Werner Koch <wk@g10code.com>
175 * sign.c (gpgsm_sign): Do not check qualified status in
176 no-chain-validation mode.
178 2010-04-08 Werner Koch <wk@g10code.com>
180 * gpgsm.c (open_es_fread): Add arg mode.
181 (main) <aKeygen>: Call with mode "r" instead of "rb".
183 2010-04-07 Werner Koch <wk@g10code.com>
185 * misc.c: Remove setenv.h. Include sysutils.h.
186 (setup_pinentry_env): s/setenv/gnupg_setenv/
188 2010-03-24 Werner Koch <wk@g10code.com>
190 * Makefile.am (gpgsm_LDADD): Add extra_sys_libs.
192 2010-03-23 Werner Koch <wk@g10code.com>
194 * qualified.c (gpgsm_is_in_qualified_list): Replace rewind by
197 2010-03-22 Werner Koch <wk@g10code.com>
199 * import.c (parse_p12): Use estream functions for the tmp streams.
200 * export.c (export_p12): Ditto.
202 2010-03-11 Werner Koch <wk@g10code.com>
204 * verify.c (gpgsm_verify): Use gpgsm_es_print_name.
206 * gpgsm.c: Include "asshelp.h".
207 (main): Remove assuan_set_assuan_log_prefix. Add
209 * server.c (gpgsm_server): Remove assuan_set_log_stream.
211 2010-03-10 Werner Koch <wk@g10code.com>
213 * Makefile.am (common_libs): Remove libjnlib.a. Change order.
215 * gpgsm.h: Remove "estream.h".
217 2010-03-08 Werner Koch <wk@g10code.com>
219 * certreqgen.c (gpgsm_genkey): Change OUT_FP to an estream_t
221 * certreqgen-ui.c (gpgsm_gencertreq_tty): ditto.
223 * server.c (cmd_genkey): Close IN_STREAM.
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.
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
248 (encrypt_cb): Use estream.
249 * gpgsm.c (main) <aEncr, aVerify, aSign, aDecrypt>: Use estream
251 (main) <aExport, aKeygen>: Use open_es_fwrite.
253 2009-12-14 Werner Koch <wk@g10code.com>
255 * server.c (cmd_passwd): New.
256 (register_commands): Register new command.
258 2009-12-10 Werner Koch <wk@g10code.com>
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,
264 2009-12-08 Werner Koch <wk@g10code.com>
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
270 (keydb_classify_name): Remove. Replace all callers by
273 2009-12-08 Marcus Brinkmann <marcus@g10code.de>
275 * call-dirmngr.c (start_dirmngr_ext): Convert posix fd to assuan fd.
277 2009-12-03 Werner Koch <wk@g10code.com>
279 * gpgsm.c (set_debug): Allow for numerical debug leveles. Print
282 2009-12-02 Werner Koch <wk@g10code.com>
284 * verify.c (gpgsm_verify): Add audit info on hash algorithms.
286 * sign.c (gpgsm_sign): Add audit log calls.
287 (hash_data): Return an error indicator.
289 2009-12-01 Werner Koch <wk@g10code.com>
291 * decrypt.c (gpgsm_decrypt): Add audit log calls.
293 * gpgsm.c: New option --html-audit-log.
295 2009-11-25 Marcus Brinkmann <marcus@g10code.de>
297 * server.c (gpgsm_server): Use assuan_fd_t and assuan_fdopen on
300 2009-11-23 Werner Koch <wk@g10code.com>
302 * gpgsm.c (main) <aGpgConfList>: Add key "default_pubkey_algo".
304 2009-11-10 Marcus Brinkmann <marcus@g10code.de>
306 * server.c (cmd_getauditlog): Don't dup FD for es_fdopen_nc as
307 this leaks the FD here.
309 2009-11-05 Marcus Brinkmann <marcus@g10code.de>
311 * call-dirmngr.c (start_dirmngr_ext): Update use of
312 assuan_pipe_connect and assuan_socket_connect.
314 2009-11-04 Werner Koch <wk@g10code.com>
316 * certreqgen.c (proc_parameters): Change fallback key length to
319 * server.c (register_commands): Add help arg to
320 assuan_register_command. Provide help strings for all commands.
322 2009-11-02 Marcus Brinkmann <marcus@g10code.de>
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.
332 2009-10-16 Werner Koch <wk@g10code.com>
334 * gpgsm.c (default_include_certs): Change to -2.
335 (DEFAULT_INCLUDE_CERTS): New.
336 (DEFAULT_CIPHER_ALGO): New. Use instead of hardcoded "3DES".
338 2009-09-30 Werner Koch <wk@g10code.com>
340 * gpgsm.c (main): Remove obsolete GCRYCTL_DISABLE_INTERNAL_LOCKING.
342 2009-09-23 Marcus Brinkmann <marcus@g10code.de>
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.
355 * call-dirmngr.c (prepare_dirmngr): Check for CTX and error before
357 (start_dirmngr_ext): Allocate assuan context before starting
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.
363 2009-08-06 Werner Koch <wk@g10code.com>
365 * sign.c (gpgsm_sign): Print INV_SNDR for a bad default key.
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.
373 2009-07-30 Werner Koch <wk@g10code.com>
375 * call-agent.c (learn_cb): Do not store as ephemeral.
377 2009-07-29 Marcus Brinkmann <marcus@g10code.com>
379 * keylist.c (print_capabilities): Print a trailing colon.
381 2009-07-23 Werner Koch <wk@g10code.com>
383 * certchain.c (is_cert_still_valid): Emit AUDIT_CRL_CHECK.
385 2009-07-07 Werner Koch <wk@g10code.com>
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.
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
401 * misc.c (setup_pinentry_env): Use new session_env stuff.
403 2009-07-02 Werner Koch <wk@g10code.com>
405 * certreqgen-ui.c (gpgsm_gencertreq_tty): Allow using a key from a
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.
411 2009-07-01 Werner Koch <wk@g10code.com>
413 * certreqgen-ui.c (check_keygrip): New.
414 (gpgsm_gencertreq_tty): Allow using an existing key.
416 * gpgsm.c (open_es_fread): New.
417 (main) <aKeygen>: Implement --batch mode.
419 2009-06-24 Werner Koch <wk@g10code.com>
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.
426 2009-05-27 Werner Koch <wk@g10code.com>
428 * encrypt.c (encrypt_dek): Make use of make_canon_sexp.
430 2009-05-18 Werner Koch <wk@g10code.com>
432 * server.c (option_handler): New option "no-encrypt-to".
433 (cmd_encrypt): Make use of it.
435 * gpgsm.c: Remove not implemented --verify-files.
437 2009-04-02 Werner Koch <wk@g10code.com>
439 * keylist.c (list_cert_std): Print card serial number.
441 2009-04-01 Werner Koch <wk@g10code.com>
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.
447 2009-03-26 Werner Koch <wk@g10code.com>
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.
454 * sign.c (MAX_DIGEST_LEN): Change to 64.
456 * call-agent.c (gpgsm_agent_marktrusted): Format the issuer name.
458 2009-03-25 Werner Koch <wk@g10code.com>
460 * decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY stati.
462 * fingerprint.c (gpgsm_get_short_fingerprint): Add arg R_HIGH and
465 2009-03-23 Werner Koch <wk@g10code.com>
467 * delete.c (delete_one): Also delete ephemeral certificates if
470 2009-03-20 Werner Koch <wk@g10code.com>
472 * keylist.c (list_internal_keys): Set released cert to NULL.
474 * call-agent.c (learn_status_cb): New.
475 (gpgsm_agent_learn): Use it.
476 (learn_cb): Send a progress for every certificate.
478 2009-03-18 Werner Koch <wk@g10code.com>
480 * gpgsm.h (struct opt): Move field WITH_EPHEMERAL_KEYS to struct
482 * gpgsm.c (main): Change accordingly.
483 * keylist.c (list_internal_keys): Ditto.
484 * server.c (option_handler): Add "with-ephemeral-keys".
486 2009-03-12 Werner Koch <wk@g10code.com>
488 * certdump.c (gpgsm_dump_time): Remove.
489 * certdump.c, verify.c, certchain.c
490 * gpgsm.c: s/gpgsm_dump_time/dump_isotime/.
492 2009-03-06 Werner Koch <wk@g10code.com>
494 * call-agent.c (gpgsm_agent_keyinfo, keyinfo_status_cb): New.
495 * keylist.c (list_cert_colon): Print card S/N.
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
503 2009-02-09 Werner Koch <wk@g10code.com>
505 * gpgsm.c (main): Change default cipher back to 3DES.
507 2009-01-12 Werner Koch <wk@g10code.com>
509 * keylist.c (print_utf8_extn_raw): Cast printf precision argument.
511 2009-01-08 Werner Koch <wk@g10code.com>
513 * fingerprint.c (gpgsm_get_keygrip_hexstring): Add error detection.
515 2008-12-10 Werner Koch <wk@g10code.com>
517 * gpgsm.c (our_cipher_test_algo): Use the GCRY constants as we now
519 (our_md_test_algo): Ditto. Add SHA224.
520 (main) <aGpgConfList>: Update default cipher algo.
522 2008-12-09 Werner Koch <wk@g10code.com>
524 * gpgsm.c (main): Call i18n_init before init_common_subsystems.
526 2008-12-05 Werner Koch <wk@g10code.com>
528 * certreqgen.c (create_request): Provide a custom prompt for the
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
537 2008-11-18 Werner Koch <wk@g10code.com>
539 * gpgsm.c (make_libversion): New.
540 (my_strusage): Use new function.
541 (build_lib_list): Remove.
543 2008-11-13 Werner Koch <wk@g10code.com>
545 * gpgsm.c: Remove all unused options. Use ARGPARSE macros.
547 2008-10-28 Werner Koch <wk@g10code.com>
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.
556 2008-10-23 Werner Koch <wk@g10code.com>
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.
562 2008-10-21 Werner Koch <wk@g10code.com>
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.
568 * call-agent.c (gpgsm_agent_istrusted): Add new optional arg
569 HEXFPR. Changed all callers.
571 2008-10-20 Werner Koch <wk@g10code.com>
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.
587 * gpgsm.c (set_binary) [!W32]: Mark unused arg.
589 2008-10-17 Werner Koch <wk@g10code.com>
591 * call-dirmngr.c (start_dirmngr, start_dirmngr2): Reset the lock
593 (release_dirmngr, release_dirmngr2): Replace asserts by error messages.
594 (gpgsm_dirmngr_lookup): Replace assert by fatal error message.
596 2008-10-13 Werner Koch <wk@g10code.com>
598 * gpgsm.c: Add alias --delete-keys.
600 2008-09-30 Werner Koch <wk@g10code.com>
602 * server.c (cmd_getinfo): New subcommand agent-check.
603 * call-agent.c (gpgsm_agent_send_nop): New.
605 2008-09-29 Werner Koch <wk@g10code.com>
607 * certcheck.c (MY_GCRY_PK_ECDSA): Remove. Change users to
609 * gpgsm.c (MY_GCRY_PK_ECDSA): Ditto.
610 * sign.c (MY_GCRY_MD_SHA224): Remove change users to GCRY_MD_SHA224.
612 2008-09-04 Werner Koch <wk@g10code.com>
614 * certdump.c (gpgsm_format_keydesc): Work around a mingw32 bug.
616 2008-09-03 Werner Koch <wk@g10code.com>
618 * sign.c (MY_GCRY_MD_SHA224): New, so that we don't need libgcrypt
621 2008-08-13 Werner Koch <wk@g10code.com>
623 * keylist.c (list_cert_colon): Print 'f' for validated certs.
625 2008-08-08 Marcus Brinkmann <marcus@g10code.de>
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
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.
640 2008-06-25 Werner Koch <wk@g10code.com>
642 * sign.c (gpgsm_sign): Revamp the hash algorithm selection.
643 * gpgsm.h (struct certlist_s): Add field HASH_ALGO and HASH_ALGO_OID.
645 * qualified.c (gpgsm_qualified_consent): Fix double free.
647 * gpgsm.c (main): Change default cipher algo to AES.
649 * keylist.c (print_utf8_extn_raw, print_utf8_extn): New.
650 (list_cert_raw, list_cert_std): Print the TeleSec restriction
653 2008-06-23 Werner Koch <wk@g10code.com>
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.
659 2008-06-13 Marcus Brinkmann <marcus@ulysses.g10code.com>
661 * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
663 2008-06-12 Marcus Brinkmann <marcus@g10code.de>
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.
671 2008-05-20 Werner Koch <wk@g10code.com>
673 * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
674 the export function. Reported by Marc Mutz.
676 2008-05-06 Werner Koch <wk@g10code.com>
678 * keylist.c (list_external_keys): Ignore NOT FOUND error code.
681 2008-04-23 Werner Koch <wk@g10code.com>
683 * certchain.c (find_up): Make correct C89 code. Declare variable
684 at the top of the block. Reported by Alain Guibert.
686 2008-04-09 Werner Koch <wk@g10code.com>
688 * verify.c (gpgsm_verify): Print the message hash values on error.
690 2008-03-31 Werner Koch <wk@g10code.com>
692 * call-dirmngr.c (start_dirmngr): Use log_info instead of
693 log_error when falling back to start dirmngr.
695 2008-03-20 Werner Koch <wk@g10code.com>
697 * certlist.c (gpgsm_add_to_certlist): Always save the first
698 subject and issuer. Initialize issuer with issuer and not with
700 (same_subject_issuer): Set issuer2 to issuer and not to subject.
702 2008-03-17 Werner Koch <wk@g10code.com>
704 * certdump.c (my_funopen_hook_size_t): New.
705 (format_name_writer): Use it.
707 2008-03-13 Werner Koch <wk@g10code.com>
709 * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
711 (gpgsm_format_keydesc): Remove superfluous test. Add expire date
714 2008-02-18 Werner Koch <wk@g10code.com>
716 * certchain.c (gpgsm_is_root_cert): Factor code out to ...
717 (is_root_cert): New. Extend test for self-issued certificates
719 (do_validate_chain, gpgsm_basic_cert_check)
720 (gpgsm_walk_cert_chain): Use it here.
722 * gpgsm.c: Add option --no-common-certs-import.
724 * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
725 (check_cert_policy): Be more silent with --quiet.
727 * gpgsm.c: Add option --disable-dirmngr.
728 * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
729 * call-dirmngr.c (start_dirmngr): Implement option.
731 2008-02-14 Werner Koch <wk@g10code.com>
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.
744 2008-02-13 Werner Koch <wk@g10code.com>
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
753 * call-agent.c (struct learn_parm_s): Add field CTRL.
754 (gpgsm_agent_learn): Set it.
756 2008-02-11 Werner Koch <wk@g10code.com>
758 * server.c (cmd_getinfo): New.
759 (gpgsm_server): Register GETINFO.
761 2008-01-29 Marcus Brinkmann <marcus@g10code.de>
763 * keylist.c (list_internal_keys): New variable lastcert. Use it
764 to suppress duplicates which immediately follow each other.
766 2008-01-27 Werner Koch <wk@g10code.com>
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.
772 2007-12-13 Werner Koch <wk@g10code.com>
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
779 2007-12-11 Werner Koch <wk@g10code.com>
781 * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
783 * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
784 (cmd_recipient): Start audit session.
786 * gpgsm.c (main): Revamp creation of the audit log.
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
792 (prepare_dirmngr): New helper for start_dirmngr.
794 * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
796 2007-12-03 Werner Koch <wk@g10code.com>
798 * gpgsm.c (main): Call gnupg_reopen_std.
800 h2007-11-22 Werner Koch <wk@g10code.com>
802 * server.c (cmd_getauditlog): New.
803 (register_commands): Register GETAUDITLOG.
805 2007-11-19 Werner Koch <wk@g10code.com>
807 * server.c (cmd_recipient, cmd_signer): Add error reason 11.
809 * gpgsm.c (main): Print a warning if --audit-log is used.
811 2007-11-15 Werner Koch <wk@g10code.com>
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.
819 2007-11-07 Werner Koch <wk@g10code.com>
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.
827 * gpgsm.h (struct server_control_s): Add member AUDIT, include
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.
833 * gpgsm.c (get_status_string): Remove.
834 * gpgsm.h: Include status.h instead of errors.h.
836 2007-10-19 Werner Koch <wk@g10code.com>
838 * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
839 (gpgsm_not_qualified_warning): Ditto.
840 * certdump.c (gpgsm_format_keydesc): Ditto.
842 2007-09-14 Werner Koch <wk@g10code.com>
844 * gpgsm.c (build_lib_list): New.
845 (my_strusage): Print lib info.
847 2007-08-24 Werner Koch <wk@g10code.com>
849 * Makefile.am (common_libs): Swap libkeybox and jnlib.
851 2007-08-23 Werner Koch <wk@g10code.com>
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.
859 2007-08-22 Werner Koch <wk@g10code.com>
861 * certreqgen.c (create_request): Replace open coding by bin2hex.
863 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
865 2007-08-21 Werner Koch <wk@g10code.com>
867 * import.c (parse_p12): Use gnupg_tmpfile.
868 * export.c (export_p12): Ditto.
870 2007-08-20 Werner Koch <wk@g10code.com>
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.
878 2007-08-14 Werner Koch <wk@g10code.com>
880 * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name. change
881 the way infostr is xstrdupped.
883 * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
886 2007-08-13 Werner Koch <wk@g10code.com>
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.
894 2007-08-09 Werner Koch <wk@g10code.com>
896 * gpgsm.c (main) [W32]: Enable CRL check by default.
897 (main): Update the default control structure after reading the
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.
904 * certchain.c (is_cert_still_valid): Reformatted. Add arg
905 FORCE_OCSP. Changed callers to set this flag when using the chain
908 2007-08-08 Werner Koch <wk@g10code.com>
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.
913 * keylist.c (list_cert_raw): Print the certificate ID first and
914 rename "Serial number" to "S/N".
915 (list_cert_std): Ditto.
917 2007-08-07 Werner Koch <wk@g10code.com>
919 * gpgsm.c (main): Allow a string for --faked-system-time.
921 2007-08-06 Werner Koch <wk@g10code.com>
923 Implementation of the chain model.
925 * gpgsm.h (struct rootca_flags_s): Define new members VALID and
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
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.
943 * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
944 (VALIDATE_FLAG_NO_DIRMNGR): New.
945 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
947 2007-08-03 Werner Koch <wk@g10code.com>
949 * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
952 * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
954 * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
956 2007-08-02 Werner Koch <wk@g10code.com>
958 * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
960 2007-07-17 Werner Koch <wk@g10code.com>
962 * gpgsm.c (main): Implement --default-key.
963 (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
965 2007-07-16 Werner Koch <wk@g10code.com>
967 * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
968 newer assuan versions.
970 2007-07-12 Werner Koch <wk@g10code.com>
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.
977 2007-07-05 Werner Koch <wk@g10code.com>
979 * Makefile.am (common_libs): Changed order of libs.
981 2007-07-04 Werner Koch <wk@g10code.com>
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.
988 2007-06-26 Werner Koch <wk@g10code.com>
990 * gpgsm.c (main): Call gnupg_rl_initialize.
991 * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
993 2007-06-25 Werner Koch <wk@g10code.com>
995 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
996 add new arg FOR_WRITE. Change callers to pass new arg.
998 2007-06-24 Werner Koch <wk@g10code.com>
1000 * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
1003 2007-06-21 Werner Koch <wk@g10code.com>
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
1010 * gpgsm.h (ctrl_t): Remove. It is now declared in ../common/util.h.
1012 * call-agent.c (start_agent): Factored almost all code out to
1013 ../common/asshelp.c.
1015 2007-06-20 Werner Koch <wk@g10code.com>
1017 * call-agent.c (start_agent) [W32]: Start the agent on the fly.
1019 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
1021 * gpgsm.c (main): Percent escape output of --gpgconf-list.
1023 2007-06-14 Werner Koch <wk@g10code.com>
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.
1031 2007-06-12 Werner Koch <wk@g10code.com>
1033 * gpgsm.c (main): Replace some calls by init_common_subsystems.
1034 (main): Use gnupg_datadir.
1035 * qualified.c (read_list): Use gnupg-datadir.
1037 2007-06-11 Werner Koch <wk@g10code.com>
1039 * Makefile.am (common_libs): Use libcommaonstd macr.
1041 * gpgsm.c (main) [W32]: Call pth_init.
1043 2007-06-06 Werner Koch <wk@g10code.com>
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
1049 (format_name_writer): Define only if funopen et al is available.
1051 * gpgsm.c (i18n_init): Remove.
1053 2007-05-29 Werner Koch <wk@g10code.com>
1055 * export.c (gpgsm_p12_export): Print passphrase encoding info only
1058 2007-05-18 Marcus Brinkmann <marcus@g10code.de>
1060 * qualified.c (gpgsm_qualified_consent,
1061 gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
1062 * certdump.c (gpgsm_format_keydesc): Likewise.
1064 2007-05-07 Werner Koch <wk@g10code.com>
1066 * certcheck.c (MY_GCRY_PK_ECDSA): New.
1068 2007-04-20 Werner Koch <wk@g10code.com>
1070 * gpgsm.c (main): Parameterize failed versions check messages.
1072 2007-04-19 Werner Koch <wk@g10code.com>
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,
1080 2007-04-18 Werner Koch <wk@g10code.com>
1082 * certcheck.c (do_encode_md): Support 160 bit ECDSA.
1084 2007-04-13 Werner Koch <wk@g10code.com>
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.
1089 2007-03-20 Werner Koch <wk@g10code.com>
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.
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.
1103 * gpgsm.c: Add option --p12-charset.
1104 * gpgsm.h (struct opt): Add p12_charset.
1105 * export.c (popen_protect_tool): Use new option.
1107 2007-03-19 Werner Koch <wk@g10code.com>
1109 Changes to let export and key listing use estream to help systems
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.
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
1127 (do_list, unknown_criticals, allowed_ca, check_cert_policy)
1128 (is_cert_still_valid): Ditto.
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.
1141 2007-01-31 Werner Koch <wk@g10code.com>
1143 * gpgsm.c (main): Let --gen-key print a more informative error
1146 2007-01-25 Werner Koch <wk@g10code.com>
1148 * Makefile.am (gpgsm_LDADD): Add LIBICONV. Noted by Billy Halsey.
1150 2007-01-05 Werner Koch <wk@g10code.com>
1152 * certchain.c (unknown_criticals): Add subjectAltName.
1154 2006-12-21 Werner Koch <wk@g10code.com>
1156 * gpgsm.c: Comment mtrace feature.
1158 2006-12-21 Marcus Brinkmann <marcus@g10code.de>
1160 * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
1162 * encrypt.c (encrypt_dek): Release S_CIPH.
1164 2006-12-20 Marcus Brinkmann <marcus@g10code.de>
1166 * server.c (gpgsm_server): Release CTRL->server_local.
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
1172 (gpgsm_create_writer): Initialise CTX->u2.writer.
1173 (gpgsm_destroy_writer): Invoke ksba_writer_release. Return early
1176 2006-12-18 Marcus Brinkmann <marcus@g10code.de>
1178 * fingerprint.c (gpgsm_get_fingerprint): Close MD.
1180 2006-11-24 Werner Koch <wk@g10code.com>
1182 * certdump.c (parse_dn_part): Take '#' as a special character only
1183 at the beginning of a string.
1185 2006-11-21 Werner Koch <wk@g10code.com>
1187 * certdump.c (my_funopen_hook_ret_t): New.
1188 (format_name_writer): Use it for the return value.
1190 2006-11-14 Werner Koch <wk@g10code.com>
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
1197 * certdump.c (gpgsm_fpr_and_name_for_status): New.
1198 * verify.c (gpgsm_verify): Use it to print correct status messages.
1200 2006-11-11 Werner Koch <wk@g10code.com>
1202 * server.c (skip_options): New.
1204 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
1206 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
1208 2006-10-23 Werner Koch <wk@g10code.com>
1210 * gpgsm.c (main): Remap common cipher algo names to their OIDs.
1211 (main): New command --gpgconf-test.
1213 2006-10-20 Werner Koch <wk@g10code.com>
1215 * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
1217 2006-10-18 Werner Koch <wk@g10code.com>
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.
1224 * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
1225 chain length available.
1227 2006-10-17 Werner Koch <wk@g10code.com>
1229 * gpgsm.c: No need for pth.h.
1230 (main): or to init it. It used to be hack for W32.
1232 * sign.c (gpgsm_get_default_cert): Changed to return only
1233 certificates usable for signing.
1235 2006-10-16 Werner Koch <wk@g10code.com>
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.
1242 2006-10-11 Werner Koch <wk@g10code.com>
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.
1249 2006-10-06 Werner Koch <wk@g10code.com>
1251 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1252 (gpgsm_LDADD): Ditto.
1254 2006-10-05 Werner Koch <wk@g10code.com>
1256 * certcheck.c (do_encode_md): Check that the has algo is valid.
1258 2006-10-02 Marcus Brinkmann <marcus@g10code.de>
1260 * server.c (register_commands): New commands DUMPKEYS and
1262 (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
1263 (option_handler): Support with-key-data option.
1265 2006-09-26 Werner Koch <wk@g10code.com>
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.
1271 2006-09-25 Werner Koch <wk@g10code.com>
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.
1281 2006-09-20 Werner Koch <wk@g10code.com>
1283 * gpgsm.c: Add alias command --dump-cert.
1285 * Makefile.am: Changes to allow parallel make runs.
1287 2006-09-18 Werner Koch <wk@g10code.com>
1289 * gpgsm.c (main): Use this to import standard certificates.
1290 * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
1292 2006-09-14 Werner Koch <wk@g10code.com>
1294 Replaced all call gpg_error_from_errno(errno) by
1295 gpg_error_from_syserror().
1297 2006-09-13 Werner Koch <wk@g10code.com>
1299 * keylist.c (list_internal_keys): Print marker line to FP and not
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.
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.
1311 2006-09-06 Werner Koch <wk@g10code.com>
1313 * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
1315 (CTRL): Removed and changed everywhere to ctrl_t.
1318 Replaced all Assuan error codes by libgpg-error codes. Removed
1319 all map_to_assuan_status and map_assuan_err.
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.
1325 2006-08-29 Werner Koch <wk@g10code.com>
1327 * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
1328 complete S-expressions as implemented by the current gpg-agent.
1330 * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
1333 2006-07-03 Werner Koch <wk@g10code.com>
1335 * certreqgen.c (proc_parameters): Print the component label of a
1338 2006-06-26 Werner Koch <wk@g10code.com>
1340 * certdump.c (gpgsm_cert_log_name): New.
1341 * certchain.c (is_cert_still_valid): Log the name of the certificate.
1343 2006-06-20 Werner Koch <wk@g10code.com>
1345 * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
1346 option --include-certs.
1348 * keylist.c (list_cert_raw): Print the certid.
1350 2006-05-23 Werner Koch <wk@g10code.com>
1352 * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
1354 * Makefile.am (gpgsm_LDADD): Include ZLIBS.
1356 2006-05-19 Marcus Brinkmann <marcus@g10code.de>
1358 * keydb.c (keydb_insert_cert): Do not lock here, but only check if
1360 (keydb_store_cert): Lock here.
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
1367 2006-05-15 Werner Koch <wk@g10code.com>
1369 * keylist.c (print_names_raw): Sanitize URI.
1371 2006-03-21 Werner Koch <wk@g10code.com>
1373 * certchain.c (get_regtp_ca_info): New.
1374 (allowed_ca): Use it.
1376 2006-03-20 Werner Koch <wk@g10code.com>
1378 * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
1380 2006-02-17 Werner Koch <wk@g10code.com>
1382 * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
1384 2005-11-23 Werner Koch <wk@g10code.com>
1386 * gpgsm.h: New member QUALSIG_APPROVAL.
1387 * sign.c (gpgsm_sign): Print a warning if a certificate is not
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
1395 2005-11-13 Werner Koch <wk@g10code.com>
1397 * call-agent.c (gpgsm_agent_get_confirmation): New.
1399 * keylist.c (list_cert_std): Print qualified status.
1401 * certchain.c (gpgsm_validate_chain): Check for qualified
1404 * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
1405 no-chain-validation is used.
1407 2005-11-11 Werner Koch <wk@g10code.com>
1409 * keylist.c (print_capabilities): Print is_qualified status.
1411 2005-10-28 Werner Koch <wk@g10code.com>
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.
1417 2005-10-10 Werner Koch <wk@g10code.com>
1419 * keylist.c: Add pkaAdress OID as reference.
1421 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
1423 * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
1424 ../common/libcommon.a.
1426 2005-09-13 Werner Koch <wk@g10code.com>
1428 * verify.c (gpgsm_verify): Print a note if the unknown algorithm
1430 * sign.c (gpgsm_sign): Ditto.
1431 * certcheck.c (gpgsm_check_cert_sig): Ditto.
1433 2005-09-08 Werner Koch <wk@g10code.com>
1435 * export.c (popen_protect_tool): Add option --have-cert. We
1436 probably lost this option with 1.9.14 due to restructuring of
1439 2005-07-21 Werner Koch <wk@g10code.com>
1441 * gpgsm.c (main): New options --no-log-file and --debug-none.
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.
1447 2005-07-20 Werner Koch <wk@g10code.com>
1449 * keylist.c (email_kludge): Reworked.
1451 * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
1453 * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
1455 2005-07-19 Werner Koch <wk@g10code.com>
1457 * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
1458 Bug accidently introduced while solving the #$%^& gcc
1459 signed/unsigned char* warnings.
1461 2005-06-15 Werner Koch <wk@g10code.com>
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.
1493 2005-06-01 Werner Koch <wk@g10code.com>
1495 * misc.c: Include setenv.h.
1497 2005-04-21 Werner Koch <wk@g10code.com>
1499 * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
1500 * certchain.c (gpgsm_validate_chain): Make use of it.
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.
1506 2005-04-20 Werner Koch <wk@g10code.com>
1508 * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
1510 2005-04-19 Werner Koch <wk@g10code.com>
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
1516 2005-04-17 Werner Koch <wk@g10code.com>
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.
1522 * certchain.c (find_up_search_by_keyid): New helper.
1523 (find_up): Also try using the AKI.keyIdentifier.
1524 (find_up_external): Ditto.
1526 2005-04-15 Werner Koch <wk@g10code.com>
1528 * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
1529 well as the keyIdentifier part of the authorityKeyIdentifier.
1531 2005-03-31 Werner Koch <wk@g10code.com>
1533 * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
1534 * call-agent.c (start_agent): Ditto.
1536 2005-03-17 Werner Koch <wk@g10code.com>
1538 * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
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.
1546 2005-03-03 Werner Koch <wk@g10code.com>
1548 * Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
1550 2005-01-13 Werner Koch <wk@g10code.com>
1552 * certreqgen.c (proc_parameters): Cast printf arg.
1554 2004-12-22 Werner Koch <wk@g10code.com>
1556 * gpgsm.c (set_binary): New.
1557 (main, open_read, open_fwrite): Use it.
1559 2004-12-21 Werner Koch <wk@g10code.com>
1561 * gpgsm.c (main): Use default_homedir().
1562 (main) [W32]: Default to disabled CRL checks.
1564 2004-12-20 Werner Koch <wk@g10code.com>
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.
1570 * import.c: Include unistd.h for dup and close.
1572 2004-12-18 Werner Koch <wk@g10code.com>
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.
1579 2004-12-17 Werner Koch <wk@g10code.com>
1581 * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
1582 (run_command_status_cb): Return cancel status if gpgsm_status
1585 * server.c (gpgsm_status, gpgsm_status2)
1586 (gpgsm_status_with_err_code): Return an error code.
1587 (gpgsm_status2): Always call va_end().
1589 2004-12-15 Werner Koch <wk@g10code.com>
1591 * call-dirmngr.c (lookup_status_cb): Send progress messages
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.
1598 * misc.c (setup_pinentry_env) [W32]: Don't use it.
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.
1604 * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
1606 2004-12-07 Werner Koch <wk@g10code.com>
1608 * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
1609 under W32 we need the w32 pth code from jnlib.
1611 * misc.c (setup_pinentry_env) [W32]: Disabled.
1613 2004-12-06 Werner Koch <wk@g10code.com>
1615 * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
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.
1623 * keydb.c: Don't define DIRSEP_S here.
1625 2004-12-02 Werner Koch <wk@g10code.com>
1627 * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
1628 signature for debugging.
1629 (gpgsm_validate_chain): Ditto.
1631 2004-11-29 Werner Koch <wk@g10code.com>
1633 * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
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.
1638 2004-11-23 Werner Koch <wk@g10code.com>
1640 * gpgsm.c: New option --prefer-system-dirmngr.
1641 * call-dirmngr.c (start_dirmngr): Implement this option.
1643 2004-10-22 Werner Koch <wk@g10code.com>
1645 * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
1646 request PEM header. This is according to the Sphinx standard.
1648 2004-10-08 Moritz Schulte <moritz@g10code.com>
1650 * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
1651 case the no_chain_validation-return-short-cut is used (fixes
1654 2004-10-04 Werner Koch <wk@g10code.com>
1656 * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1658 2004-09-30 Werner Koch <wk@g10code.com>
1660 * gpgsm.c (i18n_init): Always use LC_ALL.
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
1672 * Makefile.am: Adjusted for gettext 0.14.
1674 * keylist.c (list_cert_colon): Make sure that the expired flag has
1675 a higher precedence than the invalid flag.
1677 2004-09-29 Werner Koch <wk@g10code.com>
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.
1683 2004-09-14 Werner Koch <wk@g10code.com>
1685 * certchain.c (gpgsm_validate_chain): Give expired certificates a
1686 higher error precedence and don't bother to check any CRL in that
1689 2004-08-24 Werner Koch <wk@g10code.de>
1691 * certlist.c: Fixed typo in ocsp OID.
1693 2004-08-18 Werner Koch <wk@g10code.de>
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.
1699 2004-08-17 Marcus Brinkmann <marcus@g10code.de>
1701 * import.c: Fix typo in last change.
1703 2004-08-17 Werner Koch <wk@g10code.de>
1705 * import.c (check_and_store): Do a full validation if
1706 --with-validation is set.
1708 * certchain.c (gpgsm_basic_cert_check): Print more detailed error
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.
1715 2004-08-16 Werner Koch <wk@g10code.de>
1717 * gpgsm.c: New option --fixed-passphrase.
1718 * import.c (popen_protect_tool): Pass it to the protect-tool.
1720 * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1721 for encrypt-to keys.
1723 2004-08-06 Werner Koch <wk@g10code.com>
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.
1730 2004-07-23 Werner Koch <wk@g10code.de>
1732 * certreqgen.c (proc_parameters): Do not allow key length below
1735 2004-07-22 Werner Koch <wk@g10code.de>
1737 * keylist.c (list_cert_raw): Print the keygrip.
1739 2004-07-20 Werner Koch <wk@gnupg.org>
1741 * certchain.c (gpgsm_validate_chain): The trust check didn't
1742 worked anymore, probably due to the changes at 2003-03-04. Fixed.
1744 2004-06-06 Werner Koch <wk@gnupg.org>
1746 * certreqgen.c (get_parameter_uint, create_request): Create
1747 an extension for key usage when requested.
1749 2004-05-12 Werner Koch <wk@gnupg.org>
1751 * gpgsm.c (main): Install emergency_cleanup also as an atexit
1754 * verify.c (gpgsm_verify): Removed the separate error code
1755 handling for KSBA. We use shared error codes anyway.
1757 * export.c (export_p12): Removed debugging code.
1759 * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1761 2004-05-11 Werner Koch <wk@gnupg.org>
1763 * sign.c (gpgsm_sign): Include the error source in the final error
1765 * decrypt.c (gpgsm_decrypt): Ditto.
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
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.
1775 * gpgsm.c: New option --debug-allow-core-dump.
1777 * gpgsm.h (opt): Add member CONFIG_FILENAME.
1778 * gpgsm.c (main): Use it here instead of the local var.
1780 * server.c (gpgsm_server): Print some additional information with
1781 the hello in verbose mode.
1783 2004-04-30 Werner Koch <wk@gnupg.org>
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.
1791 2004-04-28 Werner Koch <wk@gnupg.org>
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.
1798 2004-04-26 Werner Koch <wk@gnupg.org>
1800 * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
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
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.
1815 2004-04-23 Werner Koch <wk@gnupg.org>
1817 * keydb.c (keydb_add_resource): Try to compress the file on init.
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
1824 2004-04-22 Werner Koch <wk@gnupg.org>
1826 * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1829 2004-04-13 Werner Koch <wk@gnupg.org>
1831 * misc.c (setup_pinentry_env): New.
1832 * import.c (popen_protect_tool): Call it.
1833 * export.c (popen_protect_tool): Call it.
1835 2004-04-08 Werner Koch <wk@gnupg.org>
1837 * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
1840 2004-04-07 Werner Koch <wk@gnupg.org>
1842 * gpgsm.c: New option --force-crl-refresh.
1843 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1845 2004-04-05 Werner Koch <wk@gnupg.org>
1847 * server.c (get_status_string): Add STATUS_NEWSIG.
1848 * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
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.
1853 2004-04-01 Werner Koch <wk@gnupg.org>
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
1862 2004-03-24 Werner Koch <wk@gnupg.org>
1864 * sign.c (gpgsm_sign): Include a short list of capabilities.
1866 2004-03-17 Werner Koch <wk@gnupg.org>
1868 * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1870 2004-03-16 Werner Koch <wk@gnupg.org>
1872 * gpgsm.c (main): Implemented --gpgconf-list.
1874 2004-03-15 Werner Koch <wk@gnupg.org>
1876 * keylist.c (list_cert_colon): Hack to set the expired flag.
1878 2004-03-09 Werner Koch <wk@gnupg.org>
1880 * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1882 * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1884 2004-03-04 Werner Koch <wk@gnupg.org>
1886 * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
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.
1893 2004-03-03 Werner Koch <wk@gnupg.org>
1895 * call-agent.c (start_agent): Replaced pinentry setup code by a
1896 call to a new common function.
1898 * certdump.c (gpgsm_format_keydesc): Make sure the string is
1901 * export.c (gpgsm_export): Make sure that we don't export more
1902 than one certificate.
1904 2004-03-02 Werner Koch <wk@gnupg.org>
1906 * export.c (create_duptable, destroy_duptable)
1907 (insert_duptable): New.
1908 (gpgsm_export): Avoid duplicates.
1910 2004-02-26 Werner Koch <wk@gnupg.org>
1912 * certchain.c (compare_certs): New.
1913 (gpgsm_validate_chain): Fixed infinite certificate checks after
1916 2004-02-24 Werner Koch <wk@gnupg.org>
1918 * keylist.c (list_cert_colon): Print the fingerprint as the
1919 cert-id for root certificates.
1921 2004-02-21 Werner Koch <wk@gnupg.org>
1923 * keylist.c (list_internal_keys): Return error codes.
1924 (list_external_keys, gpgsm_list_keys): Ditto.
1925 * server.c (do_listkeys): Ditto.
1927 * gpgsm.c (main): Display a key description for --passwd.
1928 * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1930 2004-02-20 Werner Koch <wk@gnupg.org>
1932 * gpgsm.c (main): New option --debug-ignore-expiration.
1933 * certchain.c (gpgsm_validate_chain): Use it here.
1935 * certlist.c (cert_usage_p): Apply extKeyUsage.
1937 2004-02-19 Werner Koch <wk@gnupg.org>
1939 * export.c (export_p12, popen_protect_tool)
1940 (gpgsm_p12_export): New.
1941 * gpgsm.c (main): New command --export-secret-key-p12.
1943 2004-02-18 Werner Koch <wk@gnupg.org>
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.
1950 * keydb.c (keydb_add_resource): Print a hint to start the
1953 2004-02-17 Werner Koch <wk@gnupg.org>
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.
1959 * gpgsm.c: New option --with-md5-fingerprint.
1960 * keylist.c (list_cert_std): Print MD5 fpr.
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
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.
1980 2004-02-13 Werner Koch <wk@gnupg.org>
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.
1992 * encrypt.c (init_dek): Check for too weak algorithms.
1994 * import.c (parse_p12, popen_protect_tool): New.
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.
2003 2004-02-12 Werner Koch <wk@gnupg.org>
2005 * gpgsm.h, gpgsm.c: New option --protect-tool-program.
2006 * gpgsm.c (run_protect_tool): Use it.
2008 2004-02-11 Werner Koch <wk@gnupg.org>
2010 * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
2011 will allow to override directory names at make time.
2013 2004-02-02 Werner Koch <wk@gnupg.org>
2015 * import.c (check_and_store): Import certificates even with
2016 missing issuer's cert. Fixed an "depending on the verbose
2019 * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
2022 * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
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.
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.
2034 2004-01-30 Werner Koch <wk@gnupg.org>
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.
2040 * sign.c (add_certificate_list): Decrement N for the first cert.
2042 2004-01-29 Werner Koch <wk@gnupg.org>
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
2048 2004-01-28 Werner Koch <wk@gnupg.org>
2050 * certchain.c (gpgsm_validate_chain): Changed the message printed
2051 for an untrusted root certificate.
2053 2004-01-27 Werner Koch <wk@gnupg.org>
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
2059 (print_dn_parts): Simplified.
2061 2004-01-16 Werner Koch <wk@gnupg.org>
2063 * sign.c (gpgsm_sign): Print an error message on all failures.
2064 * decrypt.c (gpgsm_decrypt): Ditto.
2066 2003-12-17 Werner Koch <wk@gnupg.org>
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
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.
2081 * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
2082 (gpgsm_dump_serial): Ditto.
2084 * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
2086 2003-12-16 Werner Koch <wk@gnupg.org>
2088 * gpgsm.c (main): Set the prefixes for assuan logging.
2090 * sign.c (gpgsm_sign): Add validation checks for the default
2093 * gpgsm.c: Add -k as alias for --list-keys and -K for
2096 2003-12-15 Werner Koch <wk@gnupg.org>
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.
2102 2003-12-01 Werner Koch <wk@gnupg.org>
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.
2110 2003-11-19 Werner Koch <wk@gnupg.org>
2112 * verify.c (gpgsm_verify): Use "0" instead of an empty string for
2113 the VALIDSIG status.
2115 2003-11-18 Werner Koch <wk@gnupg.org>
2117 * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
2119 * certchain.c (unknown_criticals): Fixed an error code test.
2121 2003-11-12 Werner Koch <wk@gnupg.org>
2123 Adjusted for API changes in Libksba.
2125 2003-10-31 Werner Koch <wk@gnupg.org>
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):
2134 2003-10-25 Werner Koch <wk@gnupg.org>
2136 * certreqgen.c (read_parameters): Fixed faulty of !spacep().
2138 2003-08-20 Marcus Brinkmann <marcus@g10code.de>
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.
2144 2003-08-14 Timo Schulz <twoaday@freakmail.de>
2146 * encrypt.c (encode_session_key): Use new Libgcrypt interface.
2148 2003-07-31 Werner Koch <wk@gnupg.org>
2150 * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
2152 2003-07-29 Werner Koch <wk@gnupg.org>
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.
2157 2003-07-27 Werner Koch <wk@gnupg.org>
2159 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
2161 2003-06-24 Werner Koch <wk@gnupg.org>
2163 * server.c (gpgsm_status_with_err_code): New.
2164 * verify.c (gpgsm_verify): Use it here instead of the old
2167 * verify.c (strtimestamp): Renamed to strtimestamp_r
2169 Adjusted for changes in the libgcrypt API. Some more fixes for the
2172 2003-06-04 Werner Koch <wk@gnupg.org>
2174 * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
2175 Include new membuf header and changed used type.
2177 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
2179 2003-06-03 Werner Koch <wk@gnupg.org>
2181 Changed all error codes in all files to the new libgpg-error scheme.
2183 * gpgsm.h: Include gpg-error.h .
2184 * Makefile.am: Link with libgpg-error.
2186 2003-04-29 Werner Koch <wk@gnupg.org>
2188 * Makefile.am: Use libassuan. Don't override LDFLAGS anymore.
2189 * server.c (register_commands): Adjust for new Assuan semantics.
2191 2002-12-03 Werner Koch <wk@gnupg.org>
2193 * call-agent.c (gpgsm_agent_passwd): New.
2194 * gpgsm.c (main): New command --passwd and --call-protect-tool
2195 (run_protect_tool): New.
2197 2002-11-25 Werner Koch <wk@gnupg.org>
2199 * verify.c (gpgsm_verify): Handle content-type attribute.
2201 2002-11-13 Werner Koch <wk@gnupg.org>
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.
2207 2002-11-12 Werner Koch <wk@gnupg.org>
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.
2214 2002-11-11 Werner Koch <wk@gnupg.org>
2216 * certcheck.c (gpgsm_check_cms_signature): Don't double free
2217 s_sig but free s_pkey at leave.
2219 2002-11-10 Werner Koch <wk@gnupg.org>
2221 * gpgsm.c: Removed duplicate --list-secret-key entry.
2223 2002-09-19 Werner Koch <wk@gnupg.org>
2225 * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
2227 * certchain.c (find_up): Print info when the cert was not found
2228 by the autorithyKeyIdentifier.
2230 2002-09-03 Werner Koch <wk@gnupg.org>
2232 * gpgsm.c (main): Disable the internal libgcrypt locking.
2234 2002-08-21 Werner Koch <wk@gnupg.org>
2236 * import.c (print_imported_summary): Cleaned up. Print new
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.
2243 2002-08-20 Werner Koch <wk@gnupg.org>
2245 * gpgsm.c (main): Use the log file only in server mode.
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.
2254 2002-08-19 Werner Koch <wk@gnupg.org>
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.
2261 2002-08-16 Werner Koch <wk@gnupg.org>
2263 * certpath.c: Renamed to ..
2264 * certchain.c: this. Renamed all all other usages of "path" in the
2265 context of certificates to "chain".
2267 * call-agent.c (learn_cb): Special treatment when the issuer
2268 certificate is missing.
2270 2002-08-10 Werner Koch <wk@gnupg.org>
2272 * Makefile.am (INCLUDES): Add definition for localedir.
2274 * keylist.c (list_cert_colon): Print the short fingerprint in the
2276 * fingerprint.c (gpgsm_get_short_fingerprint): New.
2277 * verify.c (gpgsm_verify): Print more verbose info for a good
2280 2002-08-09 Werner Koch <wk@gnupg.org>
2282 * decrypt.c (prepare_decryption): Hack to detected already
2285 * gpgsm.c (emergency_cleanup): New.
2286 (main): Initialize the signal handler.
2288 * sign.c (gpgsm_sign): Reset the hash context for subsequent
2289 signers and release it at the end.
2291 2002-08-05 Werner Koch <wk@gnupg.org>
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
2300 * gpgsm.c (main): Support more than one -u.
2302 * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
2303 which is actually what gets returned from add_to_certlist.
2305 2002-07-26 Werner Koch <wk@gnupg.org>
2307 * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
2308 (gpgsm_check_cms_signature): Ditto.
2310 2002-07-22 Werner Koch <wk@gnupg.org>
2312 * keydb.c (keydb_add_resource): Register a lock file.
2313 (lock_all, unlock_all): Implemented.
2316 * gpgsm.c: Made --delete-key work.
2317 * server.c (cmd_delkeys): New.
2318 (register_commands): New command DELKEYS.
2320 * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
2321 used and a STATUS_ERROR with the algorithm oid.
2323 2002-07-03 Werner Koch <wk@gnupg.org>
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.
2331 2002-07-02 Werner Koch <wk@gnupg.org>
2333 * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
2336 * certpath.c (check_cert_policy): Don't use log_error to print a
2339 * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
2341 * call-agent.c (learn_cb): Print info message only for real imports.
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
2347 (print_imported_status): New.
2349 * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
2350 call in very verbose mode.
2352 * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
2353 with the server mode.
2355 2002-06-29 Werner Koch <wk@gnupg.org>
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.
2362 * keydb.c (keydb_set_ephemeral): Does now return the old
2363 state. Call the backend only when required.
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.
2369 * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
2371 2002-06-28 Werner Koch <wk@gnupg.org>
2373 * server.c (cmd_recipient): Add more reason codes.
2375 2002-06-27 Werner Koch <wk@gnupg.org>
2377 * certpath.c (gpgsm_basic_cert_check): Use
2378 --debug-no-path-validation to also bypass this basic check.
2380 * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
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.
2386 2002-06-26 Werner Koch <wk@gnupg.org>
2388 * import.c (gpgsm_import): Print an STATUS_IMPORTED.
2390 * gpgsm.c: --debug-no-path-validation does not take an argument.
2392 2002-06-25 Werner Koch <wk@gnupg.org>
2394 * certdump.c (print_dn_part): Always print a leading slash,
2395 removed NEED_DELIM arg and changed caller.
2397 * export.c (gpgsm_export): Print LFs to FP and not stdout.
2398 (print_short_info): Ditto. Make use of gpgsm_print_name.
2400 * server.c (cmd_export): Use output-fd instead of data lines; this
2401 was actually the specified way.
2403 2002-06-24 Werner Koch <wk@gnupg.org>
2405 * gpgsm.c: Removed duped help entry for --list-keys.
2407 * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
2409 * certpath.c (gpgsm_validate_path): Use it here instead of the
2412 * certpath.c (check_cert_policy): Return No_Policy_Match if the
2413 policy file could not be opened.
2415 2002-06-20 Werner Koch <wk@gnupg.org>
2417 * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
2418 certificate with the required key usage.
2420 * gpgsm.c (main): Fixed a segv when using --outfile without an
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
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
2435 * verify.c (gpgsm_verify): Ditto.
2436 * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2438 2002-06-19 Werner Koch <wk@gnupg.org>
2440 * call-agent.c (learn_cb): Use log_info instead of log_error on
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.
2448 * gpgsm.c (main): New command --list-external-keys.
2450 2002-06-17 Werner Koch <wk@gnupg.org>
2452 * certreqgen.c (read_parameters): Improved error handling.
2453 (gpgsm_genkey): Print error message.
2455 2002-06-13 Werner Koch <wk@gnupg.org>
2457 * gpgsm.c (main): New option --log-file.
2459 2002-06-12 Werner Koch <wk@gnupg.org>
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.
2465 * gpgsm.c (open_fwrite): New.
2466 (main): Allow --output for --verify.
2468 * sign.c (hash_and_copy_data): New.
2469 (gpgsm_sign): Implemented normal (non-detached) signatures.
2470 * gpgsm.c (main): Ditto.
2472 * certpath.c (gpgsm_validate_path): Special error handling for
2475 2002-06-10 Werner Koch <wk@gnupg.org>
2477 * server.c (get_status_string): Add STATUS_ERROR.
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.
2487 2002-06-04 Werner Koch <wk@gnupg.org>
2489 * gpgsm.c (main): New command --list-sigs
2490 * keylist.c (list_cert_std): New. Use it whenever colon mode is
2492 (list_cert_chain): New.
2494 2002-05-31 Werner Koch <wk@gnupg.org>
2496 * gpgsm.c (main): Don't print the "go ahead" message for an
2499 2002-05-23 Werner Koch <wk@gnupg.org>
2501 * import.c (gpgsm_import): Add error messages.
2503 2002-05-21 Werner Koch <wk@gnupg.org>
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.
2514 * import.c (gpgsm_import): Try to identify the type of input and
2515 handle certs-only messages.
2517 2002-05-14 Werner Koch <wk@gnupg.org>
2519 * gpgsm.c: New option --faked-system-time
2520 * sign.c (gpgsm_sign): And use it here.
2521 * certpath.c (gpgsm_validate_path): Ditto.
2523 2002-05-03 Werner Koch <wk@gnupg.org>
2525 * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
2527 * verify.c (gpgsm_verify): Tweaked usage of log_debug and
2528 log_error. Return EXPSIG status and add expiretime to VALIDSIG.
2530 2002-04-26 Werner Koch <wk@gnupg.org>
2532 * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
2535 * call-agent.c (start_agent): Be more silent without -v.
2536 * call-dirmngr.c (start_dirmngr): Ditto.
2538 2002-04-25 Werner Koch <wk@gnupg.org>
2540 * call-agent.c (start_agent): Make copies of old locales and check
2543 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2545 * call-agent.c (start_agent): Fix error handling logic so the
2546 locale is always correctly reset.
2548 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
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.
2555 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
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.
2566 2002-04-18 Werner Koch <wk@gnupg.org>
2568 * certreqgen.c (gpgsm_genkey): Write status output on success.
2570 2002-04-15 Werner Koch <wk@gnupg.org>
2572 * gpgsm.c (main): Check ksba version.
2574 * certpath.c (find_up): New to use the authorithKeyIdentifier.
2575 Use it in all other functions to locate the signing cert..
2577 2002-04-11 Werner Koch <wk@gnupg.org>
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.
2589 2002-03-28 Werner Koch <wk@gnupg.org>
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
2596 2002-03-21 Werner Koch <wk@gnupg.org>
2599 * gpgsm.c: Add command --export.
2600 * server.c (cmd_export): New.
2602 2002-03-13 Werner Koch <wk@gnupg.org>
2604 * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
2606 2002-03-12 Werner Koch <wk@gnupg.org>
2608 * certpath.c (check_cert_policy): Print the policy list.
2610 * verify.c (gpgsm_verify): Detect certs-only message.
2612 2002-03-11 Werner Koch <wk@gnupg.org>
2614 * import.c (gpgsm_import): Print a notice about imported certificates
2615 when in verbose mode.
2617 * gpgsm.c (main): Print INV_RECP status.
2618 * server.c (cmd_recipient): Ditto.
2620 * server.c (gpgsm_status2): New. Allows for a list of strings.
2621 (gpgsm_status): Divert to gpgsm_status2.
2623 * encrypt.c (gpgsm_encrypt): Don't use a default key when no
2624 recipients are given. Print a NO_RECP status.
2626 2002-03-06 Werner Koch <wk@gnupg.org>
2628 * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
2629 (do_listkeys): new. Add pattern parsing.
2631 * keylist.c (gpgsm_list_keys): Handle selection pattern.
2633 * gpgsm.c: New command --learn-card
2634 * call-agent.c (learn_cb,gpgsm_agent_learn): New.
2636 * gpgsm.c (main): Print error messages for non-implemented commands.
2638 * base64.c (base64_reader_cb): Use case insensitive compare of the
2639 Content-Type string to detect plain base-64.
2641 2002-03-05 Werner Koch <wk@gnupg.org>
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.
2650 * verify.c (gpgsm_verify): Better error text for a bad signature
2651 found by comparing the hashs.
2653 2002-02-27 Werner Koch <wk@gnupg.org>
2655 * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2658 2002-02-25 Werner Koch <wk@gnupg.org>
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.
2665 2002-02-19 Werner Koch <wk@gnupg.org>
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.
2673 2002-02-18 Werner Koch <wk@gnupg.org>
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.
2679 2002-02-07 Werner Koch <wk@gnupg.org>
2681 * certlist.c (gpgsm_add_to_certlist): Check that the specified
2682 name identifies a certificate unambiguously.
2683 (gpgsm_find_cert): Ditto.
2685 * server.c (cmd_listkeys): Check that the data stream is available.
2686 (cmd_listsecretkeys): Ditto.
2688 (cmd_sign): Fix ambiguousity in option recognition.
2690 * gpgsm.c (main): Enable --logger-fd.
2692 * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2695 * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2698 * keylist.c (list_cert_colon): Filter out control characters.
2700 2002-02-06 Werner Koch <wk@gnupg.org>
2702 * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
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
2709 2002-02-01 Marcus Brinkmann <marcus@g10code.de>
2711 * sign.c (gpgsm_sign): Do not release certificate twice.
2713 2002-01-29 Werner Koch <wk@gnupg.org>
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.
2724 2002-01-28 Werner Koch <wk@gnupg.org>
2726 * certreqgen.c (create_request): Store the email address in the req.
2728 2002-01-25 Werner Koch <wk@gnupg.org>
2730 * gpgsm.c (main): Disable core dumps.
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.
2739 * server.c (gpgsm_server): Ditto.
2740 (option_handler): Support --include-certs.
2742 2002-01-23 Werner Koch <wk@gnupg.org>
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.
2748 2002-01-22 Werner Koch <wk@gnupg.org>
2750 * certpath.c (unknown_criticals): New.
2752 (gpgsm_validate_path): Check validity, CA attribute, path length
2753 and unknown critical extensions.
2755 2002-01-21 Werner Koch <wk@gnupg.org>
2757 * gpgsm.c: Add option --enable-crl-checks.
2759 * call-agent.c (start_agent): Implemented socket based access.
2760 * call-dirmngr.c (start_dirmngr): Ditto.
2762 2002-01-20 Werner Koch <wk@gnupg.org>
2764 * server.c (option_handler): New.
2765 (gpgsm_server): Register it with assuan.
2767 2002-01-19 Werner Koch <wk@gnupg.org>
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
2774 * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2776 2002-01-15 Werner Koch <wk@gnupg.org>
2778 * import.c (gpgsm_import): Just do a basic cert check before
2780 * certpath.c (gpgsm_basic_cert_check): New.
2782 * keydb.c (keydb_store_cert): New.
2783 * import.c (store_cert): Removed and change all caller to use
2785 * verify.c (store_cert): Ditto.
2787 * certlist.c (gpgsm_add_to_certlist): Validate the path
2789 * certpath.c (gpgsm_validate_path): Check the trust list.
2790 * call-agent.c (gpgsm_agent_istrusted): New.
2792 2002-01-14 Werner Koch <wk@gnupg.org>
2794 * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2795 * certlist.c (gpgsm_find_cert): New.
2797 2002-01-13 Werner Koch <wk@gnupg.org>
2799 * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2802 2002-01-11 Werner Koch <wk@gnupg.org>
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.
2809 2002-01-10 Werner Koch <wk@gnupg.org>
2811 * base64.c (gpgsm_create_writer): Allow to set the object name
2813 2002-01-08 Werner Koch <wk@gnupg.org>
2815 * keydb.c (spacep): Removed because it is now in util.c
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.
2822 2002-01-02 Werner Koch <wk@gnupg.org>
2824 * server.c (rc_to_assuan_status): Removed and changed all callers
2825 to use map_to_assuan_status.
2827 2001-12-20 Werner Koch <wk@gnupg.org>
2829 * verify.c (gpgsm_verify): Implemented non-detached signature
2830 verification. Add OUT_FP arg, initialize a writer and changed all
2832 * server.c (cmd_verify): Pass an out_fp if one has been set.
2834 * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2836 * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
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.
2847 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2849 * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2851 2001-12-18 Werner Koch <wk@gnupg.org>
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.
2857 2001-12-17 Werner Koch <wk@gnupg.org>
2859 * keylist.c (list_cert_colon): Changed for new return value of
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.
2871 * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2873 * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
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.
2879 2001-12-15 Werner Koch <wk@gnupg.org>
2881 * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2883 (gpgsm_create_cms_signature): Removed the commented fake key
2884 code. This makes the function pretty simple.
2886 * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2888 * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2889 * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2891 2001-12-14 Werner Koch <wk@gnupg.org>
2893 * keylist.c (list_cert_colon): Kludge to show an email address
2894 encoded in the subject's DN.
2896 * verify.c (gpgsm_verify): Add hash debug helpers
2897 * sign.c (gpgsm_sign): Ditto.
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.
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.
2908 * gpgsm.c (main): New option --debug-wait n, so that it is
2909 possible to attach gdb when used in server mode.
2911 * sign.c (get_default_signer): Use keydb_classify_name here.
2913 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2915 * call-agent.c (LINELENGTH): Removed.
2916 (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2917 (gpgsm_agent_pkdecrypt): Likewise.
2919 2001-12-13 Werner Koch <wk@gnupg.org>
2921 * keylist.c (list_cert_colon): Print alternative names of subject
2922 and a few other values.
2924 2001-12-12 Werner Koch <wk@gnupg.org>
2926 * gpgsm.c (main): New options --assume-{armor,base64,binary}.
2927 * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2929 2001-12-04 Werner Koch <wk@gnupg.org>
2931 * call-agent.c (read_from_agent): Check for inquire responses.
2932 (request_reply): Handle them using a new callback arg, changed all
2934 (gpgsm_agent_pkdecrypt): New.
2936 2001-11-27 Werner Koch <wk@gnupg.org>
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.
2942 2001-11-26 Werner Koch <wk@gnupg.org>
2944 * gpgsm.c: New option --agent-program
2945 * call-agent.c (start_agent): Allow to override the default path
2948 * keydb.c (keydb_add_resource): Create keybox
2950 * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2952 * server.c (rc_to_assuan_status): New. Use it for all commands.
2955 Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2956 2010, 2011 Free Software Foundation, Inc.
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.
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.