1 2009-04-02 Werner Koch <wk@g10code.com>
3 * keylist.c (list_cert_std): Print card serial number.
5 2009-04-01 Werner Koch <wk@g10code.com>
7 * export.c (popen_protect_tool): Add command line option
8 --agent-program and pass flag bit 6.
9 * import.c (popen_protect_tool): Ditto.
11 2009-03-26 Werner Koch <wk@g10code.com>
13 * gpgsm.c (main): s/def_digest_string/forced_digest_algo/ and
14 activate the --digest-algo option.
15 * gpgsm.h (struct opt): s/def_digest_algo/forced_digest_algo/.
16 * sign.c (gpgsm_sign): Implement --digest-algo.
18 * sign.c (MAX_DIGEST_LEN): Change to 64.
20 * call-agent.c (gpgsm_agent_marktrusted): Format the issuer name.
22 2009-03-25 Werner Koch <wk@g10code.com>
24 * decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY stati.
26 * fingerprint.c (gpgsm_get_short_fingerprint): Add arg R_HIGH and
29 2009-03-23 Werner Koch <wk@g10code.com>
31 * delete.c (delete_one): Also delete ephemeral certificates if
34 2009-03-20 Werner Koch <wk@g10code.com>
36 * keylist.c (list_internal_keys): Set released cert to NULL.
38 * call-agent.c (learn_status_cb): New.
39 (gpgsm_agent_learn): Use it.
40 (learn_cb): Send a progress for every certificate.
42 2009-03-18 Werner Koch <wk@g10code.com>
44 * gpgsm.h (struct opt): Move field WITH_EPHEMERAL_KEYS to struct
46 * gpgsm.c (main): Change accordingly.
47 * keylist.c (list_internal_keys): Ditto.
48 * server.c (option_handler): Add "with-ephemeral-keys".
50 2009-03-12 Werner Koch <wk@g10code.com>
52 * certdump.c (gpgsm_dump_time): Remove.
53 * certdump.c, verify.c, certchain.c
54 * gpgsm.c: s/gpgsm_dump_time/dump_isotime/.
56 2009-03-06 Werner Koch <wk@g10code.com>
58 * call-agent.c (gpgsm_agent_keyinfo, keyinfo_status_cb): New.
59 * keylist.c (list_cert_colon): Print card S/N.
61 * keylist.c (list_internal_keys): Always list ephemeral keys if
62 specified by keygrip or fingerprint.
63 (list_cert_raw): Always show ephemeral flag.
64 * export.c (gpgsm_export): Export ephemeral keys if specified by
67 2009-02-09 Werner Koch <wk@g10code.com>
69 * gpgsm.c (main): Change default cipher back to 3DES.
71 2009-01-12 Werner Koch <wk@g10code.com>
73 * keylist.c (print_utf8_extn_raw): Cast printf precision argument.
75 2009-01-08 Werner Koch <wk@g10code.com>
77 * fingerprint.c (gpgsm_get_keygrip_hexstring): Add error detection.
79 2008-12-10 Werner Koch <wk@g10code.com>
81 * gpgsm.c (our_cipher_test_algo): Use the GCRY constants as we now
83 (our_md_test_algo): Ditto. Add SHA224.
84 (main) <aGpgConfList>: Update default cipher algo.
86 2008-12-09 Werner Koch <wk@g10code.com>
88 * gpgsm.c (main): Call i18n_init before init_common_subsystems.
90 2008-12-05 Werner Koch <wk@g10code.com>
92 * certreqgen.c (create_request): Provide a custom prompt for the
95 * certdump.c (gpgsm_format_keydesc): Remove debug output.
96 (gpgsm_format_keydesc): Remove saving of errno as xfree is
97 supposed not to change it. Use the new percent_plus_escape
98 function which also fixes the issue that we did not escaped a
101 2008-11-18 Werner Koch <wk@g10code.com>
103 * gpgsm.c (make_libversion): New.
104 (my_strusage): Use new function.
105 (build_lib_list): Remove.
107 2008-11-13 Werner Koch <wk@g10code.com>
109 * gpgsm.c: Remove all unused options. Use ARGPARSE macros.
111 2008-10-28 Werner Koch <wk@g10code.com>
113 * certdump.c (gpgsm_format_keydesc): Use xtryasprintf and xfree.
114 (gpgsm_es_print_name): Factor code out to ...
115 (gpgsm_es_print_name2): New function.
116 (gpgsm_format_name2, format_name_writer): Use estream so that it
117 works on all platforms.
118 (format_name_writer): Fix reallocation bug.
120 2008-10-23 Werner Koch <wk@g10code.com>
122 * import.c (popen_protect_tool): Add arg CTRL and assure that the
123 agent is running. Pass a value for CTRL from all caller.
124 * export.c (popen_protect_tool): Ditto.
126 2008-10-21 Werner Koch <wk@g10code.com>
128 * call-dirmngr.c (inq_certificate_parm_s): Add field CTRL.
129 (gpgsm_dirmngr_isvalid): Supply a value for that field.
130 (inq_certificate): Add inquiry ISTRUSTED.
132 * call-agent.c (gpgsm_agent_istrusted): Add new optional arg
133 HEXFPR. Changed all callers.
135 2008-10-20 Werner Koch <wk@g10code.com>
137 * keydb.c (keydb_locate_writable): Mark unused arg.
138 (keydb_search_kid): Ditto.
139 (keydb_clear_some_cert_flags): Ditto.
140 * server.c (cmd_encrypt): Ditto.
141 (cmd_decrypt, cmd_verify, cmd_import, cmd_genkey): Ditto.
142 * call-agent.c (gpgsm_scd_pksign): Ditto.
143 * call-dirmngr.c (release_dirmngr, release_dirmngr2)
144 (run_command_cb): Ditto.
145 * certlist.c (gpgsm_add_cert_to_certlist): Ditto.
146 * certchain.c (find_up_dirmngr): Ditto.
147 * keylist.c (print_key_data): Ditto.
148 (list_cert_raw, list_cert_std): Ditto.
149 * qualified.c (gpgsm_is_in_qualified_list): Ditto.
151 * gpgsm.c (set_binary) [!W32]: Mark unused arg.
153 2008-10-17 Werner Koch <wk@g10code.com>
155 * call-dirmngr.c (start_dirmngr, start_dirmngr2): Reset the lock
157 (release_dirmngr, release_dirmngr2): Replace asserts by error messages.
158 (gpgsm_dirmngr_lookup): Replace assert by fatal error message.
160 2008-10-13 Werner Koch <wk@g10code.com>
162 * gpgsm.c: Add alias --delete-keys.
164 2008-09-30 Werner Koch <wk@g10code.com>
166 * server.c (cmd_getinfo): New subcommand agent-check.
167 * call-agent.c (gpgsm_agent_send_nop): New.
169 2008-09-29 Werner Koch <wk@g10code.com>
171 * certcheck.c (MY_GCRY_PK_ECDSA): Remove. Change users to
173 * gpgsm.c (MY_GCRY_PK_ECDSA): Ditto.
174 * sign.c (MY_GCRY_MD_SHA224): Remove change users to GCRY_MD_SHA224.
176 2008-09-04 Werner Koch <wk@g10code.com>
178 * certdump.c (gpgsm_format_keydesc): Work around a mingw32 bug.
180 2008-09-03 Werner Koch <wk@g10code.com>
182 * sign.c (MY_GCRY_MD_SHA224): New, so that we don't need libgcrypt
185 2008-08-13 Werner Koch <wk@g10code.com>
187 * keylist.c (list_cert_colon): Print 'f' for validated certs.
189 2008-08-08 Marcus Brinkmann <marcus@g10code.de>
191 * gpgsm.h (struct server_control_s): Remove member dirmngr_seen.
192 * call-dirmngr.c (dirmngr2_ctx, dirmngr_ctx_locked)
193 (dirmngr2_ctx_locked): New global variables.
194 (prepare_dirmngr): Don't check dirmngr_seen anymore.
195 (start_dirmngr): Move bunch of code to ...
196 (start_dirmngr_ext): ... this new function.
197 (release_dirmngr, start_dirmngr2, release_dirmngr2): New
199 (gpgsm_dirmngr_isvalid): Call release_dirmngr.
200 (gpgsm_dirmngr_lookup): Call release_dirmngr. If dirmngr_ctx is
201 locked, use dirmngr2_locked.
202 (gpgsm_dirmngr_run_command): Call release_dirmngr.
204 2008-06-25 Werner Koch <wk@g10code.com>
206 * sign.c (gpgsm_sign): Revamp the hash algorithm selection.
207 * gpgsm.h (struct certlist_s): Add field HASH_ALGO and HASH_ALGO_OID.
209 * qualified.c (gpgsm_qualified_consent): Fix double free.
211 * gpgsm.c (main): Change default cipher algo to AES.
213 * keylist.c (print_utf8_extn_raw, print_utf8_extn): New.
214 (list_cert_raw, list_cert_std): Print the TeleSec restriction
217 2008-06-23 Werner Koch <wk@g10code.com>
219 * encrypt.c (encode_session_key): Replace xmalloc by xtrymalloc.
220 Use bin2hex instead of open coding the conversion.
221 (encrypt_dek): Init S_DATA.
223 2008-06-13 Marcus Brinkmann <marcus@ulysses.g10code.com>
225 * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
227 2008-06-12 Marcus Brinkmann <marcus@g10code.de>
229 * gpgsm.h (struct keyserver_spec): New struct.
230 (opt): Add member keyserver.
231 * gpgsm.c (keyserver_list_free, parse_keyserver_line): New functions.
232 (main): Implement --keyserver option.
233 * call-dirmngr.c (prepare_dirmngr): Send LDAPSERVER commands.
235 2008-05-20 Werner Koch <wk@g10code.com>
237 * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
238 the export function. Reported by Marc Mutz.
240 2008-05-06 Werner Koch <wk@g10code.com>
242 * keylist.c (list_external_keys): Ignore NOT FOUND error code.
245 2008-04-23 Werner Koch <wk@g10code.com>
247 * certchain.c (find_up): Make correct C89 code. Declare variable
248 at the top of the block. Reported by Alain Guibert.
250 2008-04-09 Werner Koch <wk@g10code.com>
252 * verify.c (gpgsm_verify): Print the message hash values on error.
254 2008-03-31 Werner Koch <wk@g10code.com>
256 * call-dirmngr.c (start_dirmngr): Use log_info instead of
257 log_error when falling back to start dirmngr.
259 2008-03-20 Werner Koch <wk@g10code.com>
261 * certlist.c (gpgsm_add_to_certlist): Always save the first
262 subject and issuer. Initialize issuer with issuer and not with
264 (same_subject_issuer): Set issuer2 to issuer and not to subject.
266 2008-03-17 Werner Koch <wk@g10code.com>
268 * certdump.c (my_funopen_hook_size_t): New.
269 (format_name_writer): Use it.
271 2008-03-13 Werner Koch <wk@g10code.com>
273 * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
275 (gpgsm_format_keydesc): Remove superfluous test. Add expire date
278 2008-02-18 Werner Koch <wk@g10code.com>
280 * certchain.c (gpgsm_is_root_cert): Factor code out to ...
281 (is_root_cert): New. Extend test for self-issued certificates
283 (do_validate_chain, gpgsm_basic_cert_check)
284 (gpgsm_walk_cert_chain): Use it here.
286 * gpgsm.c: Add option --no-common-certs-import.
288 * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
289 (check_cert_policy): Be more silent with --quiet.
291 * gpgsm.c: Add option --disable-dirmngr.
292 * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
293 * call-dirmngr.c (start_dirmngr): Implement option.
295 2008-02-14 Werner Koch <wk@g10code.com>
297 * server.c (option_handler): Add option allow-pinentry-notify.
298 (gpgsm_proxy_pinentry_notify): New.
299 * call-agent.c (default_inq_cb): New.
300 (gpgsm_agent_pksign, gpgsm_scd_pksign, gpgsm_agent_readkey)
301 (gpgsm_agent_istrusted, gpgsm_agent_marktrusted)
302 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation): Call it.
303 (struct cipher_parm_s, struct genkey_parm_s): Add field CTRL.
304 (inq_ciphertext_cb): Test keyword and fallback to default_inq_cb.
305 (inq_genkey_parms): Ditto.
306 (start_agent): Tell agent to send us the pinentry notifications.
308 2008-02-13 Werner Koch <wk@g10code.com>
310 * call-dirmngr.c (gpgsm_dirmngr_lookup): Add arg CACHE_ONLY.
311 * keylist.c (list_external_keys): Pass false for new arg.
312 * certchain.c (find_up_dirmngr): New.
313 (find_up): Also try to read from the dirmngr cache.
314 (find_up, find_up_external, gpgsm_walk_cert_chain)
315 (gpgsm_basic_cert_check, allowed_ca): Add arg CTRL and changed all
317 * call-agent.c (struct learn_parm_s): Add field CTRL.
318 (gpgsm_agent_learn): Set it.
320 2008-02-11 Werner Koch <wk@g10code.com>
322 * server.c (cmd_getinfo): New.
323 (gpgsm_server): Register GETINFO.
325 2008-01-29 Marcus Brinkmann <marcus@g10code.de>
327 * keylist.c (list_internal_keys): New variable lastcert. Use it
328 to suppress duplicates which immediately follow each other.
330 2008-01-27 Werner Koch <wk@g10code.com>
332 * import.c (popen_protect_tool): Set bit 7 in the flags for
333 gnupg_spawn_process so that under W32 no window appears.
334 * export.c (popen_protect_tool): Ditto.
336 2007-12-13 Werner Koch <wk@g10code.com>
338 * gpgsm.c (main): Add option --extra-digest-algo.
339 * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
340 * verify.c (gpgsm_verify): Use it. Use the hash algorithm from
343 2007-12-11 Werner Koch <wk@g10code.com>
345 * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
347 * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
348 (cmd_recipient): Start audit session.
350 * gpgsm.c (main): Revamp creation of the audit log.
352 * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
353 * call-agent.c (start_agent): Record an audit event.
354 * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
356 (prepare_dirmngr): New helper for start_dirmngr.
358 * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
360 2007-12-03 Werner Koch <wk@g10code.com>
362 * gpgsm.c (main): Call gnupg_reopen_std.
364 h2007-11-22 Werner Koch <wk@g10code.com>
366 * server.c (cmd_getauditlog): New.
367 (register_commands): Register GETAUDITLOG.
369 2007-11-19 Werner Koch <wk@g10code.com>
371 * server.c (cmd_recipient, cmd_signer): Add error reason 11.
373 * gpgsm.c (main): Print a warning if --audit-log is used.
375 2007-11-15 Werner Koch <wk@g10code.com>
377 * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
378 * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
379 * gpgsm.c (main): New option --xauthority.
380 * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
381 * server.c (option_handler): Ad the new options.
383 2007-11-07 Werner Koch <wk@g10code.com>
385 * gpgsm.c (main): New option --audit-log.
386 * server.c (option_handler): New option enable-audit-log.
387 (start_audit_session): New.
388 (cmd_verify): Create audit context.
389 (gpgsm_server): Release the context.
391 * gpgsm.h (struct server_control_s): Add member AUDIT, include
393 * certdump.c (gpgsm_format_sn_issuer): New.
394 * verify.c (hash_data): Return an error code.
395 (gpgsm_verify): Add calls to audit_log.
397 * gpgsm.c (get_status_string): Remove.
398 * gpgsm.h: Include status.h instead of errors.h.
400 2007-10-19 Werner Koch <wk@g10code.com>
402 * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
403 (gpgsm_not_qualified_warning): Ditto.
404 * certdump.c (gpgsm_format_keydesc): Ditto.
406 2007-09-14 Werner Koch <wk@g10code.com>
408 * gpgsm.c (build_lib_list): New.
409 (my_strusage): Print lib info.
411 2007-08-24 Werner Koch <wk@g10code.com>
413 * Makefile.am (common_libs): Swap libkeybox and jnlib.
415 2007-08-23 Werner Koch <wk@g10code.com>
417 * certlist.c (gpgsm_certs_identical_p): New.
418 (gpgsm_add_to_certlist): Ignore duplicate certificates in
419 ambigious name detection.
420 (gpgsm_find_cert): Ditto.
421 * export.c (gpgsm_p12_export): Ditto.
423 2007-08-22 Werner Koch <wk@g10code.com>
425 * certreqgen.c (create_request): Replace open coding by bin2hex.
427 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
429 2007-08-21 Werner Koch <wk@g10code.com>
431 * import.c (parse_p12): Use gnupg_tmpfile.
432 * export.c (export_p12): Ditto.
434 2007-08-20 Werner Koch <wk@g10code.com>
436 * certreqgen.c (read_parameters): Change FP to an estream_t.
437 (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
438 * server.c (cmd_genkey): Adjust for that.
439 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
440 instead of a temporary file.
442 2007-08-14 Werner Koch <wk@g10code.com>
444 * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name. change
445 the way infostr is xstrdupped.
447 * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
450 2007-08-13 Werner Koch <wk@g10code.com>
452 * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
453 message depend on that.
454 (main): Add avriable RECP_REQUIRED, set ift for encryption
455 commands and pass it to do_add_recipient.
456 (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
458 2007-08-09 Werner Koch <wk@g10code.com>
460 * gpgsm.c (main) [W32]: Enable CRL check by default.
461 (main): Update the default control structure after reading the
463 (gpgsm_parse_validation_model, parse_validation_model): New.
464 (main): New option --validation-model.
465 * certchain.c (gpgsm_validate_chain): Implement this option.
466 * server.c (option_handler): Ditto.
468 * certchain.c (is_cert_still_valid): Reformatted. Add arg
469 FORCE_OCSP. Changed callers to set this flag when using the chain
472 2007-08-08 Werner Koch <wk@g10code.com>
474 * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
475 which prefixed the output with a 3A and cut it off at a 00.
477 * keylist.c (list_cert_raw): Print the certificate ID first and
478 rename "Serial number" to "S/N".
479 (list_cert_std): Ditto.
481 2007-08-07 Werner Koch <wk@g10code.com>
483 * gpgsm.c (main): Allow a string for --faked-system-time.
485 2007-08-06 Werner Koch <wk@g10code.com>
487 Implementation of the chain model.
489 * gpgsm.h (struct rootca_flags_s): Define new members VALID and
491 * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
492 (istrusted_status_cb): Set CHAIN_MODEL.
493 * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
495 (gpgsm_validate_chain): Factor some code out to ...
496 (check_validity_period, ask_marktrusted): .. new.
497 (check_validity_cm_basic, check_validity_cm_main): New.
498 (do_validate_chain): New with all code from gpgsm_validate_chain.
499 New arg ROOTCA_FLAGS.
500 (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
501 model. Add RETFLAGS arg and changed all callers to pass NULL. Add
502 CHECKTIME arg and changed all callers to pass a nil value.
503 (has_validity_model_chain): New.
504 * verify.c (gpgsm_verify): Check for chain model and return as
505 part of the trust status.
507 * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
508 (VALIDATE_FLAG_NO_DIRMNGR): New.
509 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
511 2007-08-03 Werner Koch <wk@g10code.com>
513 * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
516 * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
518 * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
520 2007-08-02 Werner Koch <wk@g10code.com>
522 * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
524 2007-07-17 Werner Koch <wk@g10code.com>
526 * gpgsm.c (main): Implement --default-key.
527 (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
529 2007-07-16 Werner Koch <wk@g10code.com>
531 * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
532 newer assuan versions.
534 2007-07-12 Werner Koch <wk@g10code.com>
536 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
537 when passing an int value.
538 * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
539 (cmd_export, cmd_message, cmd_genkey): Translate file descriptors.
541 2007-07-05 Werner Koch <wk@g10code.com>
543 * Makefile.am (common_libs): Changed order of libs.
545 2007-07-04 Werner Koch <wk@g10code.com>
547 * certchain.c (check_cert_policy): Remove extra checks for
548 GPG_ERR_NO_VALUE. They are not needed since libksba 1.0.1.
549 * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
550 * certlist.c (cert_usage_p, cert_usage_p): Ditto.
552 2007-06-26 Werner Koch <wk@g10code.com>
554 * gpgsm.c (main): Call gnupg_rl_initialize.
555 * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
557 2007-06-25 Werner Koch <wk@g10code.com>
559 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
560 add new arg FOR_WRITE. Change callers to pass new arg.
562 2007-06-24 Werner Koch <wk@g10code.com>
564 * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
567 2007-06-21 Werner Koch <wk@g10code.com>
569 * certreqgen-ui.c: New.
570 * gpgsm.c (main): Let --gen-key call it.
571 * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
574 * gpgsm.h (ctrl_t): Remove. It is now declared in ../common/util.h.
576 * call-agent.c (start_agent): Factored almost all code out to
579 2007-06-20 Werner Koch <wk@g10code.com>
581 * call-agent.c (start_agent) [W32]: Start the agent on the fly.
583 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
585 * gpgsm.c (main): Percent escape output of --gpgconf-list.
587 2007-06-14 Werner Koch <wk@g10code.com>
589 * call-agent.c (start_agent): Use gnupg_module_name.
590 * call-dirmngr.c (start_dirmngr): Ditto.
591 * export.c (export_p12): Ditto.
592 * import.c (parse_p12): Ditto.
593 * gpgsm.c (run_protect_tool): Ditto.
595 2007-06-12 Werner Koch <wk@g10code.com>
597 * gpgsm.c (main): Replace some calls by init_common_subsystems.
598 (main): Use gnupg_datadir.
599 * qualified.c (read_list): Use gnupg-datadir.
601 2007-06-11 Werner Koch <wk@g10code.com>
603 * Makefile.am (common_libs): Use libcommaonstd macr.
605 * gpgsm.c (main) [W32]: Call pth_init.
607 2007-06-06 Werner Koch <wk@g10code.com>
609 * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
611 * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
613 (format_name_writer): Define only if funopen et al is available.
615 * gpgsm.c (i18n_init): Remove.
617 2007-05-29 Werner Koch <wk@g10code.com>
619 * export.c (gpgsm_p12_export): Print passphrase encoding info only
622 2007-05-18 Marcus Brinkmann <marcus@g10code.de>
624 * qualified.c (gpgsm_qualified_consent,
625 gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
626 * certdump.c (gpgsm_format_keydesc): Likewise.
628 2007-05-07 Werner Koch <wk@g10code.com>
630 * certcheck.c (MY_GCRY_PK_ECDSA): New.
632 2007-04-20 Werner Koch <wk@g10code.com>
634 * gpgsm.c (main): Parameterize failed versions check messages.
636 2007-04-19 Werner Koch <wk@g10code.com>
638 * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2
640 (get_dsa_qbits): New.
641 (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
644 2007-04-18 Werner Koch <wk@g10code.com>
646 * certcheck.c (do_encode_md): Support 160 bit ECDSA.
648 2007-04-13 Werner Koch <wk@g10code.com>
650 * call-agent.c (start_agent): Don't use log_error when using the
651 fallback hack to start the agent. This is bug 782.
653 2007-03-20 Werner Koch <wk@g10code.com>
655 * fingerprint.c (gpgsm_get_fingerprint): Add caching.
656 (gpgsm_get_fingerprint_string): Use bin2hexcolon().
657 (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
658 as much memory as required.
659 (gpgsm_get_keygrip_hexstring): Use bin2hex.
661 * certchain.c (gpgsm_validate_chain): Keep track of the
662 certificate chain and reset the ephemeral flags.
663 * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
664 Changed caller to use a mask of ~0. Return a proper error code if
665 the certificate is not available.
667 * gpgsm.c: Add option --p12-charset.
668 * gpgsm.h (struct opt): Add p12_charset.
669 * export.c (popen_protect_tool): Use new option.
671 2007-03-19 Werner Koch <wk@g10code.com>
673 Changes to let export and key listing use estream to help systems
676 * keylist.c: Use estream in place of stdio functions.
677 * gpgsm.c (open_es_fwrite): New.
678 (main): Use it for the list commands.
679 * server.c (data_line_cookie_functions): New.
680 (data_line_cookie_write, data_line_cookie_close): New.
681 (do_listkeys): Use estream.
683 * certdump.c (gpgsm_print_serial): Changed to use estream.
684 (gpgsm_print_time): Ditto.
685 (pretty_es_print_sexp): New.
686 (gpgsm_es_print_name): New.
687 (print_dn_part): New arg STREAM. Changed all callers.
688 (print_dn_parts): Ditto.
689 * certchain.c (gpgsm_validate_chain): Changed FP to type
691 (do_list, unknown_criticals, allowed_ca, check_cert_policy)
692 (is_cert_still_valid): Ditto.
694 * export.c (gpgsm_export): New arg STREAM.
695 (do_putc, do_fputs): New.
696 (print_short_info): Allow printing to optional STREAM.
697 * server.c (cmd_export): Use stream.
698 * base64.c (do_putc, do_fputs): New.
699 (base64_writer_cb, base64_finish_write): Let them cope with an
700 alternate output function.
701 (plain_writer_cb): New.
702 (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
703 binary output to an estream. Changed call callers.
705 2007-01-31 Werner Koch <wk@g10code.com>
707 * gpgsm.c (main): Let --gen-key print a more informative error
710 2007-01-25 Werner Koch <wk@g10code.com>
712 * Makefile.am (gpgsm_LDADD): Add LIBICONV. Noted by Billy Halsey.
714 2007-01-05 Werner Koch <wk@g10code.com>
716 * certchain.c (unknown_criticals): Add subjectAltName.
718 2006-12-21 Werner Koch <wk@g10code.com>
720 * gpgsm.c: Comment mtrace feature.
722 2006-12-21 Marcus Brinkmann <marcus@g10code.de>
724 * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
726 * encrypt.c (encrypt_dek): Release S_CIPH.
728 2006-12-20 Marcus Brinkmann <marcus@g10code.de>
730 * server.c (gpgsm_server): Release CTRL->server_local.
732 * base64.c: Add new members READER and WRITER in union U2.
733 (gpgsm_create_reader): Initialise CTX->u2.reader.
734 (gpgsm_destroy_reader): Invoke ksba_reader_release. Return early
736 (gpgsm_create_writer): Initialise CTX->u2.writer.
737 (gpgsm_destroy_writer): Invoke ksba_writer_release. Return early
740 2006-12-18 Marcus Brinkmann <marcus@g10code.de>
742 * fingerprint.c (gpgsm_get_fingerprint): Close MD.
744 2006-11-24 Werner Koch <wk@g10code.com>
746 * certdump.c (parse_dn_part): Take '#' as a special character only
747 at the beginning of a string.
749 2006-11-21 Werner Koch <wk@g10code.com>
751 * certdump.c (my_funopen_hook_ret_t): New.
752 (format_name_writer): Use it for the return value.
754 2006-11-14 Werner Koch <wk@g10code.com>
756 * server.c (skip_options): Skip leading spaces.
757 (has_option): Honor "--".
758 (cmd_export): Add option --data to do an inline export. Skip all
761 * certdump.c (gpgsm_fpr_and_name_for_status): New.
762 * verify.c (gpgsm_verify): Use it to print correct status messages.
764 2006-11-11 Werner Koch <wk@g10code.com>
766 * server.c (skip_options): New.
768 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
770 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
772 2006-10-23 Werner Koch <wk@g10code.com>
774 * gpgsm.c (main): Remap common cipher algo names to their OIDs.
775 (main): New command --gpgconf-test.
777 2006-10-20 Werner Koch <wk@g10code.com>
779 * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
781 2006-10-18 Werner Koch <wk@g10code.com>
783 * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
784 testing for GPG_ERR_NO_DATA.
785 * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
786 * certchain.c (check_cert_policy): Ditto.
788 * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
789 chain length available.
791 2006-10-17 Werner Koch <wk@g10code.com>
793 * gpgsm.c: No need for pth.h.
794 (main): or to init it. It used to be hack for W32.
796 * sign.c (gpgsm_get_default_cert): Changed to return only
797 certificates usable for signing.
799 2006-10-16 Werner Koch <wk@g10code.com>
801 * certchain.c (already_asked_marktrusted)
802 (set_already_asked_marktrusted): New.
803 (gpgsm_validate_chain) <not trusted>: Keep track of certificates
804 we already asked for.
806 2006-10-11 Werner Koch <wk@g10code.com>
808 * certreqgen.c (proc_parameters, create_request): Allow for
809 creation directly from a card.
810 * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
811 (gpgsm_scd_pksign): New.
813 2006-10-06 Werner Koch <wk@g10code.com>
815 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
816 (gpgsm_LDADD): Ditto.
818 2006-10-05 Werner Koch <wk@g10code.com>
820 * certcheck.c (do_encode_md): Check that the has algo is valid.
822 2006-10-02 Marcus Brinkmann <marcus@g10code.de>
824 * server.c (register_commands): New commands DUMPKEYS and
826 (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
827 (option_handler): Support with-key-data option.
829 2006-09-26 Werner Koch <wk@g10code.com>
831 * certchain.c (gpgsm_validate_chain): More changes for the relax
832 feature. Use certificate reference counting instead of the old
833 explicit tests. Added a missing free.
835 2006-09-25 Werner Koch <wk@g10code.com>
837 * gpgsm.h (struct rootca_flags_s): New.
838 * call-agent.c (istrusted_status_cb): New.
839 (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
840 * keylist.c (list_cert_colon): Use dummy for new arg.
841 * certchain.c (gpgsm_validate_chain): Make use of the relax flag
842 for root certificates.
843 (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
845 2006-09-20 Werner Koch <wk@g10code.com>
847 * gpgsm.c: Add alias command --dump-cert.
849 * Makefile.am: Changes to allow parallel make runs.
851 2006-09-18 Werner Koch <wk@g10code.com>
853 * gpgsm.c (main): Use this to import standard certificates.
854 * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
856 2006-09-14 Werner Koch <wk@g10code.com>
858 Replaced all call gpg_error_from_errno(errno) by
859 gpg_error_from_syserror().
861 2006-09-13 Werner Koch <wk@g10code.com>
863 * keylist.c (list_internal_keys): Print marker line to FP and not
866 * gpgsm.c (main): All list key list commands now make ose of
867 --output. Cleaned up calls to list modes. New command
868 --dump-chain. Renamed --list-sigs to --list-chain and added an
869 alias for the old one.
871 * server.c (cmd_message): Changed to use assuan_command_parse_fd.
872 (option_handler): New option list-to-output.
873 (do_listkeys): Use it.
875 2006-09-06 Werner Koch <wk@g10code.com>
877 * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
879 (CTRL): Removed and changed everywhere to ctrl_t.
882 Replaced all Assuan error codes by libgpg-error codes. Removed
883 all map_to_assuan_status and map_assuan_err.
885 * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
886 switch to gpg-error codes.
887 * server.c (set_error): Adjusted.
889 2006-08-29 Werner Koch <wk@g10code.com>
891 * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
892 complete S-expressions as implemented by the current gpg-agent.
894 * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
897 2006-07-03 Werner Koch <wk@g10code.com>
899 * certreqgen.c (proc_parameters): Print the component label of a
902 2006-06-26 Werner Koch <wk@g10code.com>
904 * certdump.c (gpgsm_cert_log_name): New.
905 * certchain.c (is_cert_still_valid): Log the name of the certificate.
907 2006-06-20 Werner Koch <wk@g10code.com>
909 * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
910 option --include-certs.
912 * keylist.c (list_cert_raw): Print the certid.
914 2006-05-23 Werner Koch <wk@g10code.com>
916 * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
918 * Makefile.am (gpgsm_LDADD): Include ZLIBS.
920 2006-05-19 Marcus Brinkmann <marcus@g10code.de>
922 * keydb.c (keydb_insert_cert): Do not lock here, but only check if
924 (keydb_store_cert): Lock here.
926 * keydb.h (keydb_delete): Accept new argument UNLOCK.
927 * keydb.c (keydb_delete): Likewise. Only unlock if this is set.
928 * delete.c (delete_one): Add new argument to invocation of
931 2006-05-15 Werner Koch <wk@g10code.com>
933 * keylist.c (print_names_raw): Sanitize URI.
935 2006-03-21 Werner Koch <wk@g10code.com>
937 * certchain.c (get_regtp_ca_info): New.
938 (allowed_ca): Use it.
940 2006-03-20 Werner Koch <wk@g10code.com>
942 * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
944 2006-02-17 Werner Koch <wk@g10code.com>
946 * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
948 2005-11-23 Werner Koch <wk@g10code.com>
950 * gpgsm.h: New member QUALSIG_APPROVAL.
951 * sign.c (gpgsm_sign): Print a warning if a certificate is not
953 * qualified.c (gpgsm_qualified_consent): Include a note that this
954 is not approved software.
955 (gpgsm_not_qualified_warning): New.
956 * gpgsm.c (main): Prepared to print a note whether the software
959 2005-11-13 Werner Koch <wk@g10code.com>
961 * call-agent.c (gpgsm_agent_get_confirmation): New.
963 * keylist.c (list_cert_std): Print qualified status.
965 * certchain.c (gpgsm_validate_chain): Check for qualified
968 * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
969 no-chain-validation is used.
971 2005-11-11 Werner Koch <wk@g10code.com>
973 * keylist.c (print_capabilities): Print is_qualified status.
975 2005-10-28 Werner Koch <wk@g10code.com>
977 * certdump.c (pretty_print_sexp): New.
978 (gpgsm_print_name2): Use it here. This allows proper printing of
979 DNS names as used with server certificates.
981 2005-10-10 Werner Koch <wk@g10code.com>
983 * keylist.c: Add pkaAdress OID as reference.
985 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
987 * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
988 ../common/libcommon.a.
990 2005-09-13 Werner Koch <wk@g10code.com>
992 * verify.c (gpgsm_verify): Print a note if the unknown algorithm
994 * sign.c (gpgsm_sign): Ditto.
995 * certcheck.c (gpgsm_check_cert_sig): Ditto.
997 2005-09-08 Werner Koch <wk@g10code.com>
999 * export.c (popen_protect_tool): Add option --have-cert. We
1000 probably lost this option with 1.9.14 due to restructuring of
1003 2005-07-21 Werner Koch <wk@g10code.com>
1005 * gpgsm.c (main): New options --no-log-file and --debug-none.
1007 * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
1008 to allow enumeration. Changed all callers.
1009 (create_request): Process DNS and URI parameters.
1011 2005-07-20 Werner Koch <wk@g10code.com>
1013 * keylist.c (email_kludge): Reworked.
1015 * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
1017 * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
1019 2005-07-19 Werner Koch <wk@g10code.com>
1021 * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
1022 Bug accidently introduced while solving the #$%^& gcc
1023 signed/unsigned char* warnings.
1025 2005-06-15 Werner Koch <wk@g10code.com>
1027 * delete.c (delete_one): Changed FPR to unsigned.
1028 * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
1029 (gpgsm_encrypt): Ditto.
1030 * sign.c (gpgsm_sign): Made SIGVAL unsigned.
1031 * base64.c (base64_reader_cb): Need to use some casting to get
1032 around signed/unsigned char* warnings.
1033 * certcheck.c (gpgsm_check_cms_signature): Ditto.
1034 (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
1035 (do_encode_md): Made NFRAME a size_t.
1036 * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
1037 (gpgsm_dump_serial): Ditto.
1038 (gpgsm_format_serial): Ditto.
1039 (gpgsm_dump_string): Ditto.
1040 (gpgsm_dump_cert): Ditto.
1041 (parse_dn_part): Ditto.
1042 (gpgsm_print_name2): Ditto.
1043 * keylist.c (email_kludge): Ditto.
1044 * certreqgen.c (proc_parameters, create_request): Ditto.
1045 (create_request): Ditto.
1046 * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
1047 (struct cipher_parm_s): Made CIPHERTEXT unsigned.
1048 (struct genkey_parm_s): Ditto.
1049 * server.c (strcpy_escaped_plus): Made arg S signed char*.
1050 * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
1051 (gpgsm_get_keygrip): Ditto.
1052 * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
1053 (keydb_update_cert): Ditto.
1054 (classify_user_id): Apply cast to signed/unsigned assignment.
1057 2005-06-01 Werner Koch <wk@g10code.com>
1059 * misc.c: Include setenv.h.
1061 2005-04-21 Werner Koch <wk@g10code.com>
1063 * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
1064 * certchain.c (gpgsm_validate_chain): Make use of it.
1066 * certchain.c (gpgsm_validate_chain): Check revocations even for
1067 expired certificates. This is required because on signature
1068 verification an expired key is fine whereas a revoked one is not.
1070 2005-04-20 Werner Koch <wk@g10code.com>
1072 * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
1074 2005-04-19 Werner Koch <wk@g10code.com>
1076 * certchain.c (check_cert_policy): Print the diagnostic for a open
1077 failure of policies.txt only in verbose mode or when it is not
1080 2005-04-17 Werner Koch <wk@g10code.com>
1082 * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
1083 * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
1084 this filter. Changed all callers.
1086 * certchain.c (find_up_search_by_keyid): New helper.
1087 (find_up): Also try using the AKI.keyIdentifier.
1088 (find_up_external): Ditto.
1090 2005-04-15 Werner Koch <wk@g10code.com>
1092 * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
1093 well as the keyIdentifier part of the authorityKeyIdentifier.
1095 2005-03-31 Werner Koch <wk@g10code.com>
1097 * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
1098 * call-agent.c (start_agent): Ditto.
1100 2005-03-17 Werner Koch <wk@g10code.com>
1102 * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
1104 * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
1105 failed gcry_pk_verify.
1106 (find_up): Do an external lookup also for an authorityKeyIdentifier
1107 lookup. Factored external lookup code out to ..
1108 (find_up_external): .. new.
1110 2005-03-03 Werner Koch <wk@g10code.com>
1112 * Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
1114 2005-01-13 Werner Koch <wk@g10code.com>
1116 * certreqgen.c (proc_parameters): Cast printf arg.
1118 2004-12-22 Werner Koch <wk@g10code.com>
1120 * gpgsm.c (set_binary): New.
1121 (main, open_read, open_fwrite): Use it.
1123 2004-12-21 Werner Koch <wk@g10code.com>
1125 * gpgsm.c (main): Use default_homedir().
1126 (main) [W32]: Default to disabled CRL checks.
1128 2004-12-20 Werner Koch <wk@g10code.com>
1130 * call-agent.c (start_agent): Before starting a pipe server start
1131 to connect to a server on the standard socket. Use PATHSEP
1132 * call-dirmngr.c (start_dirmngr): Use PATHSEP.
1134 * import.c: Include unistd.h for dup and close.
1136 2004-12-18 Werner Koch <wk@g10code.com>
1138 * gpgsm.h (map_assuan_err): Define in terms of
1139 map_assuan_err_with_source.
1140 * call-agent.c (start_agent): Pass error source to
1141 send_pinentry_environment.
1143 2004-12-17 Werner Koch <wk@g10code.com>
1145 * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
1146 (run_command_status_cb): Return cancel status if gpgsm_status
1149 * server.c (gpgsm_status, gpgsm_status2)
1150 (gpgsm_status_with_err_code): Return an error code.
1151 (gpgsm_status2): Always call va_end().
1153 2004-12-15 Werner Koch <wk@g10code.com>
1155 * call-dirmngr.c (lookup_status_cb): Send progress messages
1157 (isvalid_status_cb): Ditto.
1158 (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
1159 (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
1160 status callback and handle PROGRESS.
1162 * misc.c (setup_pinentry_env) [W32]: Don't use it.
1164 * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
1165 operations and to resolve libassuan symbols.
1166 (run_protect_tool) [W32]: Disable it.
1168 * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
1170 2004-12-07 Werner Koch <wk@g10code.com>
1172 * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
1173 under W32 we need the w32 pth code from jnlib.
1175 * misc.c (setup_pinentry_env) [W32]: Disabled.
1177 2004-12-06 Werner Koch <wk@g10code.com>
1179 * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
1181 * import.c (popen_protect_tool): Simplified by making use of
1182 gnupg_spawn_process.
1183 (parse_p12): Likewise, using gnupg_wait_process.
1184 * export.c (popen_protect_tool): Ditto.
1185 (export_p12): Ditto.
1187 * keydb.c: Don't define DIRSEP_S here.
1189 2004-12-02 Werner Koch <wk@g10code.com>
1191 * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
1192 signature for debugging.
1193 (gpgsm_validate_chain): Ditto.
1195 2004-11-29 Werner Koch <wk@g10code.com>
1197 * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
1199 (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE. This
1200 now allows to add debug flags on top of a debug-level setting.
1202 2004-11-23 Werner Koch <wk@g10code.com>
1204 * gpgsm.c: New option --prefer-system-dirmngr.
1205 * call-dirmngr.c (start_dirmngr): Implement this option.
1207 2004-10-22 Werner Koch <wk@g10code.com>
1209 * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
1210 request PEM header. This is according to the Sphinx standard.
1212 2004-10-08 Moritz Schulte <moritz@g10code.com>
1214 * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
1215 case the no_chain_validation-return-short-cut is used (fixes
1218 2004-10-04 Werner Koch <wk@g10code.com>
1220 * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1222 2004-09-30 Werner Koch <wk@g10code.com>
1224 * gpgsm.c (i18n_init): Always use LC_ALL.
1226 * certdump.c (gpgsm_format_name): Factored code out to ..
1227 (gpgsm_format_name2): .. new.
1228 (gpgsm_print_name): Factored code out to ..
1229 (gpgsm_print_name2): .. new.
1230 (print_dn_part): New arg TRANSLATE. Changed all callers.
1231 (print_dn_parts): Ditto.
1232 (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
1233 it to stay UTF-8 but we still want to filter out bad control
1236 * Makefile.am: Adjusted for gettext 0.14.
1238 * keylist.c (list_cert_colon): Make sure that the expired flag has
1239 a higher precedence than the invalid flag.
1241 2004-09-29 Werner Koch <wk@g10code.com>
1243 * import.c (parse_p12): Write an error status line for bad
1244 passphrases. Add new arg CTRL and changed caller.
1245 * export.c (export_p12): Likewise.
1247 2004-09-14 Werner Koch <wk@g10code.com>
1249 * certchain.c (gpgsm_validate_chain): Give expired certificates a
1250 higher error precedence and don't bother to check any CRL in that
1253 2004-08-24 Werner Koch <wk@g10code.de>
1255 * certlist.c: Fixed typo in ocsp OID.
1257 2004-08-18 Werner Koch <wk@g10code.de>
1259 * certlist.c (gpgsm_cert_use_ocsp_p): New.
1260 (cert_usage_p): Support it here.
1261 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
1263 2004-08-17 Marcus Brinkmann <marcus@g10code.de>
1265 * import.c: Fix typo in last change.
1267 2004-08-17 Werner Koch <wk@g10code.de>
1269 * import.c (check_and_store): Do a full validation if
1270 --with-validation is set.
1272 * certchain.c (gpgsm_basic_cert_check): Print more detailed error
1275 * certcheck.c (do_encode_md): Partly support DSA. Add new arg
1276 PKALGO. Changed all callers to pass it.
1277 (pk_algo_from_sexp): New.
1279 2004-08-16 Werner Koch <wk@g10code.de>
1281 * gpgsm.c: New option --fixed-passphrase.
1282 * import.c (popen_protect_tool): Pass it to the protect-tool.
1284 * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1285 for encrypt-to keys.
1287 2004-08-06 Werner Koch <wk@g10code.com>
1289 * gpgsm.c: New option --with-ephemeral-keys.
1290 * keylist.c (list_internal_keys): Set it here.
1291 (list_cert_raw): And indicate those keys. Changed all our callers
1292 to pass the new arg HD through.
1294 2004-07-23 Werner Koch <wk@g10code.de>
1296 * certreqgen.c (proc_parameters): Do not allow key length below
1299 2004-07-22 Werner Koch <wk@g10code.de>
1301 * keylist.c (list_cert_raw): Print the keygrip.
1303 2004-07-20 Werner Koch <wk@gnupg.org>
1305 * certchain.c (gpgsm_validate_chain): The trust check didn't
1306 worked anymore, probably due to the changes at 2003-03-04. Fixed.
1308 2004-06-06 Werner Koch <wk@gnupg.org>
1310 * certreqgen.c (get_parameter_uint, create_request): Create
1311 an extension for key usage when requested.
1313 2004-05-12 Werner Koch <wk@gnupg.org>
1315 * gpgsm.c (main): Install emergency_cleanup also as an atexit
1318 * verify.c (gpgsm_verify): Removed the separate error code
1319 handling for KSBA. We use shared error codes anyway.
1321 * export.c (export_p12): Removed debugging code.
1323 * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1325 2004-05-11 Werner Koch <wk@gnupg.org>
1327 * sign.c (gpgsm_sign): Include the error source in the final error
1329 * decrypt.c (gpgsm_decrypt): Ditto.
1331 * fingerprint.c (gpgsm_get_key_algo_info): New.
1332 * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1333 * keylist.c (list_cert_colon): Really print the algorithm and key
1335 (list_cert_raw, list_cert_std): Ditto.
1336 (list_cert_colon): Reorganized to be able to tell whether a root
1337 certificate is trusted.
1339 * gpgsm.c: New option --debug-allow-core-dump.
1341 * gpgsm.h (opt): Add member CONFIG_FILENAME.
1342 * gpgsm.c (main): Use it here instead of the local var.
1344 * server.c (gpgsm_server): Print some additional information with
1345 the hello in verbose mode.
1347 2004-04-30 Werner Koch <wk@gnupg.org>
1349 * import.c (check_and_store): Do not update the stats for hidden
1350 imports of issuer certs.
1351 (popen_protect_tool): Request statusmessages from the protect-tool.
1352 (parse_p12): Detect status messages. Add new arg STATS and update them.
1353 (print_imported_summary): Include secret key stats.
1355 2004-04-28 Werner Koch <wk@gnupg.org>
1357 * gpgsm.c: New command --keydb-clear-some-cert-flags.
1358 * keydb.c (keydb_clear_some_cert_flags): New.
1359 (keydb_update_keyblock, keydb_set_flags): Change error code
1360 CONFLICT to NOT_LOCKED.
1362 2004-04-26 Werner Koch <wk@gnupg.org>
1364 * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1367 * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)
1368 (gpgsm_agent_genkey, gpgsm_agent_istrusted)
1369 (gpgsm_agent_marktrusted, gpgsm_agent_havekey)
1370 (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1371 (start_agent): New arg CTRL. Send progress item when starting a
1373 * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1374 CTRL to be passed down to the agent function.
1375 * decrypt.c (prepare_decryption): Ditto.
1376 * certreqgen.c (proc_parameters, read_parameters): Ditto.
1377 * certcheck.c (gpgsm_create_cms_signature): Ditto.
1379 2004-04-23 Werner Koch <wk@gnupg.org>
1381 * keydb.c (keydb_add_resource): Try to compress the file on init.
1383 * keylist.c (oidtranstbl): New. OIDs collected from several sources.
1384 (print_name_raw, print_names_raw, list_cert_raw): New.
1385 (gpgsm_list_keys): Check the dump mode and pass it down as
1388 2004-04-22 Werner Koch <wk@gnupg.org>
1390 * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1393 2004-04-13 Werner Koch <wk@gnupg.org>
1395 * misc.c (setup_pinentry_env): New.
1396 * import.c (popen_protect_tool): Call it.
1397 * export.c (popen_protect_tool): Call it.
1399 2004-04-08 Werner Koch <wk@gnupg.org>
1401 * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
1404 2004-04-07 Werner Koch <wk@gnupg.org>
1406 * gpgsm.c: New option --force-crl-refresh.
1407 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1409 2004-04-05 Werner Koch <wk@gnupg.org>
1411 * server.c (get_status_string): Add STATUS_NEWSIG.
1412 * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1414 * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1415 not just warn if a cert is not suitable; bail out immediately.
1417 2004-04-01 Werner Koch <wk@gnupg.org>
1419 * call-dirmngr.c (isvalid_status_cb): New.
1420 (unhexify_fpr): New. Taken from ../g10/call-agent.c
1421 (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1422 it thru. Detect need to check the respondert cert and do that.
1423 * certchain.c (gpgsm_validate_chain): Add new arg FLAGS. Changed
1426 2004-03-24 Werner Koch <wk@gnupg.org>
1428 * sign.c (gpgsm_sign): Include a short list of capabilities.
1430 2004-03-17 Werner Koch <wk@gnupg.org>
1432 * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1434 2004-03-16 Werner Koch <wk@gnupg.org>
1436 * gpgsm.c (main): Implemented --gpgconf-list.
1438 2004-03-15 Werner Koch <wk@gnupg.org>
1440 * keylist.c (list_cert_colon): Hack to set the expired flag.
1442 2004-03-09 Werner Koch <wk@gnupg.org>
1444 * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1446 * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1448 2004-03-04 Werner Koch <wk@gnupg.org>
1450 * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1452 * certchain.c (is_cert_still_valid): New. Code moved from ...
1453 (gpgsm_validate_chain): ... here because we now need to check at
1454 two places and at a later stage, so that we can pass the issuer
1455 cert down to the dirmngr.
1457 2004-03-03 Werner Koch <wk@gnupg.org>
1459 * call-agent.c (start_agent): Replaced pinentry setup code by a
1460 call to a new common function.
1462 * certdump.c (gpgsm_format_keydesc): Make sure the string is
1465 * export.c (gpgsm_export): Make sure that we don't export more
1466 than one certificate.
1468 2004-03-02 Werner Koch <wk@gnupg.org>
1470 * export.c (create_duptable, destroy_duptable)
1471 (insert_duptable): New.
1472 (gpgsm_export): Avoid duplicates.
1474 2004-02-26 Werner Koch <wk@gnupg.org>
1476 * certchain.c (compare_certs): New.
1477 (gpgsm_validate_chain): Fixed infinite certificate checks after
1480 2004-02-24 Werner Koch <wk@gnupg.org>
1482 * keylist.c (list_cert_colon): Print the fingerprint as the
1483 cert-id for root certificates.
1485 2004-02-21 Werner Koch <wk@gnupg.org>
1487 * keylist.c (list_internal_keys): Return error codes.
1488 (list_external_keys, gpgsm_list_keys): Ditto.
1489 * server.c (do_listkeys): Ditto.
1491 * gpgsm.c (main): Display a key description for --passwd.
1492 * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1494 2004-02-20 Werner Koch <wk@gnupg.org>
1496 * gpgsm.c (main): New option --debug-ignore-expiration.
1497 * certchain.c (gpgsm_validate_chain): Use it here.
1499 * certlist.c (cert_usage_p): Apply extKeyUsage.
1501 2004-02-19 Werner Koch <wk@gnupg.org>
1503 * export.c (export_p12, popen_protect_tool)
1504 (gpgsm_p12_export): New.
1505 * gpgsm.c (main): New command --export-secret-key-p12.
1507 2004-02-18 Werner Koch <wk@gnupg.org>
1509 * gpgsm.c (set_debug): Set the new --debug-level flags.
1510 (main): New option --gpgconf-list.
1511 (main): Do not setup -u and -r keys when not required.
1512 (main): Setup the used character set.
1514 * keydb.c (keydb_add_resource): Print a hint to start the
1517 2004-02-17 Werner Koch <wk@gnupg.org>
1519 * gpgsm.c: Fixed value parsing for --with-validation.
1520 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1521 * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1523 * gpgsm.c: New option --with-md5-fingerprint.
1524 * keylist.c (list_cert_std): Print MD5 fpr.
1526 * gpgsm.c: New options --with-validation.
1527 * server.c (option_handler): New option "with-validation".
1528 * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1529 WITH_VALIDATION. Changed callers to set it.
1530 (list_external_cb, list_external_keys): Pass CTRL to the callback.
1531 (list_cert_colon): Add arg CTRL. Check validation if requested.
1532 * certchain.c (unknown_criticals, allowed_ca, check_cert_policy)
1533 (gpgsm_validate_chain): New args LISTMODE and FP.
1534 (do_list): New helper for info output.
1535 (find_up): New arg FIND_NEXT.
1536 (gpgsm_validate_chain): After a bad signature try again with other
1539 * import.c (print_imported_status): New arg NEW_CERT. Print
1540 additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1541 (check_and_store): Always call above function after import.
1542 * server.c (get_status_string): Added STATUS_IMPORT_OK.
1544 2004-02-13 Werner Koch <wk@gnupg.org>
1546 * certcheck.c (gpgsm_create_cms_signature): Format a description
1547 for use by the pinentry.
1548 * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1549 * certdump.c (format_name_cookie, format_name_writer)
1550 (gpgsm_format_name): New.
1551 (gpgsm_format_serial): New.
1552 (gpgsm_format_keydesc): New.
1553 * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1554 (gpgsm_agent_pkdecrypt): Ditto.
1556 * encrypt.c (init_dek): Check for too weak algorithms.
1558 * import.c (parse_p12, popen_protect_tool): New.
1560 * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1561 Changed all callers.
1562 (base64_reader_cb): Handle it here.
1563 (gpgsm_reader_eof_seen): New.
1564 (base64_reader_cb): Set a flag for EOF.
1565 (simple_reader_cb): Ditto.
1567 2004-02-12 Werner Koch <wk@gnupg.org>
1569 * gpgsm.h, gpgsm.c: New option --protect-tool-program.
1570 * gpgsm.c (run_protect_tool): Use it.
1572 2004-02-11 Werner Koch <wk@gnupg.org>
1574 * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
1575 will allow to override directory names at make time.
1577 2004-02-02 Werner Koch <wk@gnupg.org>
1579 * import.c (check_and_store): Import certificates even with
1580 missing issuer's cert. Fixed an "depending on the verbose
1583 * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
1586 * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
1588 (list_internal_keys): Retrieve validity flag.
1589 (list_external_cb): Pass 0 as validity flag.
1590 * keydb.c (keydb_get_flags, keydb_set_flags): New.
1591 (keydb_set_cert_flags): New.
1592 (lock_all): Return a proper error code.
1594 (keydb_delete): Don't lock but check that it has been locked.
1595 (keydb_update_keyblock): Ditto.
1596 * delete.c (delete_one): Take a lock.
1598 2004-01-30 Werner Koch <wk@gnupg.org>
1600 * certchain.c (check_cert_policy): Fixed read error checking.
1601 (check_cert_policy): With no critical policies issue only a
1602 warning if the policy file does not exists.
1604 * sign.c (add_certificate_list): Decrement N for the first cert.
1606 2004-01-29 Werner Koch <wk@gnupg.org>
1608 * certdump.c (parse_dn_part): Map common OIDs to human readable
1609 labels. Make sure that a value won't get truncated if it includes
1612 2004-01-28 Werner Koch <wk@gnupg.org>
1614 * certchain.c (gpgsm_validate_chain): Changed the message printed
1615 for an untrusted root certificate.
1617 2004-01-27 Werner Koch <wk@gnupg.org>
1619 * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
1620 (print_dn_part): Do not delimit multiple RDN by " + ". Handle
1621 multi-valued RDNs in a special way, i.e. in the order specified by
1623 (print_dn_parts): Simplified.
1625 2004-01-16 Werner Koch <wk@gnupg.org>
1627 * sign.c (gpgsm_sign): Print an error message on all failures.
1628 * decrypt.c (gpgsm_decrypt): Ditto.
1630 2003-12-17 Werner Koch <wk@gnupg.org>
1632 * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
1633 (cmd_encrypt): Add all enrypt-to marked certs to the list.
1634 * encrypt.c (gpgsm_encrypt): Check that real recipients are
1636 * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
1637 options work. Pass the list of recients to gpgsm_server.
1638 * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
1639 (opt): Add NO_ENCRYPT_TO.
1640 * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
1641 Changed all callers and ignore duplicate entries.
1642 (is_cert_in_certlist): New.
1643 (gpgsm_add_cert_to_certlist): New.
1645 * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
1646 (gpgsm_dump_serial): Ditto.
1648 * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
1650 2003-12-16 Werner Koch <wk@gnupg.org>
1652 * gpgsm.c (main): Set the prefixes for assuan logging.
1654 * sign.c (gpgsm_sign): Add validation checks for the default
1657 * gpgsm.c: Add -k as alias for --list-keys and -K for
1660 2003-12-15 Werner Koch <wk@gnupg.org>
1662 * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
1663 not need for real strong random here and it even better protect
1664 the random bits used for the key.
1666 2003-12-01 Werner Koch <wk@gnupg.org>
1668 * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
1669 (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
1670 * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
1671 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
1672 proceed accordingly.
1674 2003-11-19 Werner Koch <wk@gnupg.org>
1676 * verify.c (gpgsm_verify): Use "0" instead of an empty string for
1677 the VALIDSIG status.
1679 2003-11-18 Werner Koch <wk@gnupg.org>
1681 * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
1683 * certchain.c (unknown_criticals): Fixed an error code test.
1685 2003-11-12 Werner Koch <wk@gnupg.org>
1687 Adjusted for API changes in Libksba.
1689 2003-10-31 Werner Koch <wk@gnupg.org>
1691 * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
1692 * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
1693 * sign.c (gpgsm_sign): Ditto.
1694 * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
1695 * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
1698 2003-10-25 Werner Koch <wk@gnupg.org>
1700 * certreqgen.c (read_parameters): Fixed faulty of !spacep().
1702 2003-08-20 Marcus Brinkmann <marcus@g10code.de>
1704 * encrypt.c (encode_session_key): Allocate enough space. Cast key
1705 byte to unsigned char to prevent sign extension.
1706 (encrypt_dek): Check return value before error.
1708 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1710 * encrypt.c (encode_session_key): Use new Libgcrypt interface.
1712 2003-07-31 Werner Koch <wk@gnupg.org>
1714 * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
1716 2003-07-29 Werner Koch <wk@gnupg.org>
1718 * gpgsm.c (main): Add secmem features and set the random seed file.
1719 (gpgsm_exit): Update the random seed file and enable debug output.
1721 2003-07-27 Werner Koch <wk@gnupg.org>
1723 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1725 2003-06-24 Werner Koch <wk@gnupg.org>
1727 * server.c (gpgsm_status_with_err_code): New.
1728 * verify.c (gpgsm_verify): Use it here instead of the old
1731 * verify.c (strtimestamp): Renamed to strtimestamp_r
1733 Adjusted for changes in the libgcrypt API. Some more fixes for the
1736 2003-06-04 Werner Koch <wk@gnupg.org>
1738 * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
1739 Include new membuf header and changed used type.
1741 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1743 2003-06-03 Werner Koch <wk@gnupg.org>
1745 Changed all error codes in all files to the new libgpg-error scheme.
1747 * gpgsm.h: Include gpg-error.h .
1748 * Makefile.am: Link with libgpg-error.
1750 2003-04-29 Werner Koch <wk@gnupg.org>
1752 * Makefile.am: Use libassuan. Don't override LDFLAGS anymore.
1753 * server.c (register_commands): Adjust for new Assuan semantics.
1755 2002-12-03 Werner Koch <wk@gnupg.org>
1757 * call-agent.c (gpgsm_agent_passwd): New.
1758 * gpgsm.c (main): New command --passwd and --call-protect-tool
1759 (run_protect_tool): New.
1761 2002-11-25 Werner Koch <wk@gnupg.org>
1763 * verify.c (gpgsm_verify): Handle content-type attribute.
1765 2002-11-13 Werner Koch <wk@gnupg.org>
1767 * call-agent.c (start_agent): Try to use $GPG_TTY instead of
1768 ttyname. Changed ttyname to test stdin becuase it can be assumed
1769 that output redirection is more common that input redirection.
1771 2002-11-12 Werner Koch <wk@gnupg.org>
1773 * gpgsm.c: New command --call-dirmngr.
1774 * call-dirmngr.c (gpgsm_dirmngr_run_command)
1775 (run_command_inq_cb,run_command_cb)
1776 (run_command_status_cb): New.
1778 2002-11-11 Werner Koch <wk@gnupg.org>
1780 * certcheck.c (gpgsm_check_cms_signature): Don't double free
1781 s_sig but free s_pkey at leave.
1783 2002-11-10 Werner Koch <wk@gnupg.org>
1785 * gpgsm.c: Removed duplicate --list-secret-key entry.
1787 2002-09-19 Werner Koch <wk@gnupg.org>
1789 * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
1791 * certchain.c (find_up): Print info when the cert was not found
1792 by the autorithyKeyIdentifier.
1794 2002-09-03 Werner Koch <wk@gnupg.org>
1796 * gpgsm.c (main): Disable the internal libgcrypt locking.
1798 2002-08-21 Werner Koch <wk@gnupg.org>
1800 * import.c (print_imported_summary): Cleaned up. Print new
1802 (check_and_store): Update non_imported counter.
1803 (print_import_problem): New.
1804 (check_and_store): Print error status message.
1805 * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
1807 2002-08-20 Werner Koch <wk@gnupg.org>
1809 * gpgsm.c (main): Use the log file only in server mode.
1811 * import.c (print_imported_summary): New.
1812 (check_and_store): Update the counters, take new argument.
1813 (import_one): Factored out core of gpgsm_import.
1814 (gpgsm_import): Print counters.
1815 (gpgsm_import_files): New.
1816 * gpgsm.c (main): Use the new function for import.
1818 2002-08-19 Werner Koch <wk@gnupg.org>
1820 * decrypt.c (gpgsm_decrypt): Return a better error status token.
1821 * verify.c (gpgsm_verify): Don't error on messages with no signing
1822 time or no message digest. This is only the case for messages
1823 without any signed attributes.
1825 2002-08-16 Werner Koch <wk@gnupg.org>
1827 * certpath.c: Renamed to ..
1828 * certchain.c: this. Renamed all all other usages of "path" in the
1829 context of certificates to "chain".
1831 * call-agent.c (learn_cb): Special treatment when the issuer
1832 certificate is missing.
1834 2002-08-10 Werner Koch <wk@gnupg.org>
1836 * Makefile.am (INCLUDES): Add definition for localedir.
1838 * keylist.c (list_cert_colon): Print the short fingerprint in the
1840 * fingerprint.c (gpgsm_get_short_fingerprint): New.
1841 * verify.c (gpgsm_verify): Print more verbose info for a good
1844 2002-08-09 Werner Koch <wk@gnupg.org>
1846 * decrypt.c (prepare_decryption): Hack to detected already
1849 * gpgsm.c (emergency_cleanup): New.
1850 (main): Initialize the signal handler.
1852 * sign.c (gpgsm_sign): Reset the hash context for subsequent
1853 signers and release it at the end.
1855 2002-08-05 Werner Koch <wk@gnupg.org>
1857 * server.c (cmd_signer): New command "SIGNER"
1858 (register_commands): Register it.
1859 (cmd_sign): Pass the signer list to gpgsm_sign.
1860 * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
1861 for secret key if set and changed all callers.
1862 * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
1864 * gpgsm.c (main): Support more than one -u.
1866 * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
1867 which is actually what gets returned from add_to_certlist.
1869 2002-07-26 Werner Koch <wk@gnupg.org>
1871 * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
1872 (gpgsm_check_cms_signature): Ditto.
1874 2002-07-22 Werner Koch <wk@gnupg.org>
1876 * keydb.c (keydb_add_resource): Register a lock file.
1877 (lock_all, unlock_all): Implemented.
1880 * gpgsm.c: Made --delete-key work.
1881 * server.c (cmd_delkeys): New.
1882 (register_commands): New command DELKEYS.
1884 * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
1885 used and a STATUS_ERROR with the algorithm oid.
1887 2002-07-03 Werner Koch <wk@gnupg.org>
1889 * server.c (gpgsm_status2): Insert a blank between all optional
1890 arguments when using assuan.
1891 * server.c (cmd_recipient): No more need for extra blank in constants.
1892 * import.c (print_imported_status): Ditto.
1893 * gpgsm.c (main): Ditto.
1895 2002-07-02 Werner Koch <wk@gnupg.org>
1897 * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
1900 * certpath.c (check_cert_policy): Don't use log_error to print a
1903 * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
1905 * call-agent.c (learn_cb): Print info message only for real imports.
1907 * import.c (gpgsm_import): Moved duplicated code to ...
1908 (check_and_store): new function. Added magic to import the entire
1909 chain. Print status only for real imports and moved printing code
1911 (print_imported_status): New.
1913 * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
1914 call in very verbose mode.
1916 * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
1917 with the server mode.
1919 2002-06-29 Werner Koch <wk@gnupg.org>
1921 * gpgsm.c: New option --auto-issuer-key-retrieve.
1922 * certpath.c (find_up): Try to retrieve an issuer key from an
1923 external source and from the ephemeral key DB.
1924 (find_up_store_certs_cb): New.
1926 * keydb.c (keydb_set_ephemeral): Does now return the old
1927 state. Call the backend only when required.
1929 * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
1930 (lookup_status_cb): Issue status only when CTRL is not NULL.
1931 (gpgsm_dirmngr_lookup): Document that CTRL is optional.
1933 * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
1935 2002-06-28 Werner Koch <wk@gnupg.org>
1937 * server.c (cmd_recipient): Add more reason codes.
1939 2002-06-27 Werner Koch <wk@gnupg.org>
1941 * certpath.c (gpgsm_basic_cert_check): Use
1942 --debug-no-path-validation to also bypass this basic check.
1944 * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
1946 * call-agent.c (start_agent): Create and pass the list of FD to
1947 keep in the child to assuan.
1948 * call-dirmngr.c (start_dirmngr): Ditto.
1950 2002-06-26 Werner Koch <wk@gnupg.org>
1952 * import.c (gpgsm_import): Print an STATUS_IMPORTED.
1954 * gpgsm.c: --debug-no-path-validation does not take an argument.
1956 2002-06-25 Werner Koch <wk@gnupg.org>
1958 * certdump.c (print_dn_part): Always print a leading slash,
1959 removed NEED_DELIM arg and changed caller.
1961 * export.c (gpgsm_export): Print LFs to FP and not stdout.
1962 (print_short_info): Ditto. Make use of gpgsm_print_name.
1964 * server.c (cmd_export): Use output-fd instead of data lines; this
1965 was actually the specified way.
1967 2002-06-24 Werner Koch <wk@gnupg.org>
1969 * gpgsm.c: Removed duped help entry for --list-keys.
1971 * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
1973 * certpath.c (gpgsm_validate_path): Use it here instead of the
1976 * certpath.c (check_cert_policy): Return No_Policy_Match if the
1977 policy file could not be opened.
1979 2002-06-20 Werner Koch <wk@gnupg.org>
1981 * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
1982 certificate with the required key usage.
1984 * gpgsm.c (main): Fixed a segv when using --outfile without an
1987 * keylist.c (print_capabilities): Also check for non-repudiation
1988 and data encipherment.
1989 * certlist.c (cert_usage_p): Test for signing and encryption was
1990 swapped. Add a case for certification usage, handle
1991 non-repudiation and data encipherment.
1992 (gpgsm_cert_use_cert_p): New.
1993 (gpgsm_add_to_certlist): Added a CTRL argument and changed all
1995 * certpath.c (gpgsm_validate_path): Use it here to print a status
1996 message. Added a CTRL argument and changed all callers to pass it.
1997 * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
1999 * verify.c (gpgsm_verify): Ditto.
2000 * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2002 2002-06-19 Werner Koch <wk@gnupg.org>
2004 * call-agent.c (learn_cb): Use log_info instead of log_error on
2007 * keydb.c (keydb_set_ephemeral): New.
2008 (keydb_store_cert): New are ephemeral, changed all callers.
2009 * keylist.c (list_external_cb): Store cert as ephemeral.
2010 * export.c (gpgsm_export): Kludge to export epehmeral certificates.
2012 * gpgsm.c (main): New command --list-external-keys.
2014 2002-06-17 Werner Koch <wk@gnupg.org>
2016 * certreqgen.c (read_parameters): Improved error handling.
2017 (gpgsm_genkey): Print error message.
2019 2002-06-13 Werner Koch <wk@gnupg.org>
2021 * gpgsm.c (main): New option --log-file.
2023 2002-06-12 Werner Koch <wk@gnupg.org>
2025 * call-dirmngr.c (lookup_status_cb): New.
2026 (gpgsm_dirmngr_lookup): Use the status CB. Add new arg CTRL and
2027 changed caller to pass it.
2029 * gpgsm.c (open_fwrite): New.
2030 (main): Allow --output for --verify.
2032 * sign.c (hash_and_copy_data): New.
2033 (gpgsm_sign): Implemented normal (non-detached) signatures.
2034 * gpgsm.c (main): Ditto.
2036 * certpath.c (gpgsm_validate_path): Special error handling for
2039 2002-06-10 Werner Koch <wk@gnupg.org>
2041 * server.c (get_status_string): Add STATUS_ERROR.
2043 * certpath.c (gpgsm_validate_path): Tweaked the error checking to
2044 return error codes in a more sensitive way.
2045 * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
2046 CA certificate and when the certificate has been revoked. Issue
2047 TRUST_FULLY even when the cert has expired. Append an error token
2048 to these status lines. Issue the new generic error status when a
2049 cert was not found and when leaving the function.
2051 2002-06-04 Werner Koch <wk@gnupg.org>
2053 * gpgsm.c (main): New command --list-sigs
2054 * keylist.c (list_cert_std): New. Use it whenever colon mode is
2056 (list_cert_chain): New.
2058 2002-05-31 Werner Koch <wk@gnupg.org>
2060 * gpgsm.c (main): Don't print the "go ahead" message for an
2063 2002-05-23 Werner Koch <wk@gnupg.org>
2065 * import.c (gpgsm_import): Add error messages.
2067 2002-05-21 Werner Koch <wk@gnupg.org>
2069 * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
2070 (list_external_keys): New.
2071 (gpgsm_list_keys): Dispatcher for above.
2072 * call-dirmngr.c (lookup_cb,pattern_from_strlist)
2073 (gpgsm_dirmngr_lookup): New.
2074 * server.c (option_handler): Handle new option --list-mode.
2075 (do_listkeys): Handle options and actually use the mode argument.
2076 (get_status_string): New code TRUNCATED.
2078 * import.c (gpgsm_import): Try to identify the type of input and
2079 handle certs-only messages.
2081 2002-05-14 Werner Koch <wk@gnupg.org>
2083 * gpgsm.c: New option --faked-system-time
2084 * sign.c (gpgsm_sign): And use it here.
2085 * certpath.c (gpgsm_validate_path): Ditto.
2087 2002-05-03 Werner Koch <wk@gnupg.org>
2089 * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
2091 * verify.c (gpgsm_verify): Tweaked usage of log_debug and
2092 log_error. Return EXPSIG status and add expiretime to VALIDSIG.
2094 2002-04-26 Werner Koch <wk@gnupg.org>
2096 * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
2099 * call-agent.c (start_agent): Be more silent without -v.
2100 * call-dirmngr.c (start_dirmngr): Ditto.
2102 2002-04-25 Werner Koch <wk@gnupg.org>
2104 * call-agent.c (start_agent): Make copies of old locales and check
2107 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2109 * call-agent.c (start_agent): Fix error handling logic so the
2110 locale is always correctly reset.
2112 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2114 * server.c (option_handler): Accept display, ttyname, ttytype,
2115 lc_ctype and lc_messages options.
2116 * gpgsm.c (main): Allocate memory for these options.
2117 * gpgsm.h (struct opt): Make corresponding members non-const.
2119 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
2121 * gpgsm.h (struct opt): New members display, ttyname, ttytype,
2122 lc_ctype, lc_messages.
2123 * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
2124 oTTYname, oTTYtype, oLCctype, oLCmessages.
2125 (opts): New entries for these options.
2126 (main): Handle these new options.
2127 * call-agent.c (start_agent): Set the various display and tty
2128 parameter after resetting.
2130 2002-04-18 Werner Koch <wk@gnupg.org>
2132 * certreqgen.c (gpgsm_genkey): Write status output on success.
2134 2002-04-15 Werner Koch <wk@gnupg.org>
2136 * gpgsm.c (main): Check ksba version.
2138 * certpath.c (find_up): New to use the authorithKeyIdentifier.
2139 Use it in all other functions to locate the signing cert..
2141 2002-04-11 Werner Koch <wk@gnupg.org>
2143 * certlist.c (cert_usable_p): New.
2144 (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
2145 (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
2146 (gpgsm_add_to_certlist): Check the key usage.
2147 * sign.c (gpgsm_sign): Ditto.
2148 * verify.c (gpgsm_verify): Print a message wehn an unsuitable
2149 certificate was used.
2150 * decrypt.c (gpgsm_decrypt): Ditto
2151 * keylist.c (print_capabilities): Determine values from the cert.
2153 2002-03-28 Werner Koch <wk@gnupg.org>
2155 * keylist.c (list_cert_colon): Fixed listing of crt record; the
2156 issuer is not at the right place. Print a chainingID.
2157 * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
2160 2002-03-21 Werner Koch <wk@gnupg.org>
2163 * gpgsm.c: Add command --export.
2164 * server.c (cmd_export): New.
2166 2002-03-13 Werner Koch <wk@gnupg.org>
2168 * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
2170 2002-03-12 Werner Koch <wk@gnupg.org>
2172 * certpath.c (check_cert_policy): Print the policy list.
2174 * verify.c (gpgsm_verify): Detect certs-only message.
2176 2002-03-11 Werner Koch <wk@gnupg.org>
2178 * import.c (gpgsm_import): Print a notice about imported certificates
2179 when in verbose mode.
2181 * gpgsm.c (main): Print INV_RECP status.
2182 * server.c (cmd_recipient): Ditto.
2184 * server.c (gpgsm_status2): New. Allows for a list of strings.
2185 (gpgsm_status): Divert to gpgsm_status2.
2187 * encrypt.c (gpgsm_encrypt): Don't use a default key when no
2188 recipients are given. Print a NO_RECP status.
2190 2002-03-06 Werner Koch <wk@gnupg.org>
2192 * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
2193 (do_listkeys): new. Add pattern parsing.
2195 * keylist.c (gpgsm_list_keys): Handle selection pattern.
2197 * gpgsm.c: New command --learn-card
2198 * call-agent.c (learn_cb,gpgsm_agent_learn): New.
2200 * gpgsm.c (main): Print error messages for non-implemented commands.
2202 * base64.c (base64_reader_cb): Use case insensitive compare of the
2203 Content-Type string to detect plain base-64.
2205 2002-03-05 Werner Koch <wk@gnupg.org>
2207 * gpgsm.c, gpgsm.h: Add local_user.
2208 * sign.c (gpgsm_get_default_cert): New.
2209 (get_default_signer): Use the new function if local_user is not
2210 set otherwise used that value.
2211 * encrypt.c (get_default_recipient): Removed.
2212 (gpgsm_encrypt): Use gpgsm_get_default_cert.
2214 * verify.c (gpgsm_verify): Better error text for a bad signature
2215 found by comparing the hashs.
2217 2002-02-27 Werner Koch <wk@gnupg.org>
2219 * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2222 2002-02-25 Werner Koch <wk@gnupg.org>
2224 * server.c (option_handler): Allow to use -2 for "send all certs
2225 except the root cert".
2226 * sign.c (add_certificate_list): Implement it here.
2227 * certpath.c (gpgsm_is_root_cert): New.
2229 2002-02-19 Werner Koch <wk@gnupg.org>
2231 * certpath.c (check_cert_policy): New.
2232 (gpgsm_validate_path): And call it from here.
2233 * gpgsm.c (main): New options --policy-file,
2234 --disable-policy-checks and --enable-policy-checks.
2235 * gpgsm.h (opt): Added policy_file, no_policy_checks.
2237 2002-02-18 Werner Koch <wk@gnupg.org>
2239 * certpath.c (gpgsm_validate_path): Ask the agent to add the
2240 certificate into the trusted list.
2241 * call-agent.c (gpgsm_agent_marktrusted): New.
2243 2002-02-07 Werner Koch <wk@gnupg.org>
2245 * certlist.c (gpgsm_add_to_certlist): Check that the specified
2246 name identifies a certificate unambiguously.
2247 (gpgsm_find_cert): Ditto.
2249 * server.c (cmd_listkeys): Check that the data stream is available.
2250 (cmd_listsecretkeys): Ditto.
2252 (cmd_sign): Fix ambiguousity in option recognition.
2254 * gpgsm.c (main): Enable --logger-fd.
2256 * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2259 * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2262 * keylist.c (list_cert_colon): Filter out control characters.
2264 2002-02-06 Werner Koch <wk@gnupg.org>
2266 * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
2268 * server.c (reset_notify): Close input and output FDs.
2269 (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
2270 (cmd_genkey): Close the FDs and release the recipient list even in
2273 2002-02-01 Marcus Brinkmann <marcus@g10code.de>
2275 * sign.c (gpgsm_sign): Do not release certificate twice.
2277 2002-01-29 Werner Koch <wk@gnupg.org>
2279 * call-agent.c (gpgsm_agent_havekey): New.
2280 * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
2281 when we know that the secret key is available.
2282 (gpgsm_list_keys): New arg MODE, check whether a secret key is
2283 available. Changed all callers.
2284 * gpgsm.c (main): New command --list-secret-keys.
2285 * server.c (cmd_listsecretkeys): New.
2286 (cmd_listkeys): Return secret keys with "crs" record.
2288 2002-01-28 Werner Koch <wk@gnupg.org>
2290 * certreqgen.c (create_request): Store the email address in the req.
2292 2002-01-25 Werner Koch <wk@gnupg.org>
2294 * gpgsm.c (main): Disable core dumps.
2296 * sign.c (add_certificate_list): New.
2297 (gpgsm_sign): Add the certificates to the CMS object.
2298 * certpath.c (gpgsm_walk_cert_chain): New.
2299 * gpgsm.h (server_control_s): Add included_certs.
2300 * gpgsm.c: Add option --include-certs.
2301 (gpgsm_init_default_ctrl): New.
2303 * server.c (gpgsm_server): Ditto.
2304 (option_handler): Support --include-certs.
2306 2002-01-23 Werner Koch <wk@gnupg.org>
2308 * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
2309 * certdump.c (gpgsm_dump_string): New.
2310 (print_dn): Replaced by above.
2312 2002-01-22 Werner Koch <wk@gnupg.org>
2314 * certpath.c (unknown_criticals): New.
2316 (gpgsm_validate_path): Check validity, CA attribute, path length
2317 and unknown critical extensions.
2319 2002-01-21 Werner Koch <wk@gnupg.org>
2321 * gpgsm.c: Add option --enable-crl-checks.
2323 * call-agent.c (start_agent): Implemented socket based access.
2324 * call-dirmngr.c (start_dirmngr): Ditto.
2326 2002-01-20 Werner Koch <wk@gnupg.org>
2328 * server.c (option_handler): New.
2329 (gpgsm_server): Register it with assuan.
2331 2002-01-19 Werner Koch <wk@gnupg.org>
2333 * server.c (gpgsm_server): Use assuan_deinit_server and setup
2334 assuan logging if enabled.
2335 * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2338 * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2340 2002-01-15 Werner Koch <wk@gnupg.org>
2342 * import.c (gpgsm_import): Just do a basic cert check before
2344 * certpath.c (gpgsm_basic_cert_check): New.
2346 * keydb.c (keydb_store_cert): New.
2347 * import.c (store_cert): Removed and change all caller to use
2349 * verify.c (store_cert): Ditto.
2351 * certlist.c (gpgsm_add_to_certlist): Validate the path
2353 * certpath.c (gpgsm_validate_path): Check the trust list.
2354 * call-agent.c (gpgsm_agent_istrusted): New.
2356 2002-01-14 Werner Koch <wk@gnupg.org>
2358 * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2359 * certlist.c (gpgsm_find_cert): New.
2361 2002-01-13 Werner Koch <wk@gnupg.org>
2363 * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2366 2002-01-11 Werner Koch <wk@gnupg.org>
2368 * call-dirmngr.c: New.
2369 * certpath.c (gpgsm_validate_path): Check the CRL here.
2370 * fingerprint.c (gpgsm_get_certid): New.
2371 * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2373 2002-01-10 Werner Koch <wk@gnupg.org>
2375 * base64.c (gpgsm_create_writer): Allow to set the object name
2377 2002-01-08 Werner Koch <wk@gnupg.org>
2379 * keydb.c (spacep): Removed because it is now in util.c
2381 * server.c (cmd_genkey): New.
2382 * certreqgen.c: New. The parameter handling code has been taken
2383 from gnupg/g10/keygen.c version 1.0.6.
2384 * call-agent.c (gpgsm_agent_genkey): New.
2386 2002-01-02 Werner Koch <wk@gnupg.org>
2388 * server.c (rc_to_assuan_status): Removed and changed all callers
2389 to use map_to_assuan_status.
2391 2001-12-20 Werner Koch <wk@gnupg.org>
2393 * verify.c (gpgsm_verify): Implemented non-detached signature
2394 verification. Add OUT_FP arg, initialize a writer and changed all
2396 * server.c (cmd_verify): Pass an out_fp if one has been set.
2398 * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2400 * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2402 (print_time): Renamed to gpgsm_dump_time, made global.
2403 (gpgsm_dump_serial): Take a real S-Expression as argument and
2404 print the first item.
2405 * keylist.c (list_cert_colon): Ditto.
2406 * keydb.c (keydb_search_issuer_sn): Ditto.
2407 * decrypt.c (print_integer_sexp): Removed and made callers
2408 use gpgsm_dump_serial.
2409 * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2411 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2413 * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2415 2001-12-18 Werner Koch <wk@gnupg.org>
2417 * verify.c (print_integer_sexp): Renamed from print_integer and
2418 print the serial number according to the S-Exp rules.
2419 * decrypt.c (print_integer_sexp): Ditto.
2421 2001-12-17 Werner Koch <wk@gnupg.org>
2423 * keylist.c (list_cert_colon): Changed for new return value of
2425 * keydb.c (keydb_search_issuer_sn): Ditto.
2426 * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2427 returingin functions.
2428 * fingerprint.c (gpgsm_get_keygrip): Ditto.
2429 * encrypt.c (encrypt_dek): Ditto
2430 * certcheck.c (gpgsm_check_cms_signature): Ditto
2431 * decrypt.c (prepare_decryption): Ditto.
2432 * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2433 use KsbaSexp type and calculate the length.
2435 * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2437 * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2439 * fingerprint.c (gpgsm_get_keygrip): Use the new
2440 gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2441 therefore the grip values changed.
2443 2001-12-15 Werner Koch <wk@gnupg.org>
2445 * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2447 (gpgsm_create_cms_signature): Removed the commented fake key
2448 code. This makes the function pretty simple.
2450 * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2452 * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2453 * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2455 2001-12-14 Werner Koch <wk@gnupg.org>
2457 * keylist.c (list_cert_colon): Kludge to show an email address
2458 encoded in the subject's DN.
2460 * verify.c (gpgsm_verify): Add hash debug helpers
2461 * sign.c (gpgsm_sign): Ditto.
2463 * base64.c (base64_reader_cb): Reset the linelen when we need to
2464 skip the line and adjusted test; I somehow forgot about DeMorgan.
2466 * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify)
2467 (cmd_import): Close the FDs on success.
2468 (close_message_fd): New.
2469 (input_notify): Setting autodetect_encoding to 0 after initializing
2470 it to 0 is pretty pointless. Easy to fix.
2472 * gpgsm.c (main): New option --debug-wait n, so that it is
2473 possible to attach gdb when used in server mode.
2475 * sign.c (get_default_signer): Use keydb_classify_name here.
2477 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2479 * call-agent.c (LINELENGTH): Removed.
2480 (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2481 (gpgsm_agent_pkdecrypt): Likewise.
2483 2001-12-13 Werner Koch <wk@gnupg.org>
2485 * keylist.c (list_cert_colon): Print alternative names of subject
2486 and a few other values.
2488 2001-12-12 Werner Koch <wk@gnupg.org>
2490 * gpgsm.c (main): New options --assume-{armor,base64,binary}.
2491 * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2493 2001-12-04 Werner Koch <wk@gnupg.org>
2495 * call-agent.c (read_from_agent): Check for inquire responses.
2496 (request_reply): Handle them using a new callback arg, changed all
2498 (gpgsm_agent_pkdecrypt): New.
2500 2001-11-27 Werner Koch <wk@gnupg.org>
2502 * base64.c: New. Changed all other functions to use this instead
2503 of direct creation of ksba_reader/writer.
2504 * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2506 2001-11-26 Werner Koch <wk@gnupg.org>
2508 * gpgsm.c: New option --agent-program
2509 * call-agent.c (start_agent): Allow to override the default path
2512 * keydb.c (keydb_add_resource): Create keybox
2514 * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2516 * server.c (rc_to_assuan_status): New. Use it for all commands.
2519 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
2520 2007, 2008, 2009 Free Software Foundation, Inc.
2522 This file is free software; as a special exception the author gives
2523 unlimited permission to copy and/or distribute it, with or without
2524 modifications, as long as this notice is preserved.
2526 This file is distributed in the hope that it will be useful, but
2527 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2528 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.