1 2009-11-02 Marcus Brinkmann <marcus@g10code.de>
3 * server.c (reset_notify, input_notify, output_notify): Update to
5 (register_commands): Use assuan_handler_t.
6 * call-agent.c (membuf_data_cb, default_inq_cb)
7 (inq_ciphertext_cb, scd_serialno_status_cb)
8 (scd_keypairinfo_status_cb, istrusted_status_cb)
9 (learn_status_cb, learn_cb, keyinfo_status_cb): Return gpg_error_t.
11 2009-10-16 Werner Koch <wk@g10code.com>
13 * gpgsm.c (default_include_certs): Change to -2.
14 (DEFAULT_INCLUDE_CERTS): New.
15 (DEFAULT_CIPHER_ALGO): New. Use instead of hardcoded "3DES".
17 2009-09-30 Werner Koch <wk@g10code.com>
19 * gpgsm.c (main): Remove obsolete GCRYCTL_DISABLE_INTERNAL_LOCKING.
21 2009-09-23 Marcus Brinkmann <marcus@g10code.de>
23 * gpgsm.c (main): Update to new assuan API.
24 * server.c: Include "gpgsm.h" before <assuan.h> due to check for
25 GPG_ERR_SOURCE_DEFAULT and assuan.h now including gpg-error.h.
26 (option_handler, cmd_recipient, cmd_signer, cmd_encrypt)
27 (cmd_decrypt, cmd_verify, cmd_sign, cmd_import, cmd_export)
28 (cmd_delkeys, cmd_message, cmd_listkeys, cmd_dumpkeys)
29 (cmd_listsecretkeys, cmd_dumpsecretkeys, cmd_genkey)
30 (cmd_getauditlog, cmd_getinfo): Return gpg_error_t instead of int.
31 (register_commands): Same for member HANDLER in table.
32 (gpgsm_server): Allocate assuan context before starting server.
34 * call-dirmngr.c (prepare_dirmngr): Check for CTX and error before
36 (start_dirmngr_ext): Allocate assuan context before starting
38 (inq_certificate, isvalid_status_cb, lookup_cb, lookup_status_cb)
39 (run_command_cb, run_command_inq_cb, run_command_status_cb):
40 Return gpg_error_t instead of int.
42 2009-08-06 Werner Koch <wk@g10code.com>
44 * sign.c (gpgsm_sign): Print INV_SNDR for a bad default key.
46 * server.c (cmd_signer): Remove unneeded case for -1. Send
47 INV_SGNR. Use new map function.
48 (cmd_recipient): Use new map function.
49 * gpgsm.c (do_add_recipient): Use new map function for INV_RECP.
50 (main): Ditto. Also send INV_SGNR.
52 2009-07-30 Werner Koch <wk@g10code.com>
54 * call-agent.c (learn_cb): Do not store as ephemeral.
56 2009-07-29 Marcus Brinkmann <marcus@g10code.com>
58 * keylist.c (print_capabilities): Print a trailing colon.
60 2009-07-23 Werner Koch <wk@g10code.com>
62 * certchain.c (is_cert_still_valid): Emit AUDIT_CRL_CHECK.
64 2009-07-07 Werner Koch <wk@g10code.com>
66 * server.c (command_has_option): New.
67 (cmd_getinfo): Add subcommand "cmd_has_option".
68 (cmd_import): Implement option --re-import.
69 * import.c (gpgsm_import): Add arg reimport_mode.
72 * gpgsm.h: Include session-env.h.
73 (opt): Add field SESSION_ENV. Remove obsolete fields.
74 * server.c (option_handler): Rewrite setting of option fields.
75 Replace strdup by xtrystrdup.
76 * gpgsm.c (set_opt_session_env): New.
77 (main): Use it for oDisplay, oTTYname, oTTYtype and oXauthority.
78 * call-agent.c (start_agent): Adjust start_new_gpg_agent for
80 * misc.c (setup_pinentry_env): Use new session_env stuff.
82 2009-07-02 Werner Koch <wk@g10code.com>
84 * certreqgen-ui.c (gpgsm_gencertreq_tty): Allow using a key from a
86 * call-agent.c (gpgsm_agent_scd_serialno)
87 (scd_serialno_status_cb, store_serialno): New.
88 (scd_keypairinfo_status_cb, gpgsm_agent_scd_keypairinfo): New.
90 2009-07-01 Werner Koch <wk@g10code.com>
92 * certreqgen-ui.c (check_keygrip): New.
93 (gpgsm_gencertreq_tty): Allow using an existing key.
95 * gpgsm.c (open_es_fread): New.
96 (main) <aKeygen>: Implement --batch mode.
98 2009-06-24 Werner Koch <wk@g10code.com>
100 * call-dirmngr.c (pattern_from_strlist): Remove dead assignment of N.
101 * sign.c (gpgsm_sign): Remove dead assignment.
102 * certreqgen.c (create_request): Assign GPG_ERR_BUG to RC.
103 Reported by Fabian Keil.
105 2009-05-27 Werner Koch <wk@g10code.com>
107 * encrypt.c (encrypt_dek): Make use of make_canon_sexp.
109 2009-05-18 Werner Koch <wk@g10code.com>
111 * server.c (option_handler): New option "no-encrypt-to".
112 (cmd_encrypt): Make use of it.
114 * gpgsm.c: Remove not implemented --verify-files.
116 2009-04-02 Werner Koch <wk@g10code.com>
118 * keylist.c (list_cert_std): Print card serial number.
120 2009-04-01 Werner Koch <wk@g10code.com>
122 * export.c (popen_protect_tool): Add command line option
123 --agent-program and pass flag bit 6.
124 * import.c (popen_protect_tool): Ditto.
126 2009-03-26 Werner Koch <wk@g10code.com>
128 * gpgsm.c (main): s/def_digest_string/forced_digest_algo/ and
129 activate the --digest-algo option.
130 * gpgsm.h (struct opt): s/def_digest_algo/forced_digest_algo/.
131 * sign.c (gpgsm_sign): Implement --digest-algo.
133 * sign.c (MAX_DIGEST_LEN): Change to 64.
135 * call-agent.c (gpgsm_agent_marktrusted): Format the issuer name.
137 2009-03-25 Werner Koch <wk@g10code.com>
139 * decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY stati.
141 * fingerprint.c (gpgsm_get_short_fingerprint): Add arg R_HIGH and
144 2009-03-23 Werner Koch <wk@g10code.com>
146 * delete.c (delete_one): Also delete ephemeral certificates if
149 2009-03-20 Werner Koch <wk@g10code.com>
151 * keylist.c (list_internal_keys): Set released cert to NULL.
153 * call-agent.c (learn_status_cb): New.
154 (gpgsm_agent_learn): Use it.
155 (learn_cb): Send a progress for every certificate.
157 2009-03-18 Werner Koch <wk@g10code.com>
159 * gpgsm.h (struct opt): Move field WITH_EPHEMERAL_KEYS to struct
161 * gpgsm.c (main): Change accordingly.
162 * keylist.c (list_internal_keys): Ditto.
163 * server.c (option_handler): Add "with-ephemeral-keys".
165 2009-03-12 Werner Koch <wk@g10code.com>
167 * certdump.c (gpgsm_dump_time): Remove.
168 * certdump.c, verify.c, certchain.c
169 * gpgsm.c: s/gpgsm_dump_time/dump_isotime/.
171 2009-03-06 Werner Koch <wk@g10code.com>
173 * call-agent.c (gpgsm_agent_keyinfo, keyinfo_status_cb): New.
174 * keylist.c (list_cert_colon): Print card S/N.
176 * keylist.c (list_internal_keys): Always list ephemeral keys if
177 specified by keygrip or fingerprint.
178 (list_cert_raw): Always show ephemeral flag.
179 * export.c (gpgsm_export): Export ephemeral keys if specified by
182 2009-02-09 Werner Koch <wk@g10code.com>
184 * gpgsm.c (main): Change default cipher back to 3DES.
186 2009-01-12 Werner Koch <wk@g10code.com>
188 * keylist.c (print_utf8_extn_raw): Cast printf precision argument.
190 2009-01-08 Werner Koch <wk@g10code.com>
192 * fingerprint.c (gpgsm_get_keygrip_hexstring): Add error detection.
194 2008-12-10 Werner Koch <wk@g10code.com>
196 * gpgsm.c (our_cipher_test_algo): Use the GCRY constants as we now
198 (our_md_test_algo): Ditto. Add SHA224.
199 (main) <aGpgConfList>: Update default cipher algo.
201 2008-12-09 Werner Koch <wk@g10code.com>
203 * gpgsm.c (main): Call i18n_init before init_common_subsystems.
205 2008-12-05 Werner Koch <wk@g10code.com>
207 * certreqgen.c (create_request): Provide a custom prompt for the
210 * certdump.c (gpgsm_format_keydesc): Remove debug output.
211 (gpgsm_format_keydesc): Remove saving of errno as xfree is
212 supposed not to change it. Use the new percent_plus_escape
213 function which also fixes the issue that we did not escaped a
216 2008-11-18 Werner Koch <wk@g10code.com>
218 * gpgsm.c (make_libversion): New.
219 (my_strusage): Use new function.
220 (build_lib_list): Remove.
222 2008-11-13 Werner Koch <wk@g10code.com>
224 * gpgsm.c: Remove all unused options. Use ARGPARSE macros.
226 2008-10-28 Werner Koch <wk@g10code.com>
228 * certdump.c (gpgsm_format_keydesc): Use xtryasprintf and xfree.
229 (gpgsm_es_print_name): Factor code out to ...
230 (gpgsm_es_print_name2): New function.
231 (gpgsm_format_name2, format_name_writer): Use estream so that it
232 works on all platforms.
233 (format_name_writer): Fix reallocation bug.
235 2008-10-23 Werner Koch <wk@g10code.com>
237 * import.c (popen_protect_tool): Add arg CTRL and assure that the
238 agent is running. Pass a value for CTRL from all caller.
239 * export.c (popen_protect_tool): Ditto.
241 2008-10-21 Werner Koch <wk@g10code.com>
243 * call-dirmngr.c (inq_certificate_parm_s): Add field CTRL.
244 (gpgsm_dirmngr_isvalid): Supply a value for that field.
245 (inq_certificate): Add inquiry ISTRUSTED.
247 * call-agent.c (gpgsm_agent_istrusted): Add new optional arg
248 HEXFPR. Changed all callers.
250 2008-10-20 Werner Koch <wk@g10code.com>
252 * keydb.c (keydb_locate_writable): Mark unused arg.
253 (keydb_search_kid): Ditto.
254 (keydb_clear_some_cert_flags): Ditto.
255 * server.c (cmd_encrypt): Ditto.
256 (cmd_decrypt, cmd_verify, cmd_import, cmd_genkey): Ditto.
257 * call-agent.c (gpgsm_scd_pksign): Ditto.
258 * call-dirmngr.c (release_dirmngr, release_dirmngr2)
259 (run_command_cb): Ditto.
260 * certlist.c (gpgsm_add_cert_to_certlist): Ditto.
261 * certchain.c (find_up_dirmngr): Ditto.
262 * keylist.c (print_key_data): Ditto.
263 (list_cert_raw, list_cert_std): Ditto.
264 * qualified.c (gpgsm_is_in_qualified_list): Ditto.
266 * gpgsm.c (set_binary) [!W32]: Mark unused arg.
268 2008-10-17 Werner Koch <wk@g10code.com>
270 * call-dirmngr.c (start_dirmngr, start_dirmngr2): Reset the lock
272 (release_dirmngr, release_dirmngr2): Replace asserts by error messages.
273 (gpgsm_dirmngr_lookup): Replace assert by fatal error message.
275 2008-10-13 Werner Koch <wk@g10code.com>
277 * gpgsm.c: Add alias --delete-keys.
279 2008-09-30 Werner Koch <wk@g10code.com>
281 * server.c (cmd_getinfo): New subcommand agent-check.
282 * call-agent.c (gpgsm_agent_send_nop): New.
284 2008-09-29 Werner Koch <wk@g10code.com>
286 * certcheck.c (MY_GCRY_PK_ECDSA): Remove. Change users to
288 * gpgsm.c (MY_GCRY_PK_ECDSA): Ditto.
289 * sign.c (MY_GCRY_MD_SHA224): Remove change users to GCRY_MD_SHA224.
291 2008-09-04 Werner Koch <wk@g10code.com>
293 * certdump.c (gpgsm_format_keydesc): Work around a mingw32 bug.
295 2008-09-03 Werner Koch <wk@g10code.com>
297 * sign.c (MY_GCRY_MD_SHA224): New, so that we don't need libgcrypt
300 2008-08-13 Werner Koch <wk@g10code.com>
302 * keylist.c (list_cert_colon): Print 'f' for validated certs.
304 2008-08-08 Marcus Brinkmann <marcus@g10code.de>
306 * gpgsm.h (struct server_control_s): Remove member dirmngr_seen.
307 * call-dirmngr.c (dirmngr2_ctx, dirmngr_ctx_locked)
308 (dirmngr2_ctx_locked): New global variables.
309 (prepare_dirmngr): Don't check dirmngr_seen anymore.
310 (start_dirmngr): Move bunch of code to ...
311 (start_dirmngr_ext): ... this new function.
312 (release_dirmngr, start_dirmngr2, release_dirmngr2): New
314 (gpgsm_dirmngr_isvalid): Call release_dirmngr.
315 (gpgsm_dirmngr_lookup): Call release_dirmngr. If dirmngr_ctx is
316 locked, use dirmngr2_locked.
317 (gpgsm_dirmngr_run_command): Call release_dirmngr.
319 2008-06-25 Werner Koch <wk@g10code.com>
321 * sign.c (gpgsm_sign): Revamp the hash algorithm selection.
322 * gpgsm.h (struct certlist_s): Add field HASH_ALGO and HASH_ALGO_OID.
324 * qualified.c (gpgsm_qualified_consent): Fix double free.
326 * gpgsm.c (main): Change default cipher algo to AES.
328 * keylist.c (print_utf8_extn_raw, print_utf8_extn): New.
329 (list_cert_raw, list_cert_std): Print the TeleSec restriction
332 2008-06-23 Werner Koch <wk@g10code.com>
334 * encrypt.c (encode_session_key): Replace xmalloc by xtrymalloc.
335 Use bin2hex instead of open coding the conversion.
336 (encrypt_dek): Init S_DATA.
338 2008-06-13 Marcus Brinkmann <marcus@ulysses.g10code.com>
340 * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
342 2008-06-12 Marcus Brinkmann <marcus@g10code.de>
344 * gpgsm.h (struct keyserver_spec): New struct.
345 (opt): Add member keyserver.
346 * gpgsm.c (keyserver_list_free, parse_keyserver_line): New functions.
347 (main): Implement --keyserver option.
348 * call-dirmngr.c (prepare_dirmngr): Send LDAPSERVER commands.
350 2008-05-20 Werner Koch <wk@g10code.com>
352 * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
353 the export function. Reported by Marc Mutz.
355 2008-05-06 Werner Koch <wk@g10code.com>
357 * keylist.c (list_external_keys): Ignore NOT FOUND error code.
360 2008-04-23 Werner Koch <wk@g10code.com>
362 * certchain.c (find_up): Make correct C89 code. Declare variable
363 at the top of the block. Reported by Alain Guibert.
365 2008-04-09 Werner Koch <wk@g10code.com>
367 * verify.c (gpgsm_verify): Print the message hash values on error.
369 2008-03-31 Werner Koch <wk@g10code.com>
371 * call-dirmngr.c (start_dirmngr): Use log_info instead of
372 log_error when falling back to start dirmngr.
374 2008-03-20 Werner Koch <wk@g10code.com>
376 * certlist.c (gpgsm_add_to_certlist): Always save the first
377 subject and issuer. Initialize issuer with issuer and not with
379 (same_subject_issuer): Set issuer2 to issuer and not to subject.
381 2008-03-17 Werner Koch <wk@g10code.com>
383 * certdump.c (my_funopen_hook_size_t): New.
384 (format_name_writer): Use it.
386 2008-03-13 Werner Koch <wk@g10code.com>
388 * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
390 (gpgsm_format_keydesc): Remove superfluous test. Add expire date
393 2008-02-18 Werner Koch <wk@g10code.com>
395 * certchain.c (gpgsm_is_root_cert): Factor code out to ...
396 (is_root_cert): New. Extend test for self-issued certificates
398 (do_validate_chain, gpgsm_basic_cert_check)
399 (gpgsm_walk_cert_chain): Use it here.
401 * gpgsm.c: Add option --no-common-certs-import.
403 * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
404 (check_cert_policy): Be more silent with --quiet.
406 * gpgsm.c: Add option --disable-dirmngr.
407 * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
408 * call-dirmngr.c (start_dirmngr): Implement option.
410 2008-02-14 Werner Koch <wk@g10code.com>
412 * server.c (option_handler): Add option allow-pinentry-notify.
413 (gpgsm_proxy_pinentry_notify): New.
414 * call-agent.c (default_inq_cb): New.
415 (gpgsm_agent_pksign, gpgsm_scd_pksign, gpgsm_agent_readkey)
416 (gpgsm_agent_istrusted, gpgsm_agent_marktrusted)
417 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation): Call it.
418 (struct cipher_parm_s, struct genkey_parm_s): Add field CTRL.
419 (inq_ciphertext_cb): Test keyword and fallback to default_inq_cb.
420 (inq_genkey_parms): Ditto.
421 (start_agent): Tell agent to send us the pinentry notifications.
423 2008-02-13 Werner Koch <wk@g10code.com>
425 * call-dirmngr.c (gpgsm_dirmngr_lookup): Add arg CACHE_ONLY.
426 * keylist.c (list_external_keys): Pass false for new arg.
427 * certchain.c (find_up_dirmngr): New.
428 (find_up): Also try to read from the dirmngr cache.
429 (find_up, find_up_external, gpgsm_walk_cert_chain)
430 (gpgsm_basic_cert_check, allowed_ca): Add arg CTRL and changed all
432 * call-agent.c (struct learn_parm_s): Add field CTRL.
433 (gpgsm_agent_learn): Set it.
435 2008-02-11 Werner Koch <wk@g10code.com>
437 * server.c (cmd_getinfo): New.
438 (gpgsm_server): Register GETINFO.
440 2008-01-29 Marcus Brinkmann <marcus@g10code.de>
442 * keylist.c (list_internal_keys): New variable lastcert. Use it
443 to suppress duplicates which immediately follow each other.
445 2008-01-27 Werner Koch <wk@g10code.com>
447 * import.c (popen_protect_tool): Set bit 7 in the flags for
448 gnupg_spawn_process so that under W32 no window appears.
449 * export.c (popen_protect_tool): Ditto.
451 2007-12-13 Werner Koch <wk@g10code.com>
453 * gpgsm.c (main): Add option --extra-digest-algo.
454 * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
455 * verify.c (gpgsm_verify): Use it. Use the hash algorithm from
458 2007-12-11 Werner Koch <wk@g10code.com>
460 * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
462 * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
463 (cmd_recipient): Start audit session.
465 * gpgsm.c (main): Revamp creation of the audit log.
467 * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
468 * call-agent.c (start_agent): Record an audit event.
469 * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
471 (prepare_dirmngr): New helper for start_dirmngr.
473 * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
475 2007-12-03 Werner Koch <wk@g10code.com>
477 * gpgsm.c (main): Call gnupg_reopen_std.
479 h2007-11-22 Werner Koch <wk@g10code.com>
481 * server.c (cmd_getauditlog): New.
482 (register_commands): Register GETAUDITLOG.
484 2007-11-19 Werner Koch <wk@g10code.com>
486 * server.c (cmd_recipient, cmd_signer): Add error reason 11.
488 * gpgsm.c (main): Print a warning if --audit-log is used.
490 2007-11-15 Werner Koch <wk@g10code.com>
492 * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
493 * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
494 * gpgsm.c (main): New option --xauthority.
495 * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
496 * server.c (option_handler): Ad the new options.
498 2007-11-07 Werner Koch <wk@g10code.com>
500 * gpgsm.c (main): New option --audit-log.
501 * server.c (option_handler): New option enable-audit-log.
502 (start_audit_session): New.
503 (cmd_verify): Create audit context.
504 (gpgsm_server): Release the context.
506 * gpgsm.h (struct server_control_s): Add member AUDIT, include
508 * certdump.c (gpgsm_format_sn_issuer): New.
509 * verify.c (hash_data): Return an error code.
510 (gpgsm_verify): Add calls to audit_log.
512 * gpgsm.c (get_status_string): Remove.
513 * gpgsm.h: Include status.h instead of errors.h.
515 2007-10-19 Werner Koch <wk@g10code.com>
517 * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
518 (gpgsm_not_qualified_warning): Ditto.
519 * certdump.c (gpgsm_format_keydesc): Ditto.
521 2007-09-14 Werner Koch <wk@g10code.com>
523 * gpgsm.c (build_lib_list): New.
524 (my_strusage): Print lib info.
526 2007-08-24 Werner Koch <wk@g10code.com>
528 * Makefile.am (common_libs): Swap libkeybox and jnlib.
530 2007-08-23 Werner Koch <wk@g10code.com>
532 * certlist.c (gpgsm_certs_identical_p): New.
533 (gpgsm_add_to_certlist): Ignore duplicate certificates in
534 ambigious name detection.
535 (gpgsm_find_cert): Ditto.
536 * export.c (gpgsm_p12_export): Ditto.
538 2007-08-22 Werner Koch <wk@g10code.com>
540 * certreqgen.c (create_request): Replace open coding by bin2hex.
542 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
544 2007-08-21 Werner Koch <wk@g10code.com>
546 * import.c (parse_p12): Use gnupg_tmpfile.
547 * export.c (export_p12): Ditto.
549 2007-08-20 Werner Koch <wk@g10code.com>
551 * certreqgen.c (read_parameters): Change FP to an estream_t.
552 (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
553 * server.c (cmd_genkey): Adjust for that.
554 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
555 instead of a temporary file.
557 2007-08-14 Werner Koch <wk@g10code.com>
559 * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name. change
560 the way infostr is xstrdupped.
562 * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
565 2007-08-13 Werner Koch <wk@g10code.com>
567 * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
568 message depend on that.
569 (main): Add avriable RECP_REQUIRED, set ift for encryption
570 commands and pass it to do_add_recipient.
571 (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
573 2007-08-09 Werner Koch <wk@g10code.com>
575 * gpgsm.c (main) [W32]: Enable CRL check by default.
576 (main): Update the default control structure after reading the
578 (gpgsm_parse_validation_model, parse_validation_model): New.
579 (main): New option --validation-model.
580 * certchain.c (gpgsm_validate_chain): Implement this option.
581 * server.c (option_handler): Ditto.
583 * certchain.c (is_cert_still_valid): Reformatted. Add arg
584 FORCE_OCSP. Changed callers to set this flag when using the chain
587 2007-08-08 Werner Koch <wk@g10code.com>
589 * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
590 which prefixed the output with a 3A and cut it off at a 00.
592 * keylist.c (list_cert_raw): Print the certificate ID first and
593 rename "Serial number" to "S/N".
594 (list_cert_std): Ditto.
596 2007-08-07 Werner Koch <wk@g10code.com>
598 * gpgsm.c (main): Allow a string for --faked-system-time.
600 2007-08-06 Werner Koch <wk@g10code.com>
602 Implementation of the chain model.
604 * gpgsm.h (struct rootca_flags_s): Define new members VALID and
606 * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
607 (istrusted_status_cb): Set CHAIN_MODEL.
608 * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
610 (gpgsm_validate_chain): Factor some code out to ...
611 (check_validity_period, ask_marktrusted): .. new.
612 (check_validity_cm_basic, check_validity_cm_main): New.
613 (do_validate_chain): New with all code from gpgsm_validate_chain.
614 New arg ROOTCA_FLAGS.
615 (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
616 model. Add RETFLAGS arg and changed all callers to pass NULL. Add
617 CHECKTIME arg and changed all callers to pass a nil value.
618 (has_validity_model_chain): New.
619 * verify.c (gpgsm_verify): Check for chain model and return as
620 part of the trust status.
622 * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
623 (VALIDATE_FLAG_NO_DIRMNGR): New.
624 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
626 2007-08-03 Werner Koch <wk@g10code.com>
628 * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
631 * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
633 * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
635 2007-08-02 Werner Koch <wk@g10code.com>
637 * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
639 2007-07-17 Werner Koch <wk@g10code.com>
641 * gpgsm.c (main): Implement --default-key.
642 (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
644 2007-07-16 Werner Koch <wk@g10code.com>
646 * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
647 newer assuan versions.
649 2007-07-12 Werner Koch <wk@g10code.com>
651 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
652 when passing an int value.
653 * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
654 (cmd_export, cmd_message, cmd_genkey): Translate file descriptors.
656 2007-07-05 Werner Koch <wk@g10code.com>
658 * Makefile.am (common_libs): Changed order of libs.
660 2007-07-04 Werner Koch <wk@g10code.com>
662 * certchain.c (check_cert_policy): Remove extra checks for
663 GPG_ERR_NO_VALUE. They are not needed since libksba 1.0.1.
664 * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
665 * certlist.c (cert_usage_p, cert_usage_p): Ditto.
667 2007-06-26 Werner Koch <wk@g10code.com>
669 * gpgsm.c (main): Call gnupg_rl_initialize.
670 * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
672 2007-06-25 Werner Koch <wk@g10code.com>
674 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
675 add new arg FOR_WRITE. Change callers to pass new arg.
677 2007-06-24 Werner Koch <wk@g10code.com>
679 * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
682 2007-06-21 Werner Koch <wk@g10code.com>
684 * certreqgen-ui.c: New.
685 * gpgsm.c (main): Let --gen-key call it.
686 * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
689 * gpgsm.h (ctrl_t): Remove. It is now declared in ../common/util.h.
691 * call-agent.c (start_agent): Factored almost all code out to
694 2007-06-20 Werner Koch <wk@g10code.com>
696 * call-agent.c (start_agent) [W32]: Start the agent on the fly.
698 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
700 * gpgsm.c (main): Percent escape output of --gpgconf-list.
702 2007-06-14 Werner Koch <wk@g10code.com>
704 * call-agent.c (start_agent): Use gnupg_module_name.
705 * call-dirmngr.c (start_dirmngr): Ditto.
706 * export.c (export_p12): Ditto.
707 * import.c (parse_p12): Ditto.
708 * gpgsm.c (run_protect_tool): Ditto.
710 2007-06-12 Werner Koch <wk@g10code.com>
712 * gpgsm.c (main): Replace some calls by init_common_subsystems.
713 (main): Use gnupg_datadir.
714 * qualified.c (read_list): Use gnupg-datadir.
716 2007-06-11 Werner Koch <wk@g10code.com>
718 * Makefile.am (common_libs): Use libcommaonstd macr.
720 * gpgsm.c (main) [W32]: Call pth_init.
722 2007-06-06 Werner Koch <wk@g10code.com>
724 * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
726 * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
728 (format_name_writer): Define only if funopen et al is available.
730 * gpgsm.c (i18n_init): Remove.
732 2007-05-29 Werner Koch <wk@g10code.com>
734 * export.c (gpgsm_p12_export): Print passphrase encoding info only
737 2007-05-18 Marcus Brinkmann <marcus@g10code.de>
739 * qualified.c (gpgsm_qualified_consent,
740 gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
741 * certdump.c (gpgsm_format_keydesc): Likewise.
743 2007-05-07 Werner Koch <wk@g10code.com>
745 * certcheck.c (MY_GCRY_PK_ECDSA): New.
747 2007-04-20 Werner Koch <wk@g10code.com>
749 * gpgsm.c (main): Parameterize failed versions check messages.
751 2007-04-19 Werner Koch <wk@g10code.com>
753 * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2
755 (get_dsa_qbits): New.
756 (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
759 2007-04-18 Werner Koch <wk@g10code.com>
761 * certcheck.c (do_encode_md): Support 160 bit ECDSA.
763 2007-04-13 Werner Koch <wk@g10code.com>
765 * call-agent.c (start_agent): Don't use log_error when using the
766 fallback hack to start the agent. This is bug 782.
768 2007-03-20 Werner Koch <wk@g10code.com>
770 * fingerprint.c (gpgsm_get_fingerprint): Add caching.
771 (gpgsm_get_fingerprint_string): Use bin2hexcolon().
772 (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
773 as much memory as required.
774 (gpgsm_get_keygrip_hexstring): Use bin2hex.
776 * certchain.c (gpgsm_validate_chain): Keep track of the
777 certificate chain and reset the ephemeral flags.
778 * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
779 Changed caller to use a mask of ~0. Return a proper error code if
780 the certificate is not available.
782 * gpgsm.c: Add option --p12-charset.
783 * gpgsm.h (struct opt): Add p12_charset.
784 * export.c (popen_protect_tool): Use new option.
786 2007-03-19 Werner Koch <wk@g10code.com>
788 Changes to let export and key listing use estream to help systems
791 * keylist.c: Use estream in place of stdio functions.
792 * gpgsm.c (open_es_fwrite): New.
793 (main): Use it for the list commands.
794 * server.c (data_line_cookie_functions): New.
795 (data_line_cookie_write, data_line_cookie_close): New.
796 (do_listkeys): Use estream.
798 * certdump.c (gpgsm_print_serial): Changed to use estream.
799 (gpgsm_print_time): Ditto.
800 (pretty_es_print_sexp): New.
801 (gpgsm_es_print_name): New.
802 (print_dn_part): New arg STREAM. Changed all callers.
803 (print_dn_parts): Ditto.
804 * certchain.c (gpgsm_validate_chain): Changed FP to type
806 (do_list, unknown_criticals, allowed_ca, check_cert_policy)
807 (is_cert_still_valid): Ditto.
809 * export.c (gpgsm_export): New arg STREAM.
810 (do_putc, do_fputs): New.
811 (print_short_info): Allow printing to optional STREAM.
812 * server.c (cmd_export): Use stream.
813 * base64.c (do_putc, do_fputs): New.
814 (base64_writer_cb, base64_finish_write): Let them cope with an
815 alternate output function.
816 (plain_writer_cb): New.
817 (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
818 binary output to an estream. Changed call callers.
820 2007-01-31 Werner Koch <wk@g10code.com>
822 * gpgsm.c (main): Let --gen-key print a more informative error
825 2007-01-25 Werner Koch <wk@g10code.com>
827 * Makefile.am (gpgsm_LDADD): Add LIBICONV. Noted by Billy Halsey.
829 2007-01-05 Werner Koch <wk@g10code.com>
831 * certchain.c (unknown_criticals): Add subjectAltName.
833 2006-12-21 Werner Koch <wk@g10code.com>
835 * gpgsm.c: Comment mtrace feature.
837 2006-12-21 Marcus Brinkmann <marcus@g10code.de>
839 * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
841 * encrypt.c (encrypt_dek): Release S_CIPH.
843 2006-12-20 Marcus Brinkmann <marcus@g10code.de>
845 * server.c (gpgsm_server): Release CTRL->server_local.
847 * base64.c: Add new members READER and WRITER in union U2.
848 (gpgsm_create_reader): Initialise CTX->u2.reader.
849 (gpgsm_destroy_reader): Invoke ksba_reader_release. Return early
851 (gpgsm_create_writer): Initialise CTX->u2.writer.
852 (gpgsm_destroy_writer): Invoke ksba_writer_release. Return early
855 2006-12-18 Marcus Brinkmann <marcus@g10code.de>
857 * fingerprint.c (gpgsm_get_fingerprint): Close MD.
859 2006-11-24 Werner Koch <wk@g10code.com>
861 * certdump.c (parse_dn_part): Take '#' as a special character only
862 at the beginning of a string.
864 2006-11-21 Werner Koch <wk@g10code.com>
866 * certdump.c (my_funopen_hook_ret_t): New.
867 (format_name_writer): Use it for the return value.
869 2006-11-14 Werner Koch <wk@g10code.com>
871 * server.c (skip_options): Skip leading spaces.
872 (has_option): Honor "--".
873 (cmd_export): Add option --data to do an inline export. Skip all
876 * certdump.c (gpgsm_fpr_and_name_for_status): New.
877 * verify.c (gpgsm_verify): Use it to print correct status messages.
879 2006-11-11 Werner Koch <wk@g10code.com>
881 * server.c (skip_options): New.
883 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
885 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
887 2006-10-23 Werner Koch <wk@g10code.com>
889 * gpgsm.c (main): Remap common cipher algo names to their OIDs.
890 (main): New command --gpgconf-test.
892 2006-10-20 Werner Koch <wk@g10code.com>
894 * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
896 2006-10-18 Werner Koch <wk@g10code.com>
898 * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
899 testing for GPG_ERR_NO_DATA.
900 * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
901 * certchain.c (check_cert_policy): Ditto.
903 * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
904 chain length available.
906 2006-10-17 Werner Koch <wk@g10code.com>
908 * gpgsm.c: No need for pth.h.
909 (main): or to init it. It used to be hack for W32.
911 * sign.c (gpgsm_get_default_cert): Changed to return only
912 certificates usable for signing.
914 2006-10-16 Werner Koch <wk@g10code.com>
916 * certchain.c (already_asked_marktrusted)
917 (set_already_asked_marktrusted): New.
918 (gpgsm_validate_chain) <not trusted>: Keep track of certificates
919 we already asked for.
921 2006-10-11 Werner Koch <wk@g10code.com>
923 * certreqgen.c (proc_parameters, create_request): Allow for
924 creation directly from a card.
925 * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
926 (gpgsm_scd_pksign): New.
928 2006-10-06 Werner Koch <wk@g10code.com>
930 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
931 (gpgsm_LDADD): Ditto.
933 2006-10-05 Werner Koch <wk@g10code.com>
935 * certcheck.c (do_encode_md): Check that the has algo is valid.
937 2006-10-02 Marcus Brinkmann <marcus@g10code.de>
939 * server.c (register_commands): New commands DUMPKEYS and
941 (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
942 (option_handler): Support with-key-data option.
944 2006-09-26 Werner Koch <wk@g10code.com>
946 * certchain.c (gpgsm_validate_chain): More changes for the relax
947 feature. Use certificate reference counting instead of the old
948 explicit tests. Added a missing free.
950 2006-09-25 Werner Koch <wk@g10code.com>
952 * gpgsm.h (struct rootca_flags_s): New.
953 * call-agent.c (istrusted_status_cb): New.
954 (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
955 * keylist.c (list_cert_colon): Use dummy for new arg.
956 * certchain.c (gpgsm_validate_chain): Make use of the relax flag
957 for root certificates.
958 (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
960 2006-09-20 Werner Koch <wk@g10code.com>
962 * gpgsm.c: Add alias command --dump-cert.
964 * Makefile.am: Changes to allow parallel make runs.
966 2006-09-18 Werner Koch <wk@g10code.com>
968 * gpgsm.c (main): Use this to import standard certificates.
969 * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
971 2006-09-14 Werner Koch <wk@g10code.com>
973 Replaced all call gpg_error_from_errno(errno) by
974 gpg_error_from_syserror().
976 2006-09-13 Werner Koch <wk@g10code.com>
978 * keylist.c (list_internal_keys): Print marker line to FP and not
981 * gpgsm.c (main): All list key list commands now make ose of
982 --output. Cleaned up calls to list modes. New command
983 --dump-chain. Renamed --list-sigs to --list-chain and added an
984 alias for the old one.
986 * server.c (cmd_message): Changed to use assuan_command_parse_fd.
987 (option_handler): New option list-to-output.
988 (do_listkeys): Use it.
990 2006-09-06 Werner Koch <wk@g10code.com>
992 * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
994 (CTRL): Removed and changed everywhere to ctrl_t.
997 Replaced all Assuan error codes by libgpg-error codes. Removed
998 all map_to_assuan_status and map_assuan_err.
1000 * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
1001 switch to gpg-error codes.
1002 * server.c (set_error): Adjusted.
1004 2006-08-29 Werner Koch <wk@g10code.com>
1006 * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
1007 complete S-expressions as implemented by the current gpg-agent.
1009 * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
1012 2006-07-03 Werner Koch <wk@g10code.com>
1014 * certreqgen.c (proc_parameters): Print the component label of a
1017 2006-06-26 Werner Koch <wk@g10code.com>
1019 * certdump.c (gpgsm_cert_log_name): New.
1020 * certchain.c (is_cert_still_valid): Log the name of the certificate.
1022 2006-06-20 Werner Koch <wk@g10code.com>
1024 * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
1025 option --include-certs.
1027 * keylist.c (list_cert_raw): Print the certid.
1029 2006-05-23 Werner Koch <wk@g10code.com>
1031 * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
1033 * Makefile.am (gpgsm_LDADD): Include ZLIBS.
1035 2006-05-19 Marcus Brinkmann <marcus@g10code.de>
1037 * keydb.c (keydb_insert_cert): Do not lock here, but only check if
1039 (keydb_store_cert): Lock here.
1041 * keydb.h (keydb_delete): Accept new argument UNLOCK.
1042 * keydb.c (keydb_delete): Likewise. Only unlock if this is set.
1043 * delete.c (delete_one): Add new argument to invocation of
1046 2006-05-15 Werner Koch <wk@g10code.com>
1048 * keylist.c (print_names_raw): Sanitize URI.
1050 2006-03-21 Werner Koch <wk@g10code.com>
1052 * certchain.c (get_regtp_ca_info): New.
1053 (allowed_ca): Use it.
1055 2006-03-20 Werner Koch <wk@g10code.com>
1057 * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
1059 2006-02-17 Werner Koch <wk@g10code.com>
1061 * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
1063 2005-11-23 Werner Koch <wk@g10code.com>
1065 * gpgsm.h: New member QUALSIG_APPROVAL.
1066 * sign.c (gpgsm_sign): Print a warning if a certificate is not
1068 * qualified.c (gpgsm_qualified_consent): Include a note that this
1069 is not approved software.
1070 (gpgsm_not_qualified_warning): New.
1071 * gpgsm.c (main): Prepared to print a note whether the software
1074 2005-11-13 Werner Koch <wk@g10code.com>
1076 * call-agent.c (gpgsm_agent_get_confirmation): New.
1078 * keylist.c (list_cert_std): Print qualified status.
1080 * certchain.c (gpgsm_validate_chain): Check for qualified
1083 * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
1084 no-chain-validation is used.
1086 2005-11-11 Werner Koch <wk@g10code.com>
1088 * keylist.c (print_capabilities): Print is_qualified status.
1090 2005-10-28 Werner Koch <wk@g10code.com>
1092 * certdump.c (pretty_print_sexp): New.
1093 (gpgsm_print_name2): Use it here. This allows proper printing of
1094 DNS names as used with server certificates.
1096 2005-10-10 Werner Koch <wk@g10code.com>
1098 * keylist.c: Add pkaAdress OID as reference.
1100 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
1102 * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
1103 ../common/libcommon.a.
1105 2005-09-13 Werner Koch <wk@g10code.com>
1107 * verify.c (gpgsm_verify): Print a note if the unknown algorithm
1109 * sign.c (gpgsm_sign): Ditto.
1110 * certcheck.c (gpgsm_check_cert_sig): Ditto.
1112 2005-09-08 Werner Koch <wk@g10code.com>
1114 * export.c (popen_protect_tool): Add option --have-cert. We
1115 probably lost this option with 1.9.14 due to restructuring of
1118 2005-07-21 Werner Koch <wk@g10code.com>
1120 * gpgsm.c (main): New options --no-log-file and --debug-none.
1122 * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
1123 to allow enumeration. Changed all callers.
1124 (create_request): Process DNS and URI parameters.
1126 2005-07-20 Werner Koch <wk@g10code.com>
1128 * keylist.c (email_kludge): Reworked.
1130 * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
1132 * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
1134 2005-07-19 Werner Koch <wk@g10code.com>
1136 * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
1137 Bug accidently introduced while solving the #$%^& gcc
1138 signed/unsigned char* warnings.
1140 2005-06-15 Werner Koch <wk@g10code.com>
1142 * delete.c (delete_one): Changed FPR to unsigned.
1143 * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
1144 (gpgsm_encrypt): Ditto.
1145 * sign.c (gpgsm_sign): Made SIGVAL unsigned.
1146 * base64.c (base64_reader_cb): Need to use some casting to get
1147 around signed/unsigned char* warnings.
1148 * certcheck.c (gpgsm_check_cms_signature): Ditto.
1149 (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
1150 (do_encode_md): Made NFRAME a size_t.
1151 * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
1152 (gpgsm_dump_serial): Ditto.
1153 (gpgsm_format_serial): Ditto.
1154 (gpgsm_dump_string): Ditto.
1155 (gpgsm_dump_cert): Ditto.
1156 (parse_dn_part): Ditto.
1157 (gpgsm_print_name2): Ditto.
1158 * keylist.c (email_kludge): Ditto.
1159 * certreqgen.c (proc_parameters, create_request): Ditto.
1160 (create_request): Ditto.
1161 * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
1162 (struct cipher_parm_s): Made CIPHERTEXT unsigned.
1163 (struct genkey_parm_s): Ditto.
1164 * server.c (strcpy_escaped_plus): Made arg S signed char*.
1165 * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
1166 (gpgsm_get_keygrip): Ditto.
1167 * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
1168 (keydb_update_cert): Ditto.
1169 (classify_user_id): Apply cast to signed/unsigned assignment.
1172 2005-06-01 Werner Koch <wk@g10code.com>
1174 * misc.c: Include setenv.h.
1176 2005-04-21 Werner Koch <wk@g10code.com>
1178 * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
1179 * certchain.c (gpgsm_validate_chain): Make use of it.
1181 * certchain.c (gpgsm_validate_chain): Check revocations even for
1182 expired certificates. This is required because on signature
1183 verification an expired key is fine whereas a revoked one is not.
1185 2005-04-20 Werner Koch <wk@g10code.com>
1187 * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
1189 2005-04-19 Werner Koch <wk@g10code.com>
1191 * certchain.c (check_cert_policy): Print the diagnostic for a open
1192 failure of policies.txt only in verbose mode or when it is not
1195 2005-04-17 Werner Koch <wk@g10code.com>
1197 * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
1198 * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
1199 this filter. Changed all callers.
1201 * certchain.c (find_up_search_by_keyid): New helper.
1202 (find_up): Also try using the AKI.keyIdentifier.
1203 (find_up_external): Ditto.
1205 2005-04-15 Werner Koch <wk@g10code.com>
1207 * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
1208 well as the keyIdentifier part of the authorityKeyIdentifier.
1210 2005-03-31 Werner Koch <wk@g10code.com>
1212 * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
1213 * call-agent.c (start_agent): Ditto.
1215 2005-03-17 Werner Koch <wk@g10code.com>
1217 * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
1219 * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
1220 failed gcry_pk_verify.
1221 (find_up): Do an external lookup also for an authorityKeyIdentifier
1222 lookup. Factored external lookup code out to ..
1223 (find_up_external): .. new.
1225 2005-03-03 Werner Koch <wk@g10code.com>
1227 * Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
1229 2005-01-13 Werner Koch <wk@g10code.com>
1231 * certreqgen.c (proc_parameters): Cast printf arg.
1233 2004-12-22 Werner Koch <wk@g10code.com>
1235 * gpgsm.c (set_binary): New.
1236 (main, open_read, open_fwrite): Use it.
1238 2004-12-21 Werner Koch <wk@g10code.com>
1240 * gpgsm.c (main): Use default_homedir().
1241 (main) [W32]: Default to disabled CRL checks.
1243 2004-12-20 Werner Koch <wk@g10code.com>
1245 * call-agent.c (start_agent): Before starting a pipe server start
1246 to connect to a server on the standard socket. Use PATHSEP
1247 * call-dirmngr.c (start_dirmngr): Use PATHSEP.
1249 * import.c: Include unistd.h for dup and close.
1251 2004-12-18 Werner Koch <wk@g10code.com>
1253 * gpgsm.h (map_assuan_err): Define in terms of
1254 map_assuan_err_with_source.
1255 * call-agent.c (start_agent): Pass error source to
1256 send_pinentry_environment.
1258 2004-12-17 Werner Koch <wk@g10code.com>
1260 * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
1261 (run_command_status_cb): Return cancel status if gpgsm_status
1264 * server.c (gpgsm_status, gpgsm_status2)
1265 (gpgsm_status_with_err_code): Return an error code.
1266 (gpgsm_status2): Always call va_end().
1268 2004-12-15 Werner Koch <wk@g10code.com>
1270 * call-dirmngr.c (lookup_status_cb): Send progress messages
1272 (isvalid_status_cb): Ditto.
1273 (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
1274 (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
1275 status callback and handle PROGRESS.
1277 * misc.c (setup_pinentry_env) [W32]: Don't use it.
1279 * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
1280 operations and to resolve libassuan symbols.
1281 (run_protect_tool) [W32]: Disable it.
1283 * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
1285 2004-12-07 Werner Koch <wk@g10code.com>
1287 * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
1288 under W32 we need the w32 pth code from jnlib.
1290 * misc.c (setup_pinentry_env) [W32]: Disabled.
1292 2004-12-06 Werner Koch <wk@g10code.com>
1294 * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
1296 * import.c (popen_protect_tool): Simplified by making use of
1297 gnupg_spawn_process.
1298 (parse_p12): Likewise, using gnupg_wait_process.
1299 * export.c (popen_protect_tool): Ditto.
1300 (export_p12): Ditto.
1302 * keydb.c: Don't define DIRSEP_S here.
1304 2004-12-02 Werner Koch <wk@g10code.com>
1306 * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
1307 signature for debugging.
1308 (gpgsm_validate_chain): Ditto.
1310 2004-11-29 Werner Koch <wk@g10code.com>
1312 * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
1314 (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE. This
1315 now allows to add debug flags on top of a debug-level setting.
1317 2004-11-23 Werner Koch <wk@g10code.com>
1319 * gpgsm.c: New option --prefer-system-dirmngr.
1320 * call-dirmngr.c (start_dirmngr): Implement this option.
1322 2004-10-22 Werner Koch <wk@g10code.com>
1324 * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
1325 request PEM header. This is according to the Sphinx standard.
1327 2004-10-08 Moritz Schulte <moritz@g10code.com>
1329 * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
1330 case the no_chain_validation-return-short-cut is used (fixes
1333 2004-10-04 Werner Koch <wk@g10code.com>
1335 * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1337 2004-09-30 Werner Koch <wk@g10code.com>
1339 * gpgsm.c (i18n_init): Always use LC_ALL.
1341 * certdump.c (gpgsm_format_name): Factored code out to ..
1342 (gpgsm_format_name2): .. new.
1343 (gpgsm_print_name): Factored code out to ..
1344 (gpgsm_print_name2): .. new.
1345 (print_dn_part): New arg TRANSLATE. Changed all callers.
1346 (print_dn_parts): Ditto.
1347 (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
1348 it to stay UTF-8 but we still want to filter out bad control
1351 * Makefile.am: Adjusted for gettext 0.14.
1353 * keylist.c (list_cert_colon): Make sure that the expired flag has
1354 a higher precedence than the invalid flag.
1356 2004-09-29 Werner Koch <wk@g10code.com>
1358 * import.c (parse_p12): Write an error status line for bad
1359 passphrases. Add new arg CTRL and changed caller.
1360 * export.c (export_p12): Likewise.
1362 2004-09-14 Werner Koch <wk@g10code.com>
1364 * certchain.c (gpgsm_validate_chain): Give expired certificates a
1365 higher error precedence and don't bother to check any CRL in that
1368 2004-08-24 Werner Koch <wk@g10code.de>
1370 * certlist.c: Fixed typo in ocsp OID.
1372 2004-08-18 Werner Koch <wk@g10code.de>
1374 * certlist.c (gpgsm_cert_use_ocsp_p): New.
1375 (cert_usage_p): Support it here.
1376 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
1378 2004-08-17 Marcus Brinkmann <marcus@g10code.de>
1380 * import.c: Fix typo in last change.
1382 2004-08-17 Werner Koch <wk@g10code.de>
1384 * import.c (check_and_store): Do a full validation if
1385 --with-validation is set.
1387 * certchain.c (gpgsm_basic_cert_check): Print more detailed error
1390 * certcheck.c (do_encode_md): Partly support DSA. Add new arg
1391 PKALGO. Changed all callers to pass it.
1392 (pk_algo_from_sexp): New.
1394 2004-08-16 Werner Koch <wk@g10code.de>
1396 * gpgsm.c: New option --fixed-passphrase.
1397 * import.c (popen_protect_tool): Pass it to the protect-tool.
1399 * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1400 for encrypt-to keys.
1402 2004-08-06 Werner Koch <wk@g10code.com>
1404 * gpgsm.c: New option --with-ephemeral-keys.
1405 * keylist.c (list_internal_keys): Set it here.
1406 (list_cert_raw): And indicate those keys. Changed all our callers
1407 to pass the new arg HD through.
1409 2004-07-23 Werner Koch <wk@g10code.de>
1411 * certreqgen.c (proc_parameters): Do not allow key length below
1414 2004-07-22 Werner Koch <wk@g10code.de>
1416 * keylist.c (list_cert_raw): Print the keygrip.
1418 2004-07-20 Werner Koch <wk@gnupg.org>
1420 * certchain.c (gpgsm_validate_chain): The trust check didn't
1421 worked anymore, probably due to the changes at 2003-03-04. Fixed.
1423 2004-06-06 Werner Koch <wk@gnupg.org>
1425 * certreqgen.c (get_parameter_uint, create_request): Create
1426 an extension for key usage when requested.
1428 2004-05-12 Werner Koch <wk@gnupg.org>
1430 * gpgsm.c (main): Install emergency_cleanup also as an atexit
1433 * verify.c (gpgsm_verify): Removed the separate error code
1434 handling for KSBA. We use shared error codes anyway.
1436 * export.c (export_p12): Removed debugging code.
1438 * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1440 2004-05-11 Werner Koch <wk@gnupg.org>
1442 * sign.c (gpgsm_sign): Include the error source in the final error
1444 * decrypt.c (gpgsm_decrypt): Ditto.
1446 * fingerprint.c (gpgsm_get_key_algo_info): New.
1447 * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1448 * keylist.c (list_cert_colon): Really print the algorithm and key
1450 (list_cert_raw, list_cert_std): Ditto.
1451 (list_cert_colon): Reorganized to be able to tell whether a root
1452 certificate is trusted.
1454 * gpgsm.c: New option --debug-allow-core-dump.
1456 * gpgsm.h (opt): Add member CONFIG_FILENAME.
1457 * gpgsm.c (main): Use it here instead of the local var.
1459 * server.c (gpgsm_server): Print some additional information with
1460 the hello in verbose mode.
1462 2004-04-30 Werner Koch <wk@gnupg.org>
1464 * import.c (check_and_store): Do not update the stats for hidden
1465 imports of issuer certs.
1466 (popen_protect_tool): Request statusmessages from the protect-tool.
1467 (parse_p12): Detect status messages. Add new arg STATS and update them.
1468 (print_imported_summary): Include secret key stats.
1470 2004-04-28 Werner Koch <wk@gnupg.org>
1472 * gpgsm.c: New command --keydb-clear-some-cert-flags.
1473 * keydb.c (keydb_clear_some_cert_flags): New.
1474 (keydb_update_keyblock, keydb_set_flags): Change error code
1475 CONFLICT to NOT_LOCKED.
1477 2004-04-26 Werner Koch <wk@gnupg.org>
1479 * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1482 * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)
1483 (gpgsm_agent_genkey, gpgsm_agent_istrusted)
1484 (gpgsm_agent_marktrusted, gpgsm_agent_havekey)
1485 (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1486 (start_agent): New arg CTRL. Send progress item when starting a
1488 * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1489 CTRL to be passed down to the agent function.
1490 * decrypt.c (prepare_decryption): Ditto.
1491 * certreqgen.c (proc_parameters, read_parameters): Ditto.
1492 * certcheck.c (gpgsm_create_cms_signature): Ditto.
1494 2004-04-23 Werner Koch <wk@gnupg.org>
1496 * keydb.c (keydb_add_resource): Try to compress the file on init.
1498 * keylist.c (oidtranstbl): New. OIDs collected from several sources.
1499 (print_name_raw, print_names_raw, list_cert_raw): New.
1500 (gpgsm_list_keys): Check the dump mode and pass it down as
1503 2004-04-22 Werner Koch <wk@gnupg.org>
1505 * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1508 2004-04-13 Werner Koch <wk@gnupg.org>
1510 * misc.c (setup_pinentry_env): New.
1511 * import.c (popen_protect_tool): Call it.
1512 * export.c (popen_protect_tool): Call it.
1514 2004-04-08 Werner Koch <wk@gnupg.org>
1516 * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
1519 2004-04-07 Werner Koch <wk@gnupg.org>
1521 * gpgsm.c: New option --force-crl-refresh.
1522 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1524 2004-04-05 Werner Koch <wk@gnupg.org>
1526 * server.c (get_status_string): Add STATUS_NEWSIG.
1527 * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1529 * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1530 not just warn if a cert is not suitable; bail out immediately.
1532 2004-04-01 Werner Koch <wk@gnupg.org>
1534 * call-dirmngr.c (isvalid_status_cb): New.
1535 (unhexify_fpr): New. Taken from ../g10/call-agent.c
1536 (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1537 it thru. Detect need to check the respondert cert and do that.
1538 * certchain.c (gpgsm_validate_chain): Add new arg FLAGS. Changed
1541 2004-03-24 Werner Koch <wk@gnupg.org>
1543 * sign.c (gpgsm_sign): Include a short list of capabilities.
1545 2004-03-17 Werner Koch <wk@gnupg.org>
1547 * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1549 2004-03-16 Werner Koch <wk@gnupg.org>
1551 * gpgsm.c (main): Implemented --gpgconf-list.
1553 2004-03-15 Werner Koch <wk@gnupg.org>
1555 * keylist.c (list_cert_colon): Hack to set the expired flag.
1557 2004-03-09 Werner Koch <wk@gnupg.org>
1559 * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1561 * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1563 2004-03-04 Werner Koch <wk@gnupg.org>
1565 * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1567 * certchain.c (is_cert_still_valid): New. Code moved from ...
1568 (gpgsm_validate_chain): ... here because we now need to check at
1569 two places and at a later stage, so that we can pass the issuer
1570 cert down to the dirmngr.
1572 2004-03-03 Werner Koch <wk@gnupg.org>
1574 * call-agent.c (start_agent): Replaced pinentry setup code by a
1575 call to a new common function.
1577 * certdump.c (gpgsm_format_keydesc): Make sure the string is
1580 * export.c (gpgsm_export): Make sure that we don't export more
1581 than one certificate.
1583 2004-03-02 Werner Koch <wk@gnupg.org>
1585 * export.c (create_duptable, destroy_duptable)
1586 (insert_duptable): New.
1587 (gpgsm_export): Avoid duplicates.
1589 2004-02-26 Werner Koch <wk@gnupg.org>
1591 * certchain.c (compare_certs): New.
1592 (gpgsm_validate_chain): Fixed infinite certificate checks after
1595 2004-02-24 Werner Koch <wk@gnupg.org>
1597 * keylist.c (list_cert_colon): Print the fingerprint as the
1598 cert-id for root certificates.
1600 2004-02-21 Werner Koch <wk@gnupg.org>
1602 * keylist.c (list_internal_keys): Return error codes.
1603 (list_external_keys, gpgsm_list_keys): Ditto.
1604 * server.c (do_listkeys): Ditto.
1606 * gpgsm.c (main): Display a key description for --passwd.
1607 * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1609 2004-02-20 Werner Koch <wk@gnupg.org>
1611 * gpgsm.c (main): New option --debug-ignore-expiration.
1612 * certchain.c (gpgsm_validate_chain): Use it here.
1614 * certlist.c (cert_usage_p): Apply extKeyUsage.
1616 2004-02-19 Werner Koch <wk@gnupg.org>
1618 * export.c (export_p12, popen_protect_tool)
1619 (gpgsm_p12_export): New.
1620 * gpgsm.c (main): New command --export-secret-key-p12.
1622 2004-02-18 Werner Koch <wk@gnupg.org>
1624 * gpgsm.c (set_debug): Set the new --debug-level flags.
1625 (main): New option --gpgconf-list.
1626 (main): Do not setup -u and -r keys when not required.
1627 (main): Setup the used character set.
1629 * keydb.c (keydb_add_resource): Print a hint to start the
1632 2004-02-17 Werner Koch <wk@gnupg.org>
1634 * gpgsm.c: Fixed value parsing for --with-validation.
1635 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1636 * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1638 * gpgsm.c: New option --with-md5-fingerprint.
1639 * keylist.c (list_cert_std): Print MD5 fpr.
1641 * gpgsm.c: New options --with-validation.
1642 * server.c (option_handler): New option "with-validation".
1643 * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1644 WITH_VALIDATION. Changed callers to set it.
1645 (list_external_cb, list_external_keys): Pass CTRL to the callback.
1646 (list_cert_colon): Add arg CTRL. Check validation if requested.
1647 * certchain.c (unknown_criticals, allowed_ca, check_cert_policy)
1648 (gpgsm_validate_chain): New args LISTMODE and FP.
1649 (do_list): New helper for info output.
1650 (find_up): New arg FIND_NEXT.
1651 (gpgsm_validate_chain): After a bad signature try again with other
1654 * import.c (print_imported_status): New arg NEW_CERT. Print
1655 additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1656 (check_and_store): Always call above function after import.
1657 * server.c (get_status_string): Added STATUS_IMPORT_OK.
1659 2004-02-13 Werner Koch <wk@gnupg.org>
1661 * certcheck.c (gpgsm_create_cms_signature): Format a description
1662 for use by the pinentry.
1663 * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1664 * certdump.c (format_name_cookie, format_name_writer)
1665 (gpgsm_format_name): New.
1666 (gpgsm_format_serial): New.
1667 (gpgsm_format_keydesc): New.
1668 * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1669 (gpgsm_agent_pkdecrypt): Ditto.
1671 * encrypt.c (init_dek): Check for too weak algorithms.
1673 * import.c (parse_p12, popen_protect_tool): New.
1675 * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1676 Changed all callers.
1677 (base64_reader_cb): Handle it here.
1678 (gpgsm_reader_eof_seen): New.
1679 (base64_reader_cb): Set a flag for EOF.
1680 (simple_reader_cb): Ditto.
1682 2004-02-12 Werner Koch <wk@gnupg.org>
1684 * gpgsm.h, gpgsm.c: New option --protect-tool-program.
1685 * gpgsm.c (run_protect_tool): Use it.
1687 2004-02-11 Werner Koch <wk@gnupg.org>
1689 * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
1690 will allow to override directory names at make time.
1692 2004-02-02 Werner Koch <wk@gnupg.org>
1694 * import.c (check_and_store): Import certificates even with
1695 missing issuer's cert. Fixed an "depending on the verbose
1698 * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
1701 * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
1703 (list_internal_keys): Retrieve validity flag.
1704 (list_external_cb): Pass 0 as validity flag.
1705 * keydb.c (keydb_get_flags, keydb_set_flags): New.
1706 (keydb_set_cert_flags): New.
1707 (lock_all): Return a proper error code.
1709 (keydb_delete): Don't lock but check that it has been locked.
1710 (keydb_update_keyblock): Ditto.
1711 * delete.c (delete_one): Take a lock.
1713 2004-01-30 Werner Koch <wk@gnupg.org>
1715 * certchain.c (check_cert_policy): Fixed read error checking.
1716 (check_cert_policy): With no critical policies issue only a
1717 warning if the policy file does not exists.
1719 * sign.c (add_certificate_list): Decrement N for the first cert.
1721 2004-01-29 Werner Koch <wk@gnupg.org>
1723 * certdump.c (parse_dn_part): Map common OIDs to human readable
1724 labels. Make sure that a value won't get truncated if it includes
1727 2004-01-28 Werner Koch <wk@gnupg.org>
1729 * certchain.c (gpgsm_validate_chain): Changed the message printed
1730 for an untrusted root certificate.
1732 2004-01-27 Werner Koch <wk@gnupg.org>
1734 * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
1735 (print_dn_part): Do not delimit multiple RDN by " + ". Handle
1736 multi-valued RDNs in a special way, i.e. in the order specified by
1738 (print_dn_parts): Simplified.
1740 2004-01-16 Werner Koch <wk@gnupg.org>
1742 * sign.c (gpgsm_sign): Print an error message on all failures.
1743 * decrypt.c (gpgsm_decrypt): Ditto.
1745 2003-12-17 Werner Koch <wk@gnupg.org>
1747 * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
1748 (cmd_encrypt): Add all enrypt-to marked certs to the list.
1749 * encrypt.c (gpgsm_encrypt): Check that real recipients are
1751 * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
1752 options work. Pass the list of recients to gpgsm_server.
1753 * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
1754 (opt): Add NO_ENCRYPT_TO.
1755 * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
1756 Changed all callers and ignore duplicate entries.
1757 (is_cert_in_certlist): New.
1758 (gpgsm_add_cert_to_certlist): New.
1760 * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
1761 (gpgsm_dump_serial): Ditto.
1763 * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
1765 2003-12-16 Werner Koch <wk@gnupg.org>
1767 * gpgsm.c (main): Set the prefixes for assuan logging.
1769 * sign.c (gpgsm_sign): Add validation checks for the default
1772 * gpgsm.c: Add -k as alias for --list-keys and -K for
1775 2003-12-15 Werner Koch <wk@gnupg.org>
1777 * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
1778 not need for real strong random here and it even better protect
1779 the random bits used for the key.
1781 2003-12-01 Werner Koch <wk@gnupg.org>
1783 * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
1784 (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
1785 * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
1786 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
1787 proceed accordingly.
1789 2003-11-19 Werner Koch <wk@gnupg.org>
1791 * verify.c (gpgsm_verify): Use "0" instead of an empty string for
1792 the VALIDSIG status.
1794 2003-11-18 Werner Koch <wk@gnupg.org>
1796 * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
1798 * certchain.c (unknown_criticals): Fixed an error code test.
1800 2003-11-12 Werner Koch <wk@gnupg.org>
1802 Adjusted for API changes in Libksba.
1804 2003-10-31 Werner Koch <wk@gnupg.org>
1806 * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
1807 * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
1808 * sign.c (gpgsm_sign): Ditto.
1809 * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
1810 * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
1813 2003-10-25 Werner Koch <wk@gnupg.org>
1815 * certreqgen.c (read_parameters): Fixed faulty of !spacep().
1817 2003-08-20 Marcus Brinkmann <marcus@g10code.de>
1819 * encrypt.c (encode_session_key): Allocate enough space. Cast key
1820 byte to unsigned char to prevent sign extension.
1821 (encrypt_dek): Check return value before error.
1823 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1825 * encrypt.c (encode_session_key): Use new Libgcrypt interface.
1827 2003-07-31 Werner Koch <wk@gnupg.org>
1829 * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
1831 2003-07-29 Werner Koch <wk@gnupg.org>
1833 * gpgsm.c (main): Add secmem features and set the random seed file.
1834 (gpgsm_exit): Update the random seed file and enable debug output.
1836 2003-07-27 Werner Koch <wk@gnupg.org>
1838 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1840 2003-06-24 Werner Koch <wk@gnupg.org>
1842 * server.c (gpgsm_status_with_err_code): New.
1843 * verify.c (gpgsm_verify): Use it here instead of the old
1846 * verify.c (strtimestamp): Renamed to strtimestamp_r
1848 Adjusted for changes in the libgcrypt API. Some more fixes for the
1851 2003-06-04 Werner Koch <wk@gnupg.org>
1853 * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
1854 Include new membuf header and changed used type.
1856 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1858 2003-06-03 Werner Koch <wk@gnupg.org>
1860 Changed all error codes in all files to the new libgpg-error scheme.
1862 * gpgsm.h: Include gpg-error.h .
1863 * Makefile.am: Link with libgpg-error.
1865 2003-04-29 Werner Koch <wk@gnupg.org>
1867 * Makefile.am: Use libassuan. Don't override LDFLAGS anymore.
1868 * server.c (register_commands): Adjust for new Assuan semantics.
1870 2002-12-03 Werner Koch <wk@gnupg.org>
1872 * call-agent.c (gpgsm_agent_passwd): New.
1873 * gpgsm.c (main): New command --passwd and --call-protect-tool
1874 (run_protect_tool): New.
1876 2002-11-25 Werner Koch <wk@gnupg.org>
1878 * verify.c (gpgsm_verify): Handle content-type attribute.
1880 2002-11-13 Werner Koch <wk@gnupg.org>
1882 * call-agent.c (start_agent): Try to use $GPG_TTY instead of
1883 ttyname. Changed ttyname to test stdin becuase it can be assumed
1884 that output redirection is more common that input redirection.
1886 2002-11-12 Werner Koch <wk@gnupg.org>
1888 * gpgsm.c: New command --call-dirmngr.
1889 * call-dirmngr.c (gpgsm_dirmngr_run_command)
1890 (run_command_inq_cb,run_command_cb)
1891 (run_command_status_cb): New.
1893 2002-11-11 Werner Koch <wk@gnupg.org>
1895 * certcheck.c (gpgsm_check_cms_signature): Don't double free
1896 s_sig but free s_pkey at leave.
1898 2002-11-10 Werner Koch <wk@gnupg.org>
1900 * gpgsm.c: Removed duplicate --list-secret-key entry.
1902 2002-09-19 Werner Koch <wk@gnupg.org>
1904 * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
1906 * certchain.c (find_up): Print info when the cert was not found
1907 by the autorithyKeyIdentifier.
1909 2002-09-03 Werner Koch <wk@gnupg.org>
1911 * gpgsm.c (main): Disable the internal libgcrypt locking.
1913 2002-08-21 Werner Koch <wk@gnupg.org>
1915 * import.c (print_imported_summary): Cleaned up. Print new
1917 (check_and_store): Update non_imported counter.
1918 (print_import_problem): New.
1919 (check_and_store): Print error status message.
1920 * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
1922 2002-08-20 Werner Koch <wk@gnupg.org>
1924 * gpgsm.c (main): Use the log file only in server mode.
1926 * import.c (print_imported_summary): New.
1927 (check_and_store): Update the counters, take new argument.
1928 (import_one): Factored out core of gpgsm_import.
1929 (gpgsm_import): Print counters.
1930 (gpgsm_import_files): New.
1931 * gpgsm.c (main): Use the new function for import.
1933 2002-08-19 Werner Koch <wk@gnupg.org>
1935 * decrypt.c (gpgsm_decrypt): Return a better error status token.
1936 * verify.c (gpgsm_verify): Don't error on messages with no signing
1937 time or no message digest. This is only the case for messages
1938 without any signed attributes.
1940 2002-08-16 Werner Koch <wk@gnupg.org>
1942 * certpath.c: Renamed to ..
1943 * certchain.c: this. Renamed all all other usages of "path" in the
1944 context of certificates to "chain".
1946 * call-agent.c (learn_cb): Special treatment when the issuer
1947 certificate is missing.
1949 2002-08-10 Werner Koch <wk@gnupg.org>
1951 * Makefile.am (INCLUDES): Add definition for localedir.
1953 * keylist.c (list_cert_colon): Print the short fingerprint in the
1955 * fingerprint.c (gpgsm_get_short_fingerprint): New.
1956 * verify.c (gpgsm_verify): Print more verbose info for a good
1959 2002-08-09 Werner Koch <wk@gnupg.org>
1961 * decrypt.c (prepare_decryption): Hack to detected already
1964 * gpgsm.c (emergency_cleanup): New.
1965 (main): Initialize the signal handler.
1967 * sign.c (gpgsm_sign): Reset the hash context for subsequent
1968 signers and release it at the end.
1970 2002-08-05 Werner Koch <wk@gnupg.org>
1972 * server.c (cmd_signer): New command "SIGNER"
1973 (register_commands): Register it.
1974 (cmd_sign): Pass the signer list to gpgsm_sign.
1975 * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
1976 for secret key if set and changed all callers.
1977 * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
1979 * gpgsm.c (main): Support more than one -u.
1981 * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
1982 which is actually what gets returned from add_to_certlist.
1984 2002-07-26 Werner Koch <wk@gnupg.org>
1986 * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
1987 (gpgsm_check_cms_signature): Ditto.
1989 2002-07-22 Werner Koch <wk@gnupg.org>
1991 * keydb.c (keydb_add_resource): Register a lock file.
1992 (lock_all, unlock_all): Implemented.
1995 * gpgsm.c: Made --delete-key work.
1996 * server.c (cmd_delkeys): New.
1997 (register_commands): New command DELKEYS.
1999 * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
2000 used and a STATUS_ERROR with the algorithm oid.
2002 2002-07-03 Werner Koch <wk@gnupg.org>
2004 * server.c (gpgsm_status2): Insert a blank between all optional
2005 arguments when using assuan.
2006 * server.c (cmd_recipient): No more need for extra blank in constants.
2007 * import.c (print_imported_status): Ditto.
2008 * gpgsm.c (main): Ditto.
2010 2002-07-02 Werner Koch <wk@gnupg.org>
2012 * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
2015 * certpath.c (check_cert_policy): Don't use log_error to print a
2018 * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
2020 * call-agent.c (learn_cb): Print info message only for real imports.
2022 * import.c (gpgsm_import): Moved duplicated code to ...
2023 (check_and_store): new function. Added magic to import the entire
2024 chain. Print status only for real imports and moved printing code
2026 (print_imported_status): New.
2028 * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
2029 call in very verbose mode.
2031 * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
2032 with the server mode.
2034 2002-06-29 Werner Koch <wk@gnupg.org>
2036 * gpgsm.c: New option --auto-issuer-key-retrieve.
2037 * certpath.c (find_up): Try to retrieve an issuer key from an
2038 external source and from the ephemeral key DB.
2039 (find_up_store_certs_cb): New.
2041 * keydb.c (keydb_set_ephemeral): Does now return the old
2042 state. Call the backend only when required.
2044 * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
2045 (lookup_status_cb): Issue status only when CTRL is not NULL.
2046 (gpgsm_dirmngr_lookup): Document that CTRL is optional.
2048 * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
2050 2002-06-28 Werner Koch <wk@gnupg.org>
2052 * server.c (cmd_recipient): Add more reason codes.
2054 2002-06-27 Werner Koch <wk@gnupg.org>
2056 * certpath.c (gpgsm_basic_cert_check): Use
2057 --debug-no-path-validation to also bypass this basic check.
2059 * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
2061 * call-agent.c (start_agent): Create and pass the list of FD to
2062 keep in the child to assuan.
2063 * call-dirmngr.c (start_dirmngr): Ditto.
2065 2002-06-26 Werner Koch <wk@gnupg.org>
2067 * import.c (gpgsm_import): Print an STATUS_IMPORTED.
2069 * gpgsm.c: --debug-no-path-validation does not take an argument.
2071 2002-06-25 Werner Koch <wk@gnupg.org>
2073 * certdump.c (print_dn_part): Always print a leading slash,
2074 removed NEED_DELIM arg and changed caller.
2076 * export.c (gpgsm_export): Print LFs to FP and not stdout.
2077 (print_short_info): Ditto. Make use of gpgsm_print_name.
2079 * server.c (cmd_export): Use output-fd instead of data lines; this
2080 was actually the specified way.
2082 2002-06-24 Werner Koch <wk@gnupg.org>
2084 * gpgsm.c: Removed duped help entry for --list-keys.
2086 * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
2088 * certpath.c (gpgsm_validate_path): Use it here instead of the
2091 * certpath.c (check_cert_policy): Return No_Policy_Match if the
2092 policy file could not be opened.
2094 2002-06-20 Werner Koch <wk@gnupg.org>
2096 * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
2097 certificate with the required key usage.
2099 * gpgsm.c (main): Fixed a segv when using --outfile without an
2102 * keylist.c (print_capabilities): Also check for non-repudiation
2103 and data encipherment.
2104 * certlist.c (cert_usage_p): Test for signing and encryption was
2105 swapped. Add a case for certification usage, handle
2106 non-repudiation and data encipherment.
2107 (gpgsm_cert_use_cert_p): New.
2108 (gpgsm_add_to_certlist): Added a CTRL argument and changed all
2110 * certpath.c (gpgsm_validate_path): Use it here to print a status
2111 message. Added a CTRL argument and changed all callers to pass it.
2112 * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
2114 * verify.c (gpgsm_verify): Ditto.
2115 * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2117 2002-06-19 Werner Koch <wk@gnupg.org>
2119 * call-agent.c (learn_cb): Use log_info instead of log_error on
2122 * keydb.c (keydb_set_ephemeral): New.
2123 (keydb_store_cert): New are ephemeral, changed all callers.
2124 * keylist.c (list_external_cb): Store cert as ephemeral.
2125 * export.c (gpgsm_export): Kludge to export epehmeral certificates.
2127 * gpgsm.c (main): New command --list-external-keys.
2129 2002-06-17 Werner Koch <wk@gnupg.org>
2131 * certreqgen.c (read_parameters): Improved error handling.
2132 (gpgsm_genkey): Print error message.
2134 2002-06-13 Werner Koch <wk@gnupg.org>
2136 * gpgsm.c (main): New option --log-file.
2138 2002-06-12 Werner Koch <wk@gnupg.org>
2140 * call-dirmngr.c (lookup_status_cb): New.
2141 (gpgsm_dirmngr_lookup): Use the status CB. Add new arg CTRL and
2142 changed caller to pass it.
2144 * gpgsm.c (open_fwrite): New.
2145 (main): Allow --output for --verify.
2147 * sign.c (hash_and_copy_data): New.
2148 (gpgsm_sign): Implemented normal (non-detached) signatures.
2149 * gpgsm.c (main): Ditto.
2151 * certpath.c (gpgsm_validate_path): Special error handling for
2154 2002-06-10 Werner Koch <wk@gnupg.org>
2156 * server.c (get_status_string): Add STATUS_ERROR.
2158 * certpath.c (gpgsm_validate_path): Tweaked the error checking to
2159 return error codes in a more sensitive way.
2160 * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
2161 CA certificate and when the certificate has been revoked. Issue
2162 TRUST_FULLY even when the cert has expired. Append an error token
2163 to these status lines. Issue the new generic error status when a
2164 cert was not found and when leaving the function.
2166 2002-06-04 Werner Koch <wk@gnupg.org>
2168 * gpgsm.c (main): New command --list-sigs
2169 * keylist.c (list_cert_std): New. Use it whenever colon mode is
2171 (list_cert_chain): New.
2173 2002-05-31 Werner Koch <wk@gnupg.org>
2175 * gpgsm.c (main): Don't print the "go ahead" message for an
2178 2002-05-23 Werner Koch <wk@gnupg.org>
2180 * import.c (gpgsm_import): Add error messages.
2182 2002-05-21 Werner Koch <wk@gnupg.org>
2184 * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
2185 (list_external_keys): New.
2186 (gpgsm_list_keys): Dispatcher for above.
2187 * call-dirmngr.c (lookup_cb,pattern_from_strlist)
2188 (gpgsm_dirmngr_lookup): New.
2189 * server.c (option_handler): Handle new option --list-mode.
2190 (do_listkeys): Handle options and actually use the mode argument.
2191 (get_status_string): New code TRUNCATED.
2193 * import.c (gpgsm_import): Try to identify the type of input and
2194 handle certs-only messages.
2196 2002-05-14 Werner Koch <wk@gnupg.org>
2198 * gpgsm.c: New option --faked-system-time
2199 * sign.c (gpgsm_sign): And use it here.
2200 * certpath.c (gpgsm_validate_path): Ditto.
2202 2002-05-03 Werner Koch <wk@gnupg.org>
2204 * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
2206 * verify.c (gpgsm_verify): Tweaked usage of log_debug and
2207 log_error. Return EXPSIG status and add expiretime to VALIDSIG.
2209 2002-04-26 Werner Koch <wk@gnupg.org>
2211 * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
2214 * call-agent.c (start_agent): Be more silent without -v.
2215 * call-dirmngr.c (start_dirmngr): Ditto.
2217 2002-04-25 Werner Koch <wk@gnupg.org>
2219 * call-agent.c (start_agent): Make copies of old locales and check
2222 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2224 * call-agent.c (start_agent): Fix error handling logic so the
2225 locale is always correctly reset.
2227 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2229 * server.c (option_handler): Accept display, ttyname, ttytype,
2230 lc_ctype and lc_messages options.
2231 * gpgsm.c (main): Allocate memory for these options.
2232 * gpgsm.h (struct opt): Make corresponding members non-const.
2234 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
2236 * gpgsm.h (struct opt): New members display, ttyname, ttytype,
2237 lc_ctype, lc_messages.
2238 * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
2239 oTTYname, oTTYtype, oLCctype, oLCmessages.
2240 (opts): New entries for these options.
2241 (main): Handle these new options.
2242 * call-agent.c (start_agent): Set the various display and tty
2243 parameter after resetting.
2245 2002-04-18 Werner Koch <wk@gnupg.org>
2247 * certreqgen.c (gpgsm_genkey): Write status output on success.
2249 2002-04-15 Werner Koch <wk@gnupg.org>
2251 * gpgsm.c (main): Check ksba version.
2253 * certpath.c (find_up): New to use the authorithKeyIdentifier.
2254 Use it in all other functions to locate the signing cert..
2256 2002-04-11 Werner Koch <wk@gnupg.org>
2258 * certlist.c (cert_usable_p): New.
2259 (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
2260 (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
2261 (gpgsm_add_to_certlist): Check the key usage.
2262 * sign.c (gpgsm_sign): Ditto.
2263 * verify.c (gpgsm_verify): Print a message wehn an unsuitable
2264 certificate was used.
2265 * decrypt.c (gpgsm_decrypt): Ditto
2266 * keylist.c (print_capabilities): Determine values from the cert.
2268 2002-03-28 Werner Koch <wk@gnupg.org>
2270 * keylist.c (list_cert_colon): Fixed listing of crt record; the
2271 issuer is not at the right place. Print a chainingID.
2272 * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
2275 2002-03-21 Werner Koch <wk@gnupg.org>
2278 * gpgsm.c: Add command --export.
2279 * server.c (cmd_export): New.
2281 2002-03-13 Werner Koch <wk@gnupg.org>
2283 * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
2285 2002-03-12 Werner Koch <wk@gnupg.org>
2287 * certpath.c (check_cert_policy): Print the policy list.
2289 * verify.c (gpgsm_verify): Detect certs-only message.
2291 2002-03-11 Werner Koch <wk@gnupg.org>
2293 * import.c (gpgsm_import): Print a notice about imported certificates
2294 when in verbose mode.
2296 * gpgsm.c (main): Print INV_RECP status.
2297 * server.c (cmd_recipient): Ditto.
2299 * server.c (gpgsm_status2): New. Allows for a list of strings.
2300 (gpgsm_status): Divert to gpgsm_status2.
2302 * encrypt.c (gpgsm_encrypt): Don't use a default key when no
2303 recipients are given. Print a NO_RECP status.
2305 2002-03-06 Werner Koch <wk@gnupg.org>
2307 * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
2308 (do_listkeys): new. Add pattern parsing.
2310 * keylist.c (gpgsm_list_keys): Handle selection pattern.
2312 * gpgsm.c: New command --learn-card
2313 * call-agent.c (learn_cb,gpgsm_agent_learn): New.
2315 * gpgsm.c (main): Print error messages for non-implemented commands.
2317 * base64.c (base64_reader_cb): Use case insensitive compare of the
2318 Content-Type string to detect plain base-64.
2320 2002-03-05 Werner Koch <wk@gnupg.org>
2322 * gpgsm.c, gpgsm.h: Add local_user.
2323 * sign.c (gpgsm_get_default_cert): New.
2324 (get_default_signer): Use the new function if local_user is not
2325 set otherwise used that value.
2326 * encrypt.c (get_default_recipient): Removed.
2327 (gpgsm_encrypt): Use gpgsm_get_default_cert.
2329 * verify.c (gpgsm_verify): Better error text for a bad signature
2330 found by comparing the hashs.
2332 2002-02-27 Werner Koch <wk@gnupg.org>
2334 * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2337 2002-02-25 Werner Koch <wk@gnupg.org>
2339 * server.c (option_handler): Allow to use -2 for "send all certs
2340 except the root cert".
2341 * sign.c (add_certificate_list): Implement it here.
2342 * certpath.c (gpgsm_is_root_cert): New.
2344 2002-02-19 Werner Koch <wk@gnupg.org>
2346 * certpath.c (check_cert_policy): New.
2347 (gpgsm_validate_path): And call it from here.
2348 * gpgsm.c (main): New options --policy-file,
2349 --disable-policy-checks and --enable-policy-checks.
2350 * gpgsm.h (opt): Added policy_file, no_policy_checks.
2352 2002-02-18 Werner Koch <wk@gnupg.org>
2354 * certpath.c (gpgsm_validate_path): Ask the agent to add the
2355 certificate into the trusted list.
2356 * call-agent.c (gpgsm_agent_marktrusted): New.
2358 2002-02-07 Werner Koch <wk@gnupg.org>
2360 * certlist.c (gpgsm_add_to_certlist): Check that the specified
2361 name identifies a certificate unambiguously.
2362 (gpgsm_find_cert): Ditto.
2364 * server.c (cmd_listkeys): Check that the data stream is available.
2365 (cmd_listsecretkeys): Ditto.
2367 (cmd_sign): Fix ambiguousity in option recognition.
2369 * gpgsm.c (main): Enable --logger-fd.
2371 * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2374 * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2377 * keylist.c (list_cert_colon): Filter out control characters.
2379 2002-02-06 Werner Koch <wk@gnupg.org>
2381 * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
2383 * server.c (reset_notify): Close input and output FDs.
2384 (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
2385 (cmd_genkey): Close the FDs and release the recipient list even in
2388 2002-02-01 Marcus Brinkmann <marcus@g10code.de>
2390 * sign.c (gpgsm_sign): Do not release certificate twice.
2392 2002-01-29 Werner Koch <wk@gnupg.org>
2394 * call-agent.c (gpgsm_agent_havekey): New.
2395 * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
2396 when we know that the secret key is available.
2397 (gpgsm_list_keys): New arg MODE, check whether a secret key is
2398 available. Changed all callers.
2399 * gpgsm.c (main): New command --list-secret-keys.
2400 * server.c (cmd_listsecretkeys): New.
2401 (cmd_listkeys): Return secret keys with "crs" record.
2403 2002-01-28 Werner Koch <wk@gnupg.org>
2405 * certreqgen.c (create_request): Store the email address in the req.
2407 2002-01-25 Werner Koch <wk@gnupg.org>
2409 * gpgsm.c (main): Disable core dumps.
2411 * sign.c (add_certificate_list): New.
2412 (gpgsm_sign): Add the certificates to the CMS object.
2413 * certpath.c (gpgsm_walk_cert_chain): New.
2414 * gpgsm.h (server_control_s): Add included_certs.
2415 * gpgsm.c: Add option --include-certs.
2416 (gpgsm_init_default_ctrl): New.
2418 * server.c (gpgsm_server): Ditto.
2419 (option_handler): Support --include-certs.
2421 2002-01-23 Werner Koch <wk@gnupg.org>
2423 * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
2424 * certdump.c (gpgsm_dump_string): New.
2425 (print_dn): Replaced by above.
2427 2002-01-22 Werner Koch <wk@gnupg.org>
2429 * certpath.c (unknown_criticals): New.
2431 (gpgsm_validate_path): Check validity, CA attribute, path length
2432 and unknown critical extensions.
2434 2002-01-21 Werner Koch <wk@gnupg.org>
2436 * gpgsm.c: Add option --enable-crl-checks.
2438 * call-agent.c (start_agent): Implemented socket based access.
2439 * call-dirmngr.c (start_dirmngr): Ditto.
2441 2002-01-20 Werner Koch <wk@gnupg.org>
2443 * server.c (option_handler): New.
2444 (gpgsm_server): Register it with assuan.
2446 2002-01-19 Werner Koch <wk@gnupg.org>
2448 * server.c (gpgsm_server): Use assuan_deinit_server and setup
2449 assuan logging if enabled.
2450 * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2453 * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2455 2002-01-15 Werner Koch <wk@gnupg.org>
2457 * import.c (gpgsm_import): Just do a basic cert check before
2459 * certpath.c (gpgsm_basic_cert_check): New.
2461 * keydb.c (keydb_store_cert): New.
2462 * import.c (store_cert): Removed and change all caller to use
2464 * verify.c (store_cert): Ditto.
2466 * certlist.c (gpgsm_add_to_certlist): Validate the path
2468 * certpath.c (gpgsm_validate_path): Check the trust list.
2469 * call-agent.c (gpgsm_agent_istrusted): New.
2471 2002-01-14 Werner Koch <wk@gnupg.org>
2473 * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2474 * certlist.c (gpgsm_find_cert): New.
2476 2002-01-13 Werner Koch <wk@gnupg.org>
2478 * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2481 2002-01-11 Werner Koch <wk@gnupg.org>
2483 * call-dirmngr.c: New.
2484 * certpath.c (gpgsm_validate_path): Check the CRL here.
2485 * fingerprint.c (gpgsm_get_certid): New.
2486 * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2488 2002-01-10 Werner Koch <wk@gnupg.org>
2490 * base64.c (gpgsm_create_writer): Allow to set the object name
2492 2002-01-08 Werner Koch <wk@gnupg.org>
2494 * keydb.c (spacep): Removed because it is now in util.c
2496 * server.c (cmd_genkey): New.
2497 * certreqgen.c: New. The parameter handling code has been taken
2498 from gnupg/g10/keygen.c version 1.0.6.
2499 * call-agent.c (gpgsm_agent_genkey): New.
2501 2002-01-02 Werner Koch <wk@gnupg.org>
2503 * server.c (rc_to_assuan_status): Removed and changed all callers
2504 to use map_to_assuan_status.
2506 2001-12-20 Werner Koch <wk@gnupg.org>
2508 * verify.c (gpgsm_verify): Implemented non-detached signature
2509 verification. Add OUT_FP arg, initialize a writer and changed all
2511 * server.c (cmd_verify): Pass an out_fp if one has been set.
2513 * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2515 * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2517 (print_time): Renamed to gpgsm_dump_time, made global.
2518 (gpgsm_dump_serial): Take a real S-Expression as argument and
2519 print the first item.
2520 * keylist.c (list_cert_colon): Ditto.
2521 * keydb.c (keydb_search_issuer_sn): Ditto.
2522 * decrypt.c (print_integer_sexp): Removed and made callers
2523 use gpgsm_dump_serial.
2524 * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2526 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2528 * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2530 2001-12-18 Werner Koch <wk@gnupg.org>
2532 * verify.c (print_integer_sexp): Renamed from print_integer and
2533 print the serial number according to the S-Exp rules.
2534 * decrypt.c (print_integer_sexp): Ditto.
2536 2001-12-17 Werner Koch <wk@gnupg.org>
2538 * keylist.c (list_cert_colon): Changed for new return value of
2540 * keydb.c (keydb_search_issuer_sn): Ditto.
2541 * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2542 returingin functions.
2543 * fingerprint.c (gpgsm_get_keygrip): Ditto.
2544 * encrypt.c (encrypt_dek): Ditto
2545 * certcheck.c (gpgsm_check_cms_signature): Ditto
2546 * decrypt.c (prepare_decryption): Ditto.
2547 * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2548 use KsbaSexp type and calculate the length.
2550 * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2552 * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2554 * fingerprint.c (gpgsm_get_keygrip): Use the new
2555 gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2556 therefore the grip values changed.
2558 2001-12-15 Werner Koch <wk@gnupg.org>
2560 * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2562 (gpgsm_create_cms_signature): Removed the commented fake key
2563 code. This makes the function pretty simple.
2565 * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2567 * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2568 * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2570 2001-12-14 Werner Koch <wk@gnupg.org>
2572 * keylist.c (list_cert_colon): Kludge to show an email address
2573 encoded in the subject's DN.
2575 * verify.c (gpgsm_verify): Add hash debug helpers
2576 * sign.c (gpgsm_sign): Ditto.
2578 * base64.c (base64_reader_cb): Reset the linelen when we need to
2579 skip the line and adjusted test; I somehow forgot about DeMorgan.
2581 * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify)
2582 (cmd_import): Close the FDs on success.
2583 (close_message_fd): New.
2584 (input_notify): Setting autodetect_encoding to 0 after initializing
2585 it to 0 is pretty pointless. Easy to fix.
2587 * gpgsm.c (main): New option --debug-wait n, so that it is
2588 possible to attach gdb when used in server mode.
2590 * sign.c (get_default_signer): Use keydb_classify_name here.
2592 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2594 * call-agent.c (LINELENGTH): Removed.
2595 (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2596 (gpgsm_agent_pkdecrypt): Likewise.
2598 2001-12-13 Werner Koch <wk@gnupg.org>
2600 * keylist.c (list_cert_colon): Print alternative names of subject
2601 and a few other values.
2603 2001-12-12 Werner Koch <wk@gnupg.org>
2605 * gpgsm.c (main): New options --assume-{armor,base64,binary}.
2606 * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2608 2001-12-04 Werner Koch <wk@gnupg.org>
2610 * call-agent.c (read_from_agent): Check for inquire responses.
2611 (request_reply): Handle them using a new callback arg, changed all
2613 (gpgsm_agent_pkdecrypt): New.
2615 2001-11-27 Werner Koch <wk@gnupg.org>
2617 * base64.c: New. Changed all other functions to use this instead
2618 of direct creation of ksba_reader/writer.
2619 * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2621 2001-11-26 Werner Koch <wk@gnupg.org>
2623 * gpgsm.c: New option --agent-program
2624 * call-agent.c (start_agent): Allow to override the default path
2627 * keydb.c (keydb_add_resource): Create keybox
2629 * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2631 * server.c (rc_to_assuan_status): New. Use it for all commands.
2634 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
2635 2007, 2008, 2009 Free Software Foundation, Inc.
2637 This file is free software; as a special exception the author gives
2638 unlimited permission to copy and/or distribute it, with or without
2639 modifications, as long as this notice is preserved.
2641 This file is distributed in the hope that it will be useful, but
2642 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2643 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.