1 2009-05-18 Werner Koch <wk@g10code.com>
3 * server.c (option_handler): New option "no-encrypt-to".
4 (cmd_encrypt): Make use of it.
6 * gpgsm.c: Remove not implemented --verify-files.
8 2009-04-02 Werner Koch <wk@g10code.com>
10 * keylist.c (list_cert_std): Print card serial number.
12 2009-04-01 Werner Koch <wk@g10code.com>
14 * export.c (popen_protect_tool): Add command line option
15 --agent-program and pass flag bit 6.
16 * import.c (popen_protect_tool): Ditto.
18 2009-03-26 Werner Koch <wk@g10code.com>
20 * gpgsm.c (main): s/def_digest_string/forced_digest_algo/ and
21 activate the --digest-algo option.
22 * gpgsm.h (struct opt): s/def_digest_algo/forced_digest_algo/.
23 * sign.c (gpgsm_sign): Implement --digest-algo.
25 * sign.c (MAX_DIGEST_LEN): Change to 64.
27 * call-agent.c (gpgsm_agent_marktrusted): Format the issuer name.
29 2009-03-25 Werner Koch <wk@g10code.com>
31 * decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY stati.
33 * fingerprint.c (gpgsm_get_short_fingerprint): Add arg R_HIGH and
36 2009-03-23 Werner Koch <wk@g10code.com>
38 * delete.c (delete_one): Also delete ephemeral certificates if
41 2009-03-20 Werner Koch <wk@g10code.com>
43 * keylist.c (list_internal_keys): Set released cert to NULL.
45 * call-agent.c (learn_status_cb): New.
46 (gpgsm_agent_learn): Use it.
47 (learn_cb): Send a progress for every certificate.
49 2009-03-18 Werner Koch <wk@g10code.com>
51 * gpgsm.h (struct opt): Move field WITH_EPHEMERAL_KEYS to struct
53 * gpgsm.c (main): Change accordingly.
54 * keylist.c (list_internal_keys): Ditto.
55 * server.c (option_handler): Add "with-ephemeral-keys".
57 2009-03-12 Werner Koch <wk@g10code.com>
59 * certdump.c (gpgsm_dump_time): Remove.
60 * certdump.c, verify.c, certchain.c
61 * gpgsm.c: s/gpgsm_dump_time/dump_isotime/.
63 2009-03-06 Werner Koch <wk@g10code.com>
65 * call-agent.c (gpgsm_agent_keyinfo, keyinfo_status_cb): New.
66 * keylist.c (list_cert_colon): Print card S/N.
68 * keylist.c (list_internal_keys): Always list ephemeral keys if
69 specified by keygrip or fingerprint.
70 (list_cert_raw): Always show ephemeral flag.
71 * export.c (gpgsm_export): Export ephemeral keys if specified by
74 2009-02-09 Werner Koch <wk@g10code.com>
76 * gpgsm.c (main): Change default cipher back to 3DES.
78 2009-01-12 Werner Koch <wk@g10code.com>
80 * keylist.c (print_utf8_extn_raw): Cast printf precision argument.
82 2009-01-08 Werner Koch <wk@g10code.com>
84 * fingerprint.c (gpgsm_get_keygrip_hexstring): Add error detection.
86 2008-12-10 Werner Koch <wk@g10code.com>
88 * gpgsm.c (our_cipher_test_algo): Use the GCRY constants as we now
90 (our_md_test_algo): Ditto. Add SHA224.
91 (main) <aGpgConfList>: Update default cipher algo.
93 2008-12-09 Werner Koch <wk@g10code.com>
95 * gpgsm.c (main): Call i18n_init before init_common_subsystems.
97 2008-12-05 Werner Koch <wk@g10code.com>
99 * certreqgen.c (create_request): Provide a custom prompt for the
102 * certdump.c (gpgsm_format_keydesc): Remove debug output.
103 (gpgsm_format_keydesc): Remove saving of errno as xfree is
104 supposed not to change it. Use the new percent_plus_escape
105 function which also fixes the issue that we did not escaped a
108 2008-11-18 Werner Koch <wk@g10code.com>
110 * gpgsm.c (make_libversion): New.
111 (my_strusage): Use new function.
112 (build_lib_list): Remove.
114 2008-11-13 Werner Koch <wk@g10code.com>
116 * gpgsm.c: Remove all unused options. Use ARGPARSE macros.
118 2008-10-28 Werner Koch <wk@g10code.com>
120 * certdump.c (gpgsm_format_keydesc): Use xtryasprintf and xfree.
121 (gpgsm_es_print_name): Factor code out to ...
122 (gpgsm_es_print_name2): New function.
123 (gpgsm_format_name2, format_name_writer): Use estream so that it
124 works on all platforms.
125 (format_name_writer): Fix reallocation bug.
127 2008-10-23 Werner Koch <wk@g10code.com>
129 * import.c (popen_protect_tool): Add arg CTRL and assure that the
130 agent is running. Pass a value for CTRL from all caller.
131 * export.c (popen_protect_tool): Ditto.
133 2008-10-21 Werner Koch <wk@g10code.com>
135 * call-dirmngr.c (inq_certificate_parm_s): Add field CTRL.
136 (gpgsm_dirmngr_isvalid): Supply a value for that field.
137 (inq_certificate): Add inquiry ISTRUSTED.
139 * call-agent.c (gpgsm_agent_istrusted): Add new optional arg
140 HEXFPR. Changed all callers.
142 2008-10-20 Werner Koch <wk@g10code.com>
144 * keydb.c (keydb_locate_writable): Mark unused arg.
145 (keydb_search_kid): Ditto.
146 (keydb_clear_some_cert_flags): Ditto.
147 * server.c (cmd_encrypt): Ditto.
148 (cmd_decrypt, cmd_verify, cmd_import, cmd_genkey): Ditto.
149 * call-agent.c (gpgsm_scd_pksign): Ditto.
150 * call-dirmngr.c (release_dirmngr, release_dirmngr2)
151 (run_command_cb): Ditto.
152 * certlist.c (gpgsm_add_cert_to_certlist): Ditto.
153 * certchain.c (find_up_dirmngr): Ditto.
154 * keylist.c (print_key_data): Ditto.
155 (list_cert_raw, list_cert_std): Ditto.
156 * qualified.c (gpgsm_is_in_qualified_list): Ditto.
158 * gpgsm.c (set_binary) [!W32]: Mark unused arg.
160 2008-10-17 Werner Koch <wk@g10code.com>
162 * call-dirmngr.c (start_dirmngr, start_dirmngr2): Reset the lock
164 (release_dirmngr, release_dirmngr2): Replace asserts by error messages.
165 (gpgsm_dirmngr_lookup): Replace assert by fatal error message.
167 2008-10-13 Werner Koch <wk@g10code.com>
169 * gpgsm.c: Add alias --delete-keys.
171 2008-09-30 Werner Koch <wk@g10code.com>
173 * server.c (cmd_getinfo): New subcommand agent-check.
174 * call-agent.c (gpgsm_agent_send_nop): New.
176 2008-09-29 Werner Koch <wk@g10code.com>
178 * certcheck.c (MY_GCRY_PK_ECDSA): Remove. Change users to
180 * gpgsm.c (MY_GCRY_PK_ECDSA): Ditto.
181 * sign.c (MY_GCRY_MD_SHA224): Remove change users to GCRY_MD_SHA224.
183 2008-09-04 Werner Koch <wk@g10code.com>
185 * certdump.c (gpgsm_format_keydesc): Work around a mingw32 bug.
187 2008-09-03 Werner Koch <wk@g10code.com>
189 * sign.c (MY_GCRY_MD_SHA224): New, so that we don't need libgcrypt
192 2008-08-13 Werner Koch <wk@g10code.com>
194 * keylist.c (list_cert_colon): Print 'f' for validated certs.
196 2008-08-08 Marcus Brinkmann <marcus@g10code.de>
198 * gpgsm.h (struct server_control_s): Remove member dirmngr_seen.
199 * call-dirmngr.c (dirmngr2_ctx, dirmngr_ctx_locked)
200 (dirmngr2_ctx_locked): New global variables.
201 (prepare_dirmngr): Don't check dirmngr_seen anymore.
202 (start_dirmngr): Move bunch of code to ...
203 (start_dirmngr_ext): ... this new function.
204 (release_dirmngr, start_dirmngr2, release_dirmngr2): New
206 (gpgsm_dirmngr_isvalid): Call release_dirmngr.
207 (gpgsm_dirmngr_lookup): Call release_dirmngr. If dirmngr_ctx is
208 locked, use dirmngr2_locked.
209 (gpgsm_dirmngr_run_command): Call release_dirmngr.
211 2008-06-25 Werner Koch <wk@g10code.com>
213 * sign.c (gpgsm_sign): Revamp the hash algorithm selection.
214 * gpgsm.h (struct certlist_s): Add field HASH_ALGO and HASH_ALGO_OID.
216 * qualified.c (gpgsm_qualified_consent): Fix double free.
218 * gpgsm.c (main): Change default cipher algo to AES.
220 * keylist.c (print_utf8_extn_raw, print_utf8_extn): New.
221 (list_cert_raw, list_cert_std): Print the TeleSec restriction
224 2008-06-23 Werner Koch <wk@g10code.com>
226 * encrypt.c (encode_session_key): Replace xmalloc by xtrymalloc.
227 Use bin2hex instead of open coding the conversion.
228 (encrypt_dek): Init S_DATA.
230 2008-06-13 Marcus Brinkmann <marcus@ulysses.g10code.com>
232 * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
234 2008-06-12 Marcus Brinkmann <marcus@g10code.de>
236 * gpgsm.h (struct keyserver_spec): New struct.
237 (opt): Add member keyserver.
238 * gpgsm.c (keyserver_list_free, parse_keyserver_line): New functions.
239 (main): Implement --keyserver option.
240 * call-dirmngr.c (prepare_dirmngr): Send LDAPSERVER commands.
242 2008-05-20 Werner Koch <wk@g10code.com>
244 * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
245 the export function. Reported by Marc Mutz.
247 2008-05-06 Werner Koch <wk@g10code.com>
249 * keylist.c (list_external_keys): Ignore NOT FOUND error code.
252 2008-04-23 Werner Koch <wk@g10code.com>
254 * certchain.c (find_up): Make correct C89 code. Declare variable
255 at the top of the block. Reported by Alain Guibert.
257 2008-04-09 Werner Koch <wk@g10code.com>
259 * verify.c (gpgsm_verify): Print the message hash values on error.
261 2008-03-31 Werner Koch <wk@g10code.com>
263 * call-dirmngr.c (start_dirmngr): Use log_info instead of
264 log_error when falling back to start dirmngr.
266 2008-03-20 Werner Koch <wk@g10code.com>
268 * certlist.c (gpgsm_add_to_certlist): Always save the first
269 subject and issuer. Initialize issuer with issuer and not with
271 (same_subject_issuer): Set issuer2 to issuer and not to subject.
273 2008-03-17 Werner Koch <wk@g10code.com>
275 * certdump.c (my_funopen_hook_size_t): New.
276 (format_name_writer): Use it.
278 2008-03-13 Werner Koch <wk@g10code.com>
280 * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
282 (gpgsm_format_keydesc): Remove superfluous test. Add expire date
285 2008-02-18 Werner Koch <wk@g10code.com>
287 * certchain.c (gpgsm_is_root_cert): Factor code out to ...
288 (is_root_cert): New. Extend test for self-issued certificates
290 (do_validate_chain, gpgsm_basic_cert_check)
291 (gpgsm_walk_cert_chain): Use it here.
293 * gpgsm.c: Add option --no-common-certs-import.
295 * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
296 (check_cert_policy): Be more silent with --quiet.
298 * gpgsm.c: Add option --disable-dirmngr.
299 * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
300 * call-dirmngr.c (start_dirmngr): Implement option.
302 2008-02-14 Werner Koch <wk@g10code.com>
304 * server.c (option_handler): Add option allow-pinentry-notify.
305 (gpgsm_proxy_pinentry_notify): New.
306 * call-agent.c (default_inq_cb): New.
307 (gpgsm_agent_pksign, gpgsm_scd_pksign, gpgsm_agent_readkey)
308 (gpgsm_agent_istrusted, gpgsm_agent_marktrusted)
309 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation): Call it.
310 (struct cipher_parm_s, struct genkey_parm_s): Add field CTRL.
311 (inq_ciphertext_cb): Test keyword and fallback to default_inq_cb.
312 (inq_genkey_parms): Ditto.
313 (start_agent): Tell agent to send us the pinentry notifications.
315 2008-02-13 Werner Koch <wk@g10code.com>
317 * call-dirmngr.c (gpgsm_dirmngr_lookup): Add arg CACHE_ONLY.
318 * keylist.c (list_external_keys): Pass false for new arg.
319 * certchain.c (find_up_dirmngr): New.
320 (find_up): Also try to read from the dirmngr cache.
321 (find_up, find_up_external, gpgsm_walk_cert_chain)
322 (gpgsm_basic_cert_check, allowed_ca): Add arg CTRL and changed all
324 * call-agent.c (struct learn_parm_s): Add field CTRL.
325 (gpgsm_agent_learn): Set it.
327 2008-02-11 Werner Koch <wk@g10code.com>
329 * server.c (cmd_getinfo): New.
330 (gpgsm_server): Register GETINFO.
332 2008-01-29 Marcus Brinkmann <marcus@g10code.de>
334 * keylist.c (list_internal_keys): New variable lastcert. Use it
335 to suppress duplicates which immediately follow each other.
337 2008-01-27 Werner Koch <wk@g10code.com>
339 * import.c (popen_protect_tool): Set bit 7 in the flags for
340 gnupg_spawn_process so that under W32 no window appears.
341 * export.c (popen_protect_tool): Ditto.
343 2007-12-13 Werner Koch <wk@g10code.com>
345 * gpgsm.c (main): Add option --extra-digest-algo.
346 * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
347 * verify.c (gpgsm_verify): Use it. Use the hash algorithm from
350 2007-12-11 Werner Koch <wk@g10code.com>
352 * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
354 * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
355 (cmd_recipient): Start audit session.
357 * gpgsm.c (main): Revamp creation of the audit log.
359 * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
360 * call-agent.c (start_agent): Record an audit event.
361 * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
363 (prepare_dirmngr): New helper for start_dirmngr.
365 * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
367 2007-12-03 Werner Koch <wk@g10code.com>
369 * gpgsm.c (main): Call gnupg_reopen_std.
371 h2007-11-22 Werner Koch <wk@g10code.com>
373 * server.c (cmd_getauditlog): New.
374 (register_commands): Register GETAUDITLOG.
376 2007-11-19 Werner Koch <wk@g10code.com>
378 * server.c (cmd_recipient, cmd_signer): Add error reason 11.
380 * gpgsm.c (main): Print a warning if --audit-log is used.
382 2007-11-15 Werner Koch <wk@g10code.com>
384 * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
385 * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
386 * gpgsm.c (main): New option --xauthority.
387 * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
388 * server.c (option_handler): Ad the new options.
390 2007-11-07 Werner Koch <wk@g10code.com>
392 * gpgsm.c (main): New option --audit-log.
393 * server.c (option_handler): New option enable-audit-log.
394 (start_audit_session): New.
395 (cmd_verify): Create audit context.
396 (gpgsm_server): Release the context.
398 * gpgsm.h (struct server_control_s): Add member AUDIT, include
400 * certdump.c (gpgsm_format_sn_issuer): New.
401 * verify.c (hash_data): Return an error code.
402 (gpgsm_verify): Add calls to audit_log.
404 * gpgsm.c (get_status_string): Remove.
405 * gpgsm.h: Include status.h instead of errors.h.
407 2007-10-19 Werner Koch <wk@g10code.com>
409 * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
410 (gpgsm_not_qualified_warning): Ditto.
411 * certdump.c (gpgsm_format_keydesc): Ditto.
413 2007-09-14 Werner Koch <wk@g10code.com>
415 * gpgsm.c (build_lib_list): New.
416 (my_strusage): Print lib info.
418 2007-08-24 Werner Koch <wk@g10code.com>
420 * Makefile.am (common_libs): Swap libkeybox and jnlib.
422 2007-08-23 Werner Koch <wk@g10code.com>
424 * certlist.c (gpgsm_certs_identical_p): New.
425 (gpgsm_add_to_certlist): Ignore duplicate certificates in
426 ambigious name detection.
427 (gpgsm_find_cert): Ditto.
428 * export.c (gpgsm_p12_export): Ditto.
430 2007-08-22 Werner Koch <wk@g10code.com>
432 * certreqgen.c (create_request): Replace open coding by bin2hex.
434 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
436 2007-08-21 Werner Koch <wk@g10code.com>
438 * import.c (parse_p12): Use gnupg_tmpfile.
439 * export.c (export_p12): Ditto.
441 2007-08-20 Werner Koch <wk@g10code.com>
443 * certreqgen.c (read_parameters): Change FP to an estream_t.
444 (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
445 * server.c (cmd_genkey): Adjust for that.
446 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
447 instead of a temporary file.
449 2007-08-14 Werner Koch <wk@g10code.com>
451 * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name. change
452 the way infostr is xstrdupped.
454 * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
457 2007-08-13 Werner Koch <wk@g10code.com>
459 * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
460 message depend on that.
461 (main): Add avriable RECP_REQUIRED, set ift for encryption
462 commands and pass it to do_add_recipient.
463 (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
465 2007-08-09 Werner Koch <wk@g10code.com>
467 * gpgsm.c (main) [W32]: Enable CRL check by default.
468 (main): Update the default control structure after reading the
470 (gpgsm_parse_validation_model, parse_validation_model): New.
471 (main): New option --validation-model.
472 * certchain.c (gpgsm_validate_chain): Implement this option.
473 * server.c (option_handler): Ditto.
475 * certchain.c (is_cert_still_valid): Reformatted. Add arg
476 FORCE_OCSP. Changed callers to set this flag when using the chain
479 2007-08-08 Werner Koch <wk@g10code.com>
481 * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
482 which prefixed the output with a 3A and cut it off at a 00.
484 * keylist.c (list_cert_raw): Print the certificate ID first and
485 rename "Serial number" to "S/N".
486 (list_cert_std): Ditto.
488 2007-08-07 Werner Koch <wk@g10code.com>
490 * gpgsm.c (main): Allow a string for --faked-system-time.
492 2007-08-06 Werner Koch <wk@g10code.com>
494 Implementation of the chain model.
496 * gpgsm.h (struct rootca_flags_s): Define new members VALID and
498 * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
499 (istrusted_status_cb): Set CHAIN_MODEL.
500 * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
502 (gpgsm_validate_chain): Factor some code out to ...
503 (check_validity_period, ask_marktrusted): .. new.
504 (check_validity_cm_basic, check_validity_cm_main): New.
505 (do_validate_chain): New with all code from gpgsm_validate_chain.
506 New arg ROOTCA_FLAGS.
507 (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
508 model. Add RETFLAGS arg and changed all callers to pass NULL. Add
509 CHECKTIME arg and changed all callers to pass a nil value.
510 (has_validity_model_chain): New.
511 * verify.c (gpgsm_verify): Check for chain model and return as
512 part of the trust status.
514 * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
515 (VALIDATE_FLAG_NO_DIRMNGR): New.
516 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
518 2007-08-03 Werner Koch <wk@g10code.com>
520 * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
523 * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
525 * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
527 2007-08-02 Werner Koch <wk@g10code.com>
529 * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
531 2007-07-17 Werner Koch <wk@g10code.com>
533 * gpgsm.c (main): Implement --default-key.
534 (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
536 2007-07-16 Werner Koch <wk@g10code.com>
538 * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
539 newer assuan versions.
541 2007-07-12 Werner Koch <wk@g10code.com>
543 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
544 when passing an int value.
545 * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
546 (cmd_export, cmd_message, cmd_genkey): Translate file descriptors.
548 2007-07-05 Werner Koch <wk@g10code.com>
550 * Makefile.am (common_libs): Changed order of libs.
552 2007-07-04 Werner Koch <wk@g10code.com>
554 * certchain.c (check_cert_policy): Remove extra checks for
555 GPG_ERR_NO_VALUE. They are not needed since libksba 1.0.1.
556 * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
557 * certlist.c (cert_usage_p, cert_usage_p): Ditto.
559 2007-06-26 Werner Koch <wk@g10code.com>
561 * gpgsm.c (main): Call gnupg_rl_initialize.
562 * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
564 2007-06-25 Werner Koch <wk@g10code.com>
566 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
567 add new arg FOR_WRITE. Change callers to pass new arg.
569 2007-06-24 Werner Koch <wk@g10code.com>
571 * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
574 2007-06-21 Werner Koch <wk@g10code.com>
576 * certreqgen-ui.c: New.
577 * gpgsm.c (main): Let --gen-key call it.
578 * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
581 * gpgsm.h (ctrl_t): Remove. It is now declared in ../common/util.h.
583 * call-agent.c (start_agent): Factored almost all code out to
586 2007-06-20 Werner Koch <wk@g10code.com>
588 * call-agent.c (start_agent) [W32]: Start the agent on the fly.
590 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
592 * gpgsm.c (main): Percent escape output of --gpgconf-list.
594 2007-06-14 Werner Koch <wk@g10code.com>
596 * call-agent.c (start_agent): Use gnupg_module_name.
597 * call-dirmngr.c (start_dirmngr): Ditto.
598 * export.c (export_p12): Ditto.
599 * import.c (parse_p12): Ditto.
600 * gpgsm.c (run_protect_tool): Ditto.
602 2007-06-12 Werner Koch <wk@g10code.com>
604 * gpgsm.c (main): Replace some calls by init_common_subsystems.
605 (main): Use gnupg_datadir.
606 * qualified.c (read_list): Use gnupg-datadir.
608 2007-06-11 Werner Koch <wk@g10code.com>
610 * Makefile.am (common_libs): Use libcommaonstd macr.
612 * gpgsm.c (main) [W32]: Call pth_init.
614 2007-06-06 Werner Koch <wk@g10code.com>
616 * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
618 * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
620 (format_name_writer): Define only if funopen et al is available.
622 * gpgsm.c (i18n_init): Remove.
624 2007-05-29 Werner Koch <wk@g10code.com>
626 * export.c (gpgsm_p12_export): Print passphrase encoding info only
629 2007-05-18 Marcus Brinkmann <marcus@g10code.de>
631 * qualified.c (gpgsm_qualified_consent,
632 gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
633 * certdump.c (gpgsm_format_keydesc): Likewise.
635 2007-05-07 Werner Koch <wk@g10code.com>
637 * certcheck.c (MY_GCRY_PK_ECDSA): New.
639 2007-04-20 Werner Koch <wk@g10code.com>
641 * gpgsm.c (main): Parameterize failed versions check messages.
643 2007-04-19 Werner Koch <wk@g10code.com>
645 * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2
647 (get_dsa_qbits): New.
648 (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
651 2007-04-18 Werner Koch <wk@g10code.com>
653 * certcheck.c (do_encode_md): Support 160 bit ECDSA.
655 2007-04-13 Werner Koch <wk@g10code.com>
657 * call-agent.c (start_agent): Don't use log_error when using the
658 fallback hack to start the agent. This is bug 782.
660 2007-03-20 Werner Koch <wk@g10code.com>
662 * fingerprint.c (gpgsm_get_fingerprint): Add caching.
663 (gpgsm_get_fingerprint_string): Use bin2hexcolon().
664 (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
665 as much memory as required.
666 (gpgsm_get_keygrip_hexstring): Use bin2hex.
668 * certchain.c (gpgsm_validate_chain): Keep track of the
669 certificate chain and reset the ephemeral flags.
670 * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
671 Changed caller to use a mask of ~0. Return a proper error code if
672 the certificate is not available.
674 * gpgsm.c: Add option --p12-charset.
675 * gpgsm.h (struct opt): Add p12_charset.
676 * export.c (popen_protect_tool): Use new option.
678 2007-03-19 Werner Koch <wk@g10code.com>
680 Changes to let export and key listing use estream to help systems
683 * keylist.c: Use estream in place of stdio functions.
684 * gpgsm.c (open_es_fwrite): New.
685 (main): Use it for the list commands.
686 * server.c (data_line_cookie_functions): New.
687 (data_line_cookie_write, data_line_cookie_close): New.
688 (do_listkeys): Use estream.
690 * certdump.c (gpgsm_print_serial): Changed to use estream.
691 (gpgsm_print_time): Ditto.
692 (pretty_es_print_sexp): New.
693 (gpgsm_es_print_name): New.
694 (print_dn_part): New arg STREAM. Changed all callers.
695 (print_dn_parts): Ditto.
696 * certchain.c (gpgsm_validate_chain): Changed FP to type
698 (do_list, unknown_criticals, allowed_ca, check_cert_policy)
699 (is_cert_still_valid): Ditto.
701 * export.c (gpgsm_export): New arg STREAM.
702 (do_putc, do_fputs): New.
703 (print_short_info): Allow printing to optional STREAM.
704 * server.c (cmd_export): Use stream.
705 * base64.c (do_putc, do_fputs): New.
706 (base64_writer_cb, base64_finish_write): Let them cope with an
707 alternate output function.
708 (plain_writer_cb): New.
709 (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
710 binary output to an estream. Changed call callers.
712 2007-01-31 Werner Koch <wk@g10code.com>
714 * gpgsm.c (main): Let --gen-key print a more informative error
717 2007-01-25 Werner Koch <wk@g10code.com>
719 * Makefile.am (gpgsm_LDADD): Add LIBICONV. Noted by Billy Halsey.
721 2007-01-05 Werner Koch <wk@g10code.com>
723 * certchain.c (unknown_criticals): Add subjectAltName.
725 2006-12-21 Werner Koch <wk@g10code.com>
727 * gpgsm.c: Comment mtrace feature.
729 2006-12-21 Marcus Brinkmann <marcus@g10code.de>
731 * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
733 * encrypt.c (encrypt_dek): Release S_CIPH.
735 2006-12-20 Marcus Brinkmann <marcus@g10code.de>
737 * server.c (gpgsm_server): Release CTRL->server_local.
739 * base64.c: Add new members READER and WRITER in union U2.
740 (gpgsm_create_reader): Initialise CTX->u2.reader.
741 (gpgsm_destroy_reader): Invoke ksba_reader_release. Return early
743 (gpgsm_create_writer): Initialise CTX->u2.writer.
744 (gpgsm_destroy_writer): Invoke ksba_writer_release. Return early
747 2006-12-18 Marcus Brinkmann <marcus@g10code.de>
749 * fingerprint.c (gpgsm_get_fingerprint): Close MD.
751 2006-11-24 Werner Koch <wk@g10code.com>
753 * certdump.c (parse_dn_part): Take '#' as a special character only
754 at the beginning of a string.
756 2006-11-21 Werner Koch <wk@g10code.com>
758 * certdump.c (my_funopen_hook_ret_t): New.
759 (format_name_writer): Use it for the return value.
761 2006-11-14 Werner Koch <wk@g10code.com>
763 * server.c (skip_options): Skip leading spaces.
764 (has_option): Honor "--".
765 (cmd_export): Add option --data to do an inline export. Skip all
768 * certdump.c (gpgsm_fpr_and_name_for_status): New.
769 * verify.c (gpgsm_verify): Use it to print correct status messages.
771 2006-11-11 Werner Koch <wk@g10code.com>
773 * server.c (skip_options): New.
775 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
777 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
779 2006-10-23 Werner Koch <wk@g10code.com>
781 * gpgsm.c (main): Remap common cipher algo names to their OIDs.
782 (main): New command --gpgconf-test.
784 2006-10-20 Werner Koch <wk@g10code.com>
786 * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
788 2006-10-18 Werner Koch <wk@g10code.com>
790 * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
791 testing for GPG_ERR_NO_DATA.
792 * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
793 * certchain.c (check_cert_policy): Ditto.
795 * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
796 chain length available.
798 2006-10-17 Werner Koch <wk@g10code.com>
800 * gpgsm.c: No need for pth.h.
801 (main): or to init it. It used to be hack for W32.
803 * sign.c (gpgsm_get_default_cert): Changed to return only
804 certificates usable for signing.
806 2006-10-16 Werner Koch <wk@g10code.com>
808 * certchain.c (already_asked_marktrusted)
809 (set_already_asked_marktrusted): New.
810 (gpgsm_validate_chain) <not trusted>: Keep track of certificates
811 we already asked for.
813 2006-10-11 Werner Koch <wk@g10code.com>
815 * certreqgen.c (proc_parameters, create_request): Allow for
816 creation directly from a card.
817 * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
818 (gpgsm_scd_pksign): New.
820 2006-10-06 Werner Koch <wk@g10code.com>
822 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
823 (gpgsm_LDADD): Ditto.
825 2006-10-05 Werner Koch <wk@g10code.com>
827 * certcheck.c (do_encode_md): Check that the has algo is valid.
829 2006-10-02 Marcus Brinkmann <marcus@g10code.de>
831 * server.c (register_commands): New commands DUMPKEYS and
833 (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
834 (option_handler): Support with-key-data option.
836 2006-09-26 Werner Koch <wk@g10code.com>
838 * certchain.c (gpgsm_validate_chain): More changes for the relax
839 feature. Use certificate reference counting instead of the old
840 explicit tests. Added a missing free.
842 2006-09-25 Werner Koch <wk@g10code.com>
844 * gpgsm.h (struct rootca_flags_s): New.
845 * call-agent.c (istrusted_status_cb): New.
846 (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
847 * keylist.c (list_cert_colon): Use dummy for new arg.
848 * certchain.c (gpgsm_validate_chain): Make use of the relax flag
849 for root certificates.
850 (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
852 2006-09-20 Werner Koch <wk@g10code.com>
854 * gpgsm.c: Add alias command --dump-cert.
856 * Makefile.am: Changes to allow parallel make runs.
858 2006-09-18 Werner Koch <wk@g10code.com>
860 * gpgsm.c (main): Use this to import standard certificates.
861 * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
863 2006-09-14 Werner Koch <wk@g10code.com>
865 Replaced all call gpg_error_from_errno(errno) by
866 gpg_error_from_syserror().
868 2006-09-13 Werner Koch <wk@g10code.com>
870 * keylist.c (list_internal_keys): Print marker line to FP and not
873 * gpgsm.c (main): All list key list commands now make ose of
874 --output. Cleaned up calls to list modes. New command
875 --dump-chain. Renamed --list-sigs to --list-chain and added an
876 alias for the old one.
878 * server.c (cmd_message): Changed to use assuan_command_parse_fd.
879 (option_handler): New option list-to-output.
880 (do_listkeys): Use it.
882 2006-09-06 Werner Koch <wk@g10code.com>
884 * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
886 (CTRL): Removed and changed everywhere to ctrl_t.
889 Replaced all Assuan error codes by libgpg-error codes. Removed
890 all map_to_assuan_status and map_assuan_err.
892 * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
893 switch to gpg-error codes.
894 * server.c (set_error): Adjusted.
896 2006-08-29 Werner Koch <wk@g10code.com>
898 * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
899 complete S-expressions as implemented by the current gpg-agent.
901 * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
904 2006-07-03 Werner Koch <wk@g10code.com>
906 * certreqgen.c (proc_parameters): Print the component label of a
909 2006-06-26 Werner Koch <wk@g10code.com>
911 * certdump.c (gpgsm_cert_log_name): New.
912 * certchain.c (is_cert_still_valid): Log the name of the certificate.
914 2006-06-20 Werner Koch <wk@g10code.com>
916 * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
917 option --include-certs.
919 * keylist.c (list_cert_raw): Print the certid.
921 2006-05-23 Werner Koch <wk@g10code.com>
923 * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
925 * Makefile.am (gpgsm_LDADD): Include ZLIBS.
927 2006-05-19 Marcus Brinkmann <marcus@g10code.de>
929 * keydb.c (keydb_insert_cert): Do not lock here, but only check if
931 (keydb_store_cert): Lock here.
933 * keydb.h (keydb_delete): Accept new argument UNLOCK.
934 * keydb.c (keydb_delete): Likewise. Only unlock if this is set.
935 * delete.c (delete_one): Add new argument to invocation of
938 2006-05-15 Werner Koch <wk@g10code.com>
940 * keylist.c (print_names_raw): Sanitize URI.
942 2006-03-21 Werner Koch <wk@g10code.com>
944 * certchain.c (get_regtp_ca_info): New.
945 (allowed_ca): Use it.
947 2006-03-20 Werner Koch <wk@g10code.com>
949 * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
951 2006-02-17 Werner Koch <wk@g10code.com>
953 * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
955 2005-11-23 Werner Koch <wk@g10code.com>
957 * gpgsm.h: New member QUALSIG_APPROVAL.
958 * sign.c (gpgsm_sign): Print a warning if a certificate is not
960 * qualified.c (gpgsm_qualified_consent): Include a note that this
961 is not approved software.
962 (gpgsm_not_qualified_warning): New.
963 * gpgsm.c (main): Prepared to print a note whether the software
966 2005-11-13 Werner Koch <wk@g10code.com>
968 * call-agent.c (gpgsm_agent_get_confirmation): New.
970 * keylist.c (list_cert_std): Print qualified status.
972 * certchain.c (gpgsm_validate_chain): Check for qualified
975 * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
976 no-chain-validation is used.
978 2005-11-11 Werner Koch <wk@g10code.com>
980 * keylist.c (print_capabilities): Print is_qualified status.
982 2005-10-28 Werner Koch <wk@g10code.com>
984 * certdump.c (pretty_print_sexp): New.
985 (gpgsm_print_name2): Use it here. This allows proper printing of
986 DNS names as used with server certificates.
988 2005-10-10 Werner Koch <wk@g10code.com>
990 * keylist.c: Add pkaAdress OID as reference.
992 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
994 * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
995 ../common/libcommon.a.
997 2005-09-13 Werner Koch <wk@g10code.com>
999 * verify.c (gpgsm_verify): Print a note if the unknown algorithm
1001 * sign.c (gpgsm_sign): Ditto.
1002 * certcheck.c (gpgsm_check_cert_sig): Ditto.
1004 2005-09-08 Werner Koch <wk@g10code.com>
1006 * export.c (popen_protect_tool): Add option --have-cert. We
1007 probably lost this option with 1.9.14 due to restructuring of
1010 2005-07-21 Werner Koch <wk@g10code.com>
1012 * gpgsm.c (main): New options --no-log-file and --debug-none.
1014 * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
1015 to allow enumeration. Changed all callers.
1016 (create_request): Process DNS and URI parameters.
1018 2005-07-20 Werner Koch <wk@g10code.com>
1020 * keylist.c (email_kludge): Reworked.
1022 * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
1024 * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
1026 2005-07-19 Werner Koch <wk@g10code.com>
1028 * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
1029 Bug accidently introduced while solving the #$%^& gcc
1030 signed/unsigned char* warnings.
1032 2005-06-15 Werner Koch <wk@g10code.com>
1034 * delete.c (delete_one): Changed FPR to unsigned.
1035 * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
1036 (gpgsm_encrypt): Ditto.
1037 * sign.c (gpgsm_sign): Made SIGVAL unsigned.
1038 * base64.c (base64_reader_cb): Need to use some casting to get
1039 around signed/unsigned char* warnings.
1040 * certcheck.c (gpgsm_check_cms_signature): Ditto.
1041 (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
1042 (do_encode_md): Made NFRAME a size_t.
1043 * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
1044 (gpgsm_dump_serial): Ditto.
1045 (gpgsm_format_serial): Ditto.
1046 (gpgsm_dump_string): Ditto.
1047 (gpgsm_dump_cert): Ditto.
1048 (parse_dn_part): Ditto.
1049 (gpgsm_print_name2): Ditto.
1050 * keylist.c (email_kludge): Ditto.
1051 * certreqgen.c (proc_parameters, create_request): Ditto.
1052 (create_request): Ditto.
1053 * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
1054 (struct cipher_parm_s): Made CIPHERTEXT unsigned.
1055 (struct genkey_parm_s): Ditto.
1056 * server.c (strcpy_escaped_plus): Made arg S signed char*.
1057 * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
1058 (gpgsm_get_keygrip): Ditto.
1059 * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
1060 (keydb_update_cert): Ditto.
1061 (classify_user_id): Apply cast to signed/unsigned assignment.
1064 2005-06-01 Werner Koch <wk@g10code.com>
1066 * misc.c: Include setenv.h.
1068 2005-04-21 Werner Koch <wk@g10code.com>
1070 * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
1071 * certchain.c (gpgsm_validate_chain): Make use of it.
1073 * certchain.c (gpgsm_validate_chain): Check revocations even for
1074 expired certificates. This is required because on signature
1075 verification an expired key is fine whereas a revoked one is not.
1077 2005-04-20 Werner Koch <wk@g10code.com>
1079 * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
1081 2005-04-19 Werner Koch <wk@g10code.com>
1083 * certchain.c (check_cert_policy): Print the diagnostic for a open
1084 failure of policies.txt only in verbose mode or when it is not
1087 2005-04-17 Werner Koch <wk@g10code.com>
1089 * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
1090 * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
1091 this filter. Changed all callers.
1093 * certchain.c (find_up_search_by_keyid): New helper.
1094 (find_up): Also try using the AKI.keyIdentifier.
1095 (find_up_external): Ditto.
1097 2005-04-15 Werner Koch <wk@g10code.com>
1099 * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
1100 well as the keyIdentifier part of the authorityKeyIdentifier.
1102 2005-03-31 Werner Koch <wk@g10code.com>
1104 * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
1105 * call-agent.c (start_agent): Ditto.
1107 2005-03-17 Werner Koch <wk@g10code.com>
1109 * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
1111 * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
1112 failed gcry_pk_verify.
1113 (find_up): Do an external lookup also for an authorityKeyIdentifier
1114 lookup. Factored external lookup code out to ..
1115 (find_up_external): .. new.
1117 2005-03-03 Werner Koch <wk@g10code.com>
1119 * Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
1121 2005-01-13 Werner Koch <wk@g10code.com>
1123 * certreqgen.c (proc_parameters): Cast printf arg.
1125 2004-12-22 Werner Koch <wk@g10code.com>
1127 * gpgsm.c (set_binary): New.
1128 (main, open_read, open_fwrite): Use it.
1130 2004-12-21 Werner Koch <wk@g10code.com>
1132 * gpgsm.c (main): Use default_homedir().
1133 (main) [W32]: Default to disabled CRL checks.
1135 2004-12-20 Werner Koch <wk@g10code.com>
1137 * call-agent.c (start_agent): Before starting a pipe server start
1138 to connect to a server on the standard socket. Use PATHSEP
1139 * call-dirmngr.c (start_dirmngr): Use PATHSEP.
1141 * import.c: Include unistd.h for dup and close.
1143 2004-12-18 Werner Koch <wk@g10code.com>
1145 * gpgsm.h (map_assuan_err): Define in terms of
1146 map_assuan_err_with_source.
1147 * call-agent.c (start_agent): Pass error source to
1148 send_pinentry_environment.
1150 2004-12-17 Werner Koch <wk@g10code.com>
1152 * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
1153 (run_command_status_cb): Return cancel status if gpgsm_status
1156 * server.c (gpgsm_status, gpgsm_status2)
1157 (gpgsm_status_with_err_code): Return an error code.
1158 (gpgsm_status2): Always call va_end().
1160 2004-12-15 Werner Koch <wk@g10code.com>
1162 * call-dirmngr.c (lookup_status_cb): Send progress messages
1164 (isvalid_status_cb): Ditto.
1165 (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
1166 (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
1167 status callback and handle PROGRESS.
1169 * misc.c (setup_pinentry_env) [W32]: Don't use it.
1171 * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
1172 operations and to resolve libassuan symbols.
1173 (run_protect_tool) [W32]: Disable it.
1175 * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
1177 2004-12-07 Werner Koch <wk@g10code.com>
1179 * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
1180 under W32 we need the w32 pth code from jnlib.
1182 * misc.c (setup_pinentry_env) [W32]: Disabled.
1184 2004-12-06 Werner Koch <wk@g10code.com>
1186 * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
1188 * import.c (popen_protect_tool): Simplified by making use of
1189 gnupg_spawn_process.
1190 (parse_p12): Likewise, using gnupg_wait_process.
1191 * export.c (popen_protect_tool): Ditto.
1192 (export_p12): Ditto.
1194 * keydb.c: Don't define DIRSEP_S here.
1196 2004-12-02 Werner Koch <wk@g10code.com>
1198 * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
1199 signature for debugging.
1200 (gpgsm_validate_chain): Ditto.
1202 2004-11-29 Werner Koch <wk@g10code.com>
1204 * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
1206 (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE. This
1207 now allows to add debug flags on top of a debug-level setting.
1209 2004-11-23 Werner Koch <wk@g10code.com>
1211 * gpgsm.c: New option --prefer-system-dirmngr.
1212 * call-dirmngr.c (start_dirmngr): Implement this option.
1214 2004-10-22 Werner Koch <wk@g10code.com>
1216 * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
1217 request PEM header. This is according to the Sphinx standard.
1219 2004-10-08 Moritz Schulte <moritz@g10code.com>
1221 * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
1222 case the no_chain_validation-return-short-cut is used (fixes
1225 2004-10-04 Werner Koch <wk@g10code.com>
1227 * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1229 2004-09-30 Werner Koch <wk@g10code.com>
1231 * gpgsm.c (i18n_init): Always use LC_ALL.
1233 * certdump.c (gpgsm_format_name): Factored code out to ..
1234 (gpgsm_format_name2): .. new.
1235 (gpgsm_print_name): Factored code out to ..
1236 (gpgsm_print_name2): .. new.
1237 (print_dn_part): New arg TRANSLATE. Changed all callers.
1238 (print_dn_parts): Ditto.
1239 (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
1240 it to stay UTF-8 but we still want to filter out bad control
1243 * Makefile.am: Adjusted for gettext 0.14.
1245 * keylist.c (list_cert_colon): Make sure that the expired flag has
1246 a higher precedence than the invalid flag.
1248 2004-09-29 Werner Koch <wk@g10code.com>
1250 * import.c (parse_p12): Write an error status line for bad
1251 passphrases. Add new arg CTRL and changed caller.
1252 * export.c (export_p12): Likewise.
1254 2004-09-14 Werner Koch <wk@g10code.com>
1256 * certchain.c (gpgsm_validate_chain): Give expired certificates a
1257 higher error precedence and don't bother to check any CRL in that
1260 2004-08-24 Werner Koch <wk@g10code.de>
1262 * certlist.c: Fixed typo in ocsp OID.
1264 2004-08-18 Werner Koch <wk@g10code.de>
1266 * certlist.c (gpgsm_cert_use_ocsp_p): New.
1267 (cert_usage_p): Support it here.
1268 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
1270 2004-08-17 Marcus Brinkmann <marcus@g10code.de>
1272 * import.c: Fix typo in last change.
1274 2004-08-17 Werner Koch <wk@g10code.de>
1276 * import.c (check_and_store): Do a full validation if
1277 --with-validation is set.
1279 * certchain.c (gpgsm_basic_cert_check): Print more detailed error
1282 * certcheck.c (do_encode_md): Partly support DSA. Add new arg
1283 PKALGO. Changed all callers to pass it.
1284 (pk_algo_from_sexp): New.
1286 2004-08-16 Werner Koch <wk@g10code.de>
1288 * gpgsm.c: New option --fixed-passphrase.
1289 * import.c (popen_protect_tool): Pass it to the protect-tool.
1291 * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1292 for encrypt-to keys.
1294 2004-08-06 Werner Koch <wk@g10code.com>
1296 * gpgsm.c: New option --with-ephemeral-keys.
1297 * keylist.c (list_internal_keys): Set it here.
1298 (list_cert_raw): And indicate those keys. Changed all our callers
1299 to pass the new arg HD through.
1301 2004-07-23 Werner Koch <wk@g10code.de>
1303 * certreqgen.c (proc_parameters): Do not allow key length below
1306 2004-07-22 Werner Koch <wk@g10code.de>
1308 * keylist.c (list_cert_raw): Print the keygrip.
1310 2004-07-20 Werner Koch <wk@gnupg.org>
1312 * certchain.c (gpgsm_validate_chain): The trust check didn't
1313 worked anymore, probably due to the changes at 2003-03-04. Fixed.
1315 2004-06-06 Werner Koch <wk@gnupg.org>
1317 * certreqgen.c (get_parameter_uint, create_request): Create
1318 an extension for key usage when requested.
1320 2004-05-12 Werner Koch <wk@gnupg.org>
1322 * gpgsm.c (main): Install emergency_cleanup also as an atexit
1325 * verify.c (gpgsm_verify): Removed the separate error code
1326 handling for KSBA. We use shared error codes anyway.
1328 * export.c (export_p12): Removed debugging code.
1330 * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1332 2004-05-11 Werner Koch <wk@gnupg.org>
1334 * sign.c (gpgsm_sign): Include the error source in the final error
1336 * decrypt.c (gpgsm_decrypt): Ditto.
1338 * fingerprint.c (gpgsm_get_key_algo_info): New.
1339 * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1340 * keylist.c (list_cert_colon): Really print the algorithm and key
1342 (list_cert_raw, list_cert_std): Ditto.
1343 (list_cert_colon): Reorganized to be able to tell whether a root
1344 certificate is trusted.
1346 * gpgsm.c: New option --debug-allow-core-dump.
1348 * gpgsm.h (opt): Add member CONFIG_FILENAME.
1349 * gpgsm.c (main): Use it here instead of the local var.
1351 * server.c (gpgsm_server): Print some additional information with
1352 the hello in verbose mode.
1354 2004-04-30 Werner Koch <wk@gnupg.org>
1356 * import.c (check_and_store): Do not update the stats for hidden
1357 imports of issuer certs.
1358 (popen_protect_tool): Request statusmessages from the protect-tool.
1359 (parse_p12): Detect status messages. Add new arg STATS and update them.
1360 (print_imported_summary): Include secret key stats.
1362 2004-04-28 Werner Koch <wk@gnupg.org>
1364 * gpgsm.c: New command --keydb-clear-some-cert-flags.
1365 * keydb.c (keydb_clear_some_cert_flags): New.
1366 (keydb_update_keyblock, keydb_set_flags): Change error code
1367 CONFLICT to NOT_LOCKED.
1369 2004-04-26 Werner Koch <wk@gnupg.org>
1371 * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1374 * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)
1375 (gpgsm_agent_genkey, gpgsm_agent_istrusted)
1376 (gpgsm_agent_marktrusted, gpgsm_agent_havekey)
1377 (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1378 (start_agent): New arg CTRL. Send progress item when starting a
1380 * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1381 CTRL to be passed down to the agent function.
1382 * decrypt.c (prepare_decryption): Ditto.
1383 * certreqgen.c (proc_parameters, read_parameters): Ditto.
1384 * certcheck.c (gpgsm_create_cms_signature): Ditto.
1386 2004-04-23 Werner Koch <wk@gnupg.org>
1388 * keydb.c (keydb_add_resource): Try to compress the file on init.
1390 * keylist.c (oidtranstbl): New. OIDs collected from several sources.
1391 (print_name_raw, print_names_raw, list_cert_raw): New.
1392 (gpgsm_list_keys): Check the dump mode and pass it down as
1395 2004-04-22 Werner Koch <wk@gnupg.org>
1397 * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1400 2004-04-13 Werner Koch <wk@gnupg.org>
1402 * misc.c (setup_pinentry_env): New.
1403 * import.c (popen_protect_tool): Call it.
1404 * export.c (popen_protect_tool): Call it.
1406 2004-04-08 Werner Koch <wk@gnupg.org>
1408 * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
1411 2004-04-07 Werner Koch <wk@gnupg.org>
1413 * gpgsm.c: New option --force-crl-refresh.
1414 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1416 2004-04-05 Werner Koch <wk@gnupg.org>
1418 * server.c (get_status_string): Add STATUS_NEWSIG.
1419 * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1421 * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1422 not just warn if a cert is not suitable; bail out immediately.
1424 2004-04-01 Werner Koch <wk@gnupg.org>
1426 * call-dirmngr.c (isvalid_status_cb): New.
1427 (unhexify_fpr): New. Taken from ../g10/call-agent.c
1428 (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1429 it thru. Detect need to check the respondert cert and do that.
1430 * certchain.c (gpgsm_validate_chain): Add new arg FLAGS. Changed
1433 2004-03-24 Werner Koch <wk@gnupg.org>
1435 * sign.c (gpgsm_sign): Include a short list of capabilities.
1437 2004-03-17 Werner Koch <wk@gnupg.org>
1439 * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1441 2004-03-16 Werner Koch <wk@gnupg.org>
1443 * gpgsm.c (main): Implemented --gpgconf-list.
1445 2004-03-15 Werner Koch <wk@gnupg.org>
1447 * keylist.c (list_cert_colon): Hack to set the expired flag.
1449 2004-03-09 Werner Koch <wk@gnupg.org>
1451 * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1453 * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1455 2004-03-04 Werner Koch <wk@gnupg.org>
1457 * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1459 * certchain.c (is_cert_still_valid): New. Code moved from ...
1460 (gpgsm_validate_chain): ... here because we now need to check at
1461 two places and at a later stage, so that we can pass the issuer
1462 cert down to the dirmngr.
1464 2004-03-03 Werner Koch <wk@gnupg.org>
1466 * call-agent.c (start_agent): Replaced pinentry setup code by a
1467 call to a new common function.
1469 * certdump.c (gpgsm_format_keydesc): Make sure the string is
1472 * export.c (gpgsm_export): Make sure that we don't export more
1473 than one certificate.
1475 2004-03-02 Werner Koch <wk@gnupg.org>
1477 * export.c (create_duptable, destroy_duptable)
1478 (insert_duptable): New.
1479 (gpgsm_export): Avoid duplicates.
1481 2004-02-26 Werner Koch <wk@gnupg.org>
1483 * certchain.c (compare_certs): New.
1484 (gpgsm_validate_chain): Fixed infinite certificate checks after
1487 2004-02-24 Werner Koch <wk@gnupg.org>
1489 * keylist.c (list_cert_colon): Print the fingerprint as the
1490 cert-id for root certificates.
1492 2004-02-21 Werner Koch <wk@gnupg.org>
1494 * keylist.c (list_internal_keys): Return error codes.
1495 (list_external_keys, gpgsm_list_keys): Ditto.
1496 * server.c (do_listkeys): Ditto.
1498 * gpgsm.c (main): Display a key description for --passwd.
1499 * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1501 2004-02-20 Werner Koch <wk@gnupg.org>
1503 * gpgsm.c (main): New option --debug-ignore-expiration.
1504 * certchain.c (gpgsm_validate_chain): Use it here.
1506 * certlist.c (cert_usage_p): Apply extKeyUsage.
1508 2004-02-19 Werner Koch <wk@gnupg.org>
1510 * export.c (export_p12, popen_protect_tool)
1511 (gpgsm_p12_export): New.
1512 * gpgsm.c (main): New command --export-secret-key-p12.
1514 2004-02-18 Werner Koch <wk@gnupg.org>
1516 * gpgsm.c (set_debug): Set the new --debug-level flags.
1517 (main): New option --gpgconf-list.
1518 (main): Do not setup -u and -r keys when not required.
1519 (main): Setup the used character set.
1521 * keydb.c (keydb_add_resource): Print a hint to start the
1524 2004-02-17 Werner Koch <wk@gnupg.org>
1526 * gpgsm.c: Fixed value parsing for --with-validation.
1527 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1528 * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1530 * gpgsm.c: New option --with-md5-fingerprint.
1531 * keylist.c (list_cert_std): Print MD5 fpr.
1533 * gpgsm.c: New options --with-validation.
1534 * server.c (option_handler): New option "with-validation".
1535 * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1536 WITH_VALIDATION. Changed callers to set it.
1537 (list_external_cb, list_external_keys): Pass CTRL to the callback.
1538 (list_cert_colon): Add arg CTRL. Check validation if requested.
1539 * certchain.c (unknown_criticals, allowed_ca, check_cert_policy)
1540 (gpgsm_validate_chain): New args LISTMODE and FP.
1541 (do_list): New helper for info output.
1542 (find_up): New arg FIND_NEXT.
1543 (gpgsm_validate_chain): After a bad signature try again with other
1546 * import.c (print_imported_status): New arg NEW_CERT. Print
1547 additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1548 (check_and_store): Always call above function after import.
1549 * server.c (get_status_string): Added STATUS_IMPORT_OK.
1551 2004-02-13 Werner Koch <wk@gnupg.org>
1553 * certcheck.c (gpgsm_create_cms_signature): Format a description
1554 for use by the pinentry.
1555 * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1556 * certdump.c (format_name_cookie, format_name_writer)
1557 (gpgsm_format_name): New.
1558 (gpgsm_format_serial): New.
1559 (gpgsm_format_keydesc): New.
1560 * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1561 (gpgsm_agent_pkdecrypt): Ditto.
1563 * encrypt.c (init_dek): Check for too weak algorithms.
1565 * import.c (parse_p12, popen_protect_tool): New.
1567 * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1568 Changed all callers.
1569 (base64_reader_cb): Handle it here.
1570 (gpgsm_reader_eof_seen): New.
1571 (base64_reader_cb): Set a flag for EOF.
1572 (simple_reader_cb): Ditto.
1574 2004-02-12 Werner Koch <wk@gnupg.org>
1576 * gpgsm.h, gpgsm.c: New option --protect-tool-program.
1577 * gpgsm.c (run_protect_tool): Use it.
1579 2004-02-11 Werner Koch <wk@gnupg.org>
1581 * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
1582 will allow to override directory names at make time.
1584 2004-02-02 Werner Koch <wk@gnupg.org>
1586 * import.c (check_and_store): Import certificates even with
1587 missing issuer's cert. Fixed an "depending on the verbose
1590 * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
1593 * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
1595 (list_internal_keys): Retrieve validity flag.
1596 (list_external_cb): Pass 0 as validity flag.
1597 * keydb.c (keydb_get_flags, keydb_set_flags): New.
1598 (keydb_set_cert_flags): New.
1599 (lock_all): Return a proper error code.
1601 (keydb_delete): Don't lock but check that it has been locked.
1602 (keydb_update_keyblock): Ditto.
1603 * delete.c (delete_one): Take a lock.
1605 2004-01-30 Werner Koch <wk@gnupg.org>
1607 * certchain.c (check_cert_policy): Fixed read error checking.
1608 (check_cert_policy): With no critical policies issue only a
1609 warning if the policy file does not exists.
1611 * sign.c (add_certificate_list): Decrement N for the first cert.
1613 2004-01-29 Werner Koch <wk@gnupg.org>
1615 * certdump.c (parse_dn_part): Map common OIDs to human readable
1616 labels. Make sure that a value won't get truncated if it includes
1619 2004-01-28 Werner Koch <wk@gnupg.org>
1621 * certchain.c (gpgsm_validate_chain): Changed the message printed
1622 for an untrusted root certificate.
1624 2004-01-27 Werner Koch <wk@gnupg.org>
1626 * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
1627 (print_dn_part): Do not delimit multiple RDN by " + ". Handle
1628 multi-valued RDNs in a special way, i.e. in the order specified by
1630 (print_dn_parts): Simplified.
1632 2004-01-16 Werner Koch <wk@gnupg.org>
1634 * sign.c (gpgsm_sign): Print an error message on all failures.
1635 * decrypt.c (gpgsm_decrypt): Ditto.
1637 2003-12-17 Werner Koch <wk@gnupg.org>
1639 * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
1640 (cmd_encrypt): Add all enrypt-to marked certs to the list.
1641 * encrypt.c (gpgsm_encrypt): Check that real recipients are
1643 * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
1644 options work. Pass the list of recients to gpgsm_server.
1645 * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
1646 (opt): Add NO_ENCRYPT_TO.
1647 * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
1648 Changed all callers and ignore duplicate entries.
1649 (is_cert_in_certlist): New.
1650 (gpgsm_add_cert_to_certlist): New.
1652 * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
1653 (gpgsm_dump_serial): Ditto.
1655 * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
1657 2003-12-16 Werner Koch <wk@gnupg.org>
1659 * gpgsm.c (main): Set the prefixes for assuan logging.
1661 * sign.c (gpgsm_sign): Add validation checks for the default
1664 * gpgsm.c: Add -k as alias for --list-keys and -K for
1667 2003-12-15 Werner Koch <wk@gnupg.org>
1669 * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
1670 not need for real strong random here and it even better protect
1671 the random bits used for the key.
1673 2003-12-01 Werner Koch <wk@gnupg.org>
1675 * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
1676 (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
1677 * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
1678 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
1679 proceed accordingly.
1681 2003-11-19 Werner Koch <wk@gnupg.org>
1683 * verify.c (gpgsm_verify): Use "0" instead of an empty string for
1684 the VALIDSIG status.
1686 2003-11-18 Werner Koch <wk@gnupg.org>
1688 * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
1690 * certchain.c (unknown_criticals): Fixed an error code test.
1692 2003-11-12 Werner Koch <wk@gnupg.org>
1694 Adjusted for API changes in Libksba.
1696 2003-10-31 Werner Koch <wk@gnupg.org>
1698 * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
1699 * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
1700 * sign.c (gpgsm_sign): Ditto.
1701 * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
1702 * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
1705 2003-10-25 Werner Koch <wk@gnupg.org>
1707 * certreqgen.c (read_parameters): Fixed faulty of !spacep().
1709 2003-08-20 Marcus Brinkmann <marcus@g10code.de>
1711 * encrypt.c (encode_session_key): Allocate enough space. Cast key
1712 byte to unsigned char to prevent sign extension.
1713 (encrypt_dek): Check return value before error.
1715 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1717 * encrypt.c (encode_session_key): Use new Libgcrypt interface.
1719 2003-07-31 Werner Koch <wk@gnupg.org>
1721 * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
1723 2003-07-29 Werner Koch <wk@gnupg.org>
1725 * gpgsm.c (main): Add secmem features and set the random seed file.
1726 (gpgsm_exit): Update the random seed file and enable debug output.
1728 2003-07-27 Werner Koch <wk@gnupg.org>
1730 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1732 2003-06-24 Werner Koch <wk@gnupg.org>
1734 * server.c (gpgsm_status_with_err_code): New.
1735 * verify.c (gpgsm_verify): Use it here instead of the old
1738 * verify.c (strtimestamp): Renamed to strtimestamp_r
1740 Adjusted for changes in the libgcrypt API. Some more fixes for the
1743 2003-06-04 Werner Koch <wk@gnupg.org>
1745 * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
1746 Include new membuf header and changed used type.
1748 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1750 2003-06-03 Werner Koch <wk@gnupg.org>
1752 Changed all error codes in all files to the new libgpg-error scheme.
1754 * gpgsm.h: Include gpg-error.h .
1755 * Makefile.am: Link with libgpg-error.
1757 2003-04-29 Werner Koch <wk@gnupg.org>
1759 * Makefile.am: Use libassuan. Don't override LDFLAGS anymore.
1760 * server.c (register_commands): Adjust for new Assuan semantics.
1762 2002-12-03 Werner Koch <wk@gnupg.org>
1764 * call-agent.c (gpgsm_agent_passwd): New.
1765 * gpgsm.c (main): New command --passwd and --call-protect-tool
1766 (run_protect_tool): New.
1768 2002-11-25 Werner Koch <wk@gnupg.org>
1770 * verify.c (gpgsm_verify): Handle content-type attribute.
1772 2002-11-13 Werner Koch <wk@gnupg.org>
1774 * call-agent.c (start_agent): Try to use $GPG_TTY instead of
1775 ttyname. Changed ttyname to test stdin becuase it can be assumed
1776 that output redirection is more common that input redirection.
1778 2002-11-12 Werner Koch <wk@gnupg.org>
1780 * gpgsm.c: New command --call-dirmngr.
1781 * call-dirmngr.c (gpgsm_dirmngr_run_command)
1782 (run_command_inq_cb,run_command_cb)
1783 (run_command_status_cb): New.
1785 2002-11-11 Werner Koch <wk@gnupg.org>
1787 * certcheck.c (gpgsm_check_cms_signature): Don't double free
1788 s_sig but free s_pkey at leave.
1790 2002-11-10 Werner Koch <wk@gnupg.org>
1792 * gpgsm.c: Removed duplicate --list-secret-key entry.
1794 2002-09-19 Werner Koch <wk@gnupg.org>
1796 * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
1798 * certchain.c (find_up): Print info when the cert was not found
1799 by the autorithyKeyIdentifier.
1801 2002-09-03 Werner Koch <wk@gnupg.org>
1803 * gpgsm.c (main): Disable the internal libgcrypt locking.
1805 2002-08-21 Werner Koch <wk@gnupg.org>
1807 * import.c (print_imported_summary): Cleaned up. Print new
1809 (check_and_store): Update non_imported counter.
1810 (print_import_problem): New.
1811 (check_and_store): Print error status message.
1812 * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
1814 2002-08-20 Werner Koch <wk@gnupg.org>
1816 * gpgsm.c (main): Use the log file only in server mode.
1818 * import.c (print_imported_summary): New.
1819 (check_and_store): Update the counters, take new argument.
1820 (import_one): Factored out core of gpgsm_import.
1821 (gpgsm_import): Print counters.
1822 (gpgsm_import_files): New.
1823 * gpgsm.c (main): Use the new function for import.
1825 2002-08-19 Werner Koch <wk@gnupg.org>
1827 * decrypt.c (gpgsm_decrypt): Return a better error status token.
1828 * verify.c (gpgsm_verify): Don't error on messages with no signing
1829 time or no message digest. This is only the case for messages
1830 without any signed attributes.
1832 2002-08-16 Werner Koch <wk@gnupg.org>
1834 * certpath.c: Renamed to ..
1835 * certchain.c: this. Renamed all all other usages of "path" in the
1836 context of certificates to "chain".
1838 * call-agent.c (learn_cb): Special treatment when the issuer
1839 certificate is missing.
1841 2002-08-10 Werner Koch <wk@gnupg.org>
1843 * Makefile.am (INCLUDES): Add definition for localedir.
1845 * keylist.c (list_cert_colon): Print the short fingerprint in the
1847 * fingerprint.c (gpgsm_get_short_fingerprint): New.
1848 * verify.c (gpgsm_verify): Print more verbose info for a good
1851 2002-08-09 Werner Koch <wk@gnupg.org>
1853 * decrypt.c (prepare_decryption): Hack to detected already
1856 * gpgsm.c (emergency_cleanup): New.
1857 (main): Initialize the signal handler.
1859 * sign.c (gpgsm_sign): Reset the hash context for subsequent
1860 signers and release it at the end.
1862 2002-08-05 Werner Koch <wk@gnupg.org>
1864 * server.c (cmd_signer): New command "SIGNER"
1865 (register_commands): Register it.
1866 (cmd_sign): Pass the signer list to gpgsm_sign.
1867 * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
1868 for secret key if set and changed all callers.
1869 * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
1871 * gpgsm.c (main): Support more than one -u.
1873 * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
1874 which is actually what gets returned from add_to_certlist.
1876 2002-07-26 Werner Koch <wk@gnupg.org>
1878 * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
1879 (gpgsm_check_cms_signature): Ditto.
1881 2002-07-22 Werner Koch <wk@gnupg.org>
1883 * keydb.c (keydb_add_resource): Register a lock file.
1884 (lock_all, unlock_all): Implemented.
1887 * gpgsm.c: Made --delete-key work.
1888 * server.c (cmd_delkeys): New.
1889 (register_commands): New command DELKEYS.
1891 * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
1892 used and a STATUS_ERROR with the algorithm oid.
1894 2002-07-03 Werner Koch <wk@gnupg.org>
1896 * server.c (gpgsm_status2): Insert a blank between all optional
1897 arguments when using assuan.
1898 * server.c (cmd_recipient): No more need for extra blank in constants.
1899 * import.c (print_imported_status): Ditto.
1900 * gpgsm.c (main): Ditto.
1902 2002-07-02 Werner Koch <wk@gnupg.org>
1904 * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
1907 * certpath.c (check_cert_policy): Don't use log_error to print a
1910 * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
1912 * call-agent.c (learn_cb): Print info message only for real imports.
1914 * import.c (gpgsm_import): Moved duplicated code to ...
1915 (check_and_store): new function. Added magic to import the entire
1916 chain. Print status only for real imports and moved printing code
1918 (print_imported_status): New.
1920 * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
1921 call in very verbose mode.
1923 * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
1924 with the server mode.
1926 2002-06-29 Werner Koch <wk@gnupg.org>
1928 * gpgsm.c: New option --auto-issuer-key-retrieve.
1929 * certpath.c (find_up): Try to retrieve an issuer key from an
1930 external source and from the ephemeral key DB.
1931 (find_up_store_certs_cb): New.
1933 * keydb.c (keydb_set_ephemeral): Does now return the old
1934 state. Call the backend only when required.
1936 * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
1937 (lookup_status_cb): Issue status only when CTRL is not NULL.
1938 (gpgsm_dirmngr_lookup): Document that CTRL is optional.
1940 * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
1942 2002-06-28 Werner Koch <wk@gnupg.org>
1944 * server.c (cmd_recipient): Add more reason codes.
1946 2002-06-27 Werner Koch <wk@gnupg.org>
1948 * certpath.c (gpgsm_basic_cert_check): Use
1949 --debug-no-path-validation to also bypass this basic check.
1951 * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
1953 * call-agent.c (start_agent): Create and pass the list of FD to
1954 keep in the child to assuan.
1955 * call-dirmngr.c (start_dirmngr): Ditto.
1957 2002-06-26 Werner Koch <wk@gnupg.org>
1959 * import.c (gpgsm_import): Print an STATUS_IMPORTED.
1961 * gpgsm.c: --debug-no-path-validation does not take an argument.
1963 2002-06-25 Werner Koch <wk@gnupg.org>
1965 * certdump.c (print_dn_part): Always print a leading slash,
1966 removed NEED_DELIM arg and changed caller.
1968 * export.c (gpgsm_export): Print LFs to FP and not stdout.
1969 (print_short_info): Ditto. Make use of gpgsm_print_name.
1971 * server.c (cmd_export): Use output-fd instead of data lines; this
1972 was actually the specified way.
1974 2002-06-24 Werner Koch <wk@gnupg.org>
1976 * gpgsm.c: Removed duped help entry for --list-keys.
1978 * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
1980 * certpath.c (gpgsm_validate_path): Use it here instead of the
1983 * certpath.c (check_cert_policy): Return No_Policy_Match if the
1984 policy file could not be opened.
1986 2002-06-20 Werner Koch <wk@gnupg.org>
1988 * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
1989 certificate with the required key usage.
1991 * gpgsm.c (main): Fixed a segv when using --outfile without an
1994 * keylist.c (print_capabilities): Also check for non-repudiation
1995 and data encipherment.
1996 * certlist.c (cert_usage_p): Test for signing and encryption was
1997 swapped. Add a case for certification usage, handle
1998 non-repudiation and data encipherment.
1999 (gpgsm_cert_use_cert_p): New.
2000 (gpgsm_add_to_certlist): Added a CTRL argument and changed all
2002 * certpath.c (gpgsm_validate_path): Use it here to print a status
2003 message. Added a CTRL argument and changed all callers to pass it.
2004 * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
2006 * verify.c (gpgsm_verify): Ditto.
2007 * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2009 2002-06-19 Werner Koch <wk@gnupg.org>
2011 * call-agent.c (learn_cb): Use log_info instead of log_error on
2014 * keydb.c (keydb_set_ephemeral): New.
2015 (keydb_store_cert): New are ephemeral, changed all callers.
2016 * keylist.c (list_external_cb): Store cert as ephemeral.
2017 * export.c (gpgsm_export): Kludge to export epehmeral certificates.
2019 * gpgsm.c (main): New command --list-external-keys.
2021 2002-06-17 Werner Koch <wk@gnupg.org>
2023 * certreqgen.c (read_parameters): Improved error handling.
2024 (gpgsm_genkey): Print error message.
2026 2002-06-13 Werner Koch <wk@gnupg.org>
2028 * gpgsm.c (main): New option --log-file.
2030 2002-06-12 Werner Koch <wk@gnupg.org>
2032 * call-dirmngr.c (lookup_status_cb): New.
2033 (gpgsm_dirmngr_lookup): Use the status CB. Add new arg CTRL and
2034 changed caller to pass it.
2036 * gpgsm.c (open_fwrite): New.
2037 (main): Allow --output for --verify.
2039 * sign.c (hash_and_copy_data): New.
2040 (gpgsm_sign): Implemented normal (non-detached) signatures.
2041 * gpgsm.c (main): Ditto.
2043 * certpath.c (gpgsm_validate_path): Special error handling for
2046 2002-06-10 Werner Koch <wk@gnupg.org>
2048 * server.c (get_status_string): Add STATUS_ERROR.
2050 * certpath.c (gpgsm_validate_path): Tweaked the error checking to
2051 return error codes in a more sensitive way.
2052 * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
2053 CA certificate and when the certificate has been revoked. Issue
2054 TRUST_FULLY even when the cert has expired. Append an error token
2055 to these status lines. Issue the new generic error status when a
2056 cert was not found and when leaving the function.
2058 2002-06-04 Werner Koch <wk@gnupg.org>
2060 * gpgsm.c (main): New command --list-sigs
2061 * keylist.c (list_cert_std): New. Use it whenever colon mode is
2063 (list_cert_chain): New.
2065 2002-05-31 Werner Koch <wk@gnupg.org>
2067 * gpgsm.c (main): Don't print the "go ahead" message for an
2070 2002-05-23 Werner Koch <wk@gnupg.org>
2072 * import.c (gpgsm_import): Add error messages.
2074 2002-05-21 Werner Koch <wk@gnupg.org>
2076 * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
2077 (list_external_keys): New.
2078 (gpgsm_list_keys): Dispatcher for above.
2079 * call-dirmngr.c (lookup_cb,pattern_from_strlist)
2080 (gpgsm_dirmngr_lookup): New.
2081 * server.c (option_handler): Handle new option --list-mode.
2082 (do_listkeys): Handle options and actually use the mode argument.
2083 (get_status_string): New code TRUNCATED.
2085 * import.c (gpgsm_import): Try to identify the type of input and
2086 handle certs-only messages.
2088 2002-05-14 Werner Koch <wk@gnupg.org>
2090 * gpgsm.c: New option --faked-system-time
2091 * sign.c (gpgsm_sign): And use it here.
2092 * certpath.c (gpgsm_validate_path): Ditto.
2094 2002-05-03 Werner Koch <wk@gnupg.org>
2096 * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
2098 * verify.c (gpgsm_verify): Tweaked usage of log_debug and
2099 log_error. Return EXPSIG status and add expiretime to VALIDSIG.
2101 2002-04-26 Werner Koch <wk@gnupg.org>
2103 * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
2106 * call-agent.c (start_agent): Be more silent without -v.
2107 * call-dirmngr.c (start_dirmngr): Ditto.
2109 2002-04-25 Werner Koch <wk@gnupg.org>
2111 * call-agent.c (start_agent): Make copies of old locales and check
2114 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2116 * call-agent.c (start_agent): Fix error handling logic so the
2117 locale is always correctly reset.
2119 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2121 * server.c (option_handler): Accept display, ttyname, ttytype,
2122 lc_ctype and lc_messages options.
2123 * gpgsm.c (main): Allocate memory for these options.
2124 * gpgsm.h (struct opt): Make corresponding members non-const.
2126 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
2128 * gpgsm.h (struct opt): New members display, ttyname, ttytype,
2129 lc_ctype, lc_messages.
2130 * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
2131 oTTYname, oTTYtype, oLCctype, oLCmessages.
2132 (opts): New entries for these options.
2133 (main): Handle these new options.
2134 * call-agent.c (start_agent): Set the various display and tty
2135 parameter after resetting.
2137 2002-04-18 Werner Koch <wk@gnupg.org>
2139 * certreqgen.c (gpgsm_genkey): Write status output on success.
2141 2002-04-15 Werner Koch <wk@gnupg.org>
2143 * gpgsm.c (main): Check ksba version.
2145 * certpath.c (find_up): New to use the authorithKeyIdentifier.
2146 Use it in all other functions to locate the signing cert..
2148 2002-04-11 Werner Koch <wk@gnupg.org>
2150 * certlist.c (cert_usable_p): New.
2151 (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
2152 (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
2153 (gpgsm_add_to_certlist): Check the key usage.
2154 * sign.c (gpgsm_sign): Ditto.
2155 * verify.c (gpgsm_verify): Print a message wehn an unsuitable
2156 certificate was used.
2157 * decrypt.c (gpgsm_decrypt): Ditto
2158 * keylist.c (print_capabilities): Determine values from the cert.
2160 2002-03-28 Werner Koch <wk@gnupg.org>
2162 * keylist.c (list_cert_colon): Fixed listing of crt record; the
2163 issuer is not at the right place. Print a chainingID.
2164 * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
2167 2002-03-21 Werner Koch <wk@gnupg.org>
2170 * gpgsm.c: Add command --export.
2171 * server.c (cmd_export): New.
2173 2002-03-13 Werner Koch <wk@gnupg.org>
2175 * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
2177 2002-03-12 Werner Koch <wk@gnupg.org>
2179 * certpath.c (check_cert_policy): Print the policy list.
2181 * verify.c (gpgsm_verify): Detect certs-only message.
2183 2002-03-11 Werner Koch <wk@gnupg.org>
2185 * import.c (gpgsm_import): Print a notice about imported certificates
2186 when in verbose mode.
2188 * gpgsm.c (main): Print INV_RECP status.
2189 * server.c (cmd_recipient): Ditto.
2191 * server.c (gpgsm_status2): New. Allows for a list of strings.
2192 (gpgsm_status): Divert to gpgsm_status2.
2194 * encrypt.c (gpgsm_encrypt): Don't use a default key when no
2195 recipients are given. Print a NO_RECP status.
2197 2002-03-06 Werner Koch <wk@gnupg.org>
2199 * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
2200 (do_listkeys): new. Add pattern parsing.
2202 * keylist.c (gpgsm_list_keys): Handle selection pattern.
2204 * gpgsm.c: New command --learn-card
2205 * call-agent.c (learn_cb,gpgsm_agent_learn): New.
2207 * gpgsm.c (main): Print error messages for non-implemented commands.
2209 * base64.c (base64_reader_cb): Use case insensitive compare of the
2210 Content-Type string to detect plain base-64.
2212 2002-03-05 Werner Koch <wk@gnupg.org>
2214 * gpgsm.c, gpgsm.h: Add local_user.
2215 * sign.c (gpgsm_get_default_cert): New.
2216 (get_default_signer): Use the new function if local_user is not
2217 set otherwise used that value.
2218 * encrypt.c (get_default_recipient): Removed.
2219 (gpgsm_encrypt): Use gpgsm_get_default_cert.
2221 * verify.c (gpgsm_verify): Better error text for a bad signature
2222 found by comparing the hashs.
2224 2002-02-27 Werner Koch <wk@gnupg.org>
2226 * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2229 2002-02-25 Werner Koch <wk@gnupg.org>
2231 * server.c (option_handler): Allow to use -2 for "send all certs
2232 except the root cert".
2233 * sign.c (add_certificate_list): Implement it here.
2234 * certpath.c (gpgsm_is_root_cert): New.
2236 2002-02-19 Werner Koch <wk@gnupg.org>
2238 * certpath.c (check_cert_policy): New.
2239 (gpgsm_validate_path): And call it from here.
2240 * gpgsm.c (main): New options --policy-file,
2241 --disable-policy-checks and --enable-policy-checks.
2242 * gpgsm.h (opt): Added policy_file, no_policy_checks.
2244 2002-02-18 Werner Koch <wk@gnupg.org>
2246 * certpath.c (gpgsm_validate_path): Ask the agent to add the
2247 certificate into the trusted list.
2248 * call-agent.c (gpgsm_agent_marktrusted): New.
2250 2002-02-07 Werner Koch <wk@gnupg.org>
2252 * certlist.c (gpgsm_add_to_certlist): Check that the specified
2253 name identifies a certificate unambiguously.
2254 (gpgsm_find_cert): Ditto.
2256 * server.c (cmd_listkeys): Check that the data stream is available.
2257 (cmd_listsecretkeys): Ditto.
2259 (cmd_sign): Fix ambiguousity in option recognition.
2261 * gpgsm.c (main): Enable --logger-fd.
2263 * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2266 * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2269 * keylist.c (list_cert_colon): Filter out control characters.
2271 2002-02-06 Werner Koch <wk@gnupg.org>
2273 * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
2275 * server.c (reset_notify): Close input and output FDs.
2276 (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
2277 (cmd_genkey): Close the FDs and release the recipient list even in
2280 2002-02-01 Marcus Brinkmann <marcus@g10code.de>
2282 * sign.c (gpgsm_sign): Do not release certificate twice.
2284 2002-01-29 Werner Koch <wk@gnupg.org>
2286 * call-agent.c (gpgsm_agent_havekey): New.
2287 * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
2288 when we know that the secret key is available.
2289 (gpgsm_list_keys): New arg MODE, check whether a secret key is
2290 available. Changed all callers.
2291 * gpgsm.c (main): New command --list-secret-keys.
2292 * server.c (cmd_listsecretkeys): New.
2293 (cmd_listkeys): Return secret keys with "crs" record.
2295 2002-01-28 Werner Koch <wk@gnupg.org>
2297 * certreqgen.c (create_request): Store the email address in the req.
2299 2002-01-25 Werner Koch <wk@gnupg.org>
2301 * gpgsm.c (main): Disable core dumps.
2303 * sign.c (add_certificate_list): New.
2304 (gpgsm_sign): Add the certificates to the CMS object.
2305 * certpath.c (gpgsm_walk_cert_chain): New.
2306 * gpgsm.h (server_control_s): Add included_certs.
2307 * gpgsm.c: Add option --include-certs.
2308 (gpgsm_init_default_ctrl): New.
2310 * server.c (gpgsm_server): Ditto.
2311 (option_handler): Support --include-certs.
2313 2002-01-23 Werner Koch <wk@gnupg.org>
2315 * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
2316 * certdump.c (gpgsm_dump_string): New.
2317 (print_dn): Replaced by above.
2319 2002-01-22 Werner Koch <wk@gnupg.org>
2321 * certpath.c (unknown_criticals): New.
2323 (gpgsm_validate_path): Check validity, CA attribute, path length
2324 and unknown critical extensions.
2326 2002-01-21 Werner Koch <wk@gnupg.org>
2328 * gpgsm.c: Add option --enable-crl-checks.
2330 * call-agent.c (start_agent): Implemented socket based access.
2331 * call-dirmngr.c (start_dirmngr): Ditto.
2333 2002-01-20 Werner Koch <wk@gnupg.org>
2335 * server.c (option_handler): New.
2336 (gpgsm_server): Register it with assuan.
2338 2002-01-19 Werner Koch <wk@gnupg.org>
2340 * server.c (gpgsm_server): Use assuan_deinit_server and setup
2341 assuan logging if enabled.
2342 * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2345 * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2347 2002-01-15 Werner Koch <wk@gnupg.org>
2349 * import.c (gpgsm_import): Just do a basic cert check before
2351 * certpath.c (gpgsm_basic_cert_check): New.
2353 * keydb.c (keydb_store_cert): New.
2354 * import.c (store_cert): Removed and change all caller to use
2356 * verify.c (store_cert): Ditto.
2358 * certlist.c (gpgsm_add_to_certlist): Validate the path
2360 * certpath.c (gpgsm_validate_path): Check the trust list.
2361 * call-agent.c (gpgsm_agent_istrusted): New.
2363 2002-01-14 Werner Koch <wk@gnupg.org>
2365 * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2366 * certlist.c (gpgsm_find_cert): New.
2368 2002-01-13 Werner Koch <wk@gnupg.org>
2370 * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2373 2002-01-11 Werner Koch <wk@gnupg.org>
2375 * call-dirmngr.c: New.
2376 * certpath.c (gpgsm_validate_path): Check the CRL here.
2377 * fingerprint.c (gpgsm_get_certid): New.
2378 * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2380 2002-01-10 Werner Koch <wk@gnupg.org>
2382 * base64.c (gpgsm_create_writer): Allow to set the object name
2384 2002-01-08 Werner Koch <wk@gnupg.org>
2386 * keydb.c (spacep): Removed because it is now in util.c
2388 * server.c (cmd_genkey): New.
2389 * certreqgen.c: New. The parameter handling code has been taken
2390 from gnupg/g10/keygen.c version 1.0.6.
2391 * call-agent.c (gpgsm_agent_genkey): New.
2393 2002-01-02 Werner Koch <wk@gnupg.org>
2395 * server.c (rc_to_assuan_status): Removed and changed all callers
2396 to use map_to_assuan_status.
2398 2001-12-20 Werner Koch <wk@gnupg.org>
2400 * verify.c (gpgsm_verify): Implemented non-detached signature
2401 verification. Add OUT_FP arg, initialize a writer and changed all
2403 * server.c (cmd_verify): Pass an out_fp if one has been set.
2405 * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2407 * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2409 (print_time): Renamed to gpgsm_dump_time, made global.
2410 (gpgsm_dump_serial): Take a real S-Expression as argument and
2411 print the first item.
2412 * keylist.c (list_cert_colon): Ditto.
2413 * keydb.c (keydb_search_issuer_sn): Ditto.
2414 * decrypt.c (print_integer_sexp): Removed and made callers
2415 use gpgsm_dump_serial.
2416 * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2418 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2420 * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2422 2001-12-18 Werner Koch <wk@gnupg.org>
2424 * verify.c (print_integer_sexp): Renamed from print_integer and
2425 print the serial number according to the S-Exp rules.
2426 * decrypt.c (print_integer_sexp): Ditto.
2428 2001-12-17 Werner Koch <wk@gnupg.org>
2430 * keylist.c (list_cert_colon): Changed for new return value of
2432 * keydb.c (keydb_search_issuer_sn): Ditto.
2433 * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2434 returingin functions.
2435 * fingerprint.c (gpgsm_get_keygrip): Ditto.
2436 * encrypt.c (encrypt_dek): Ditto
2437 * certcheck.c (gpgsm_check_cms_signature): Ditto
2438 * decrypt.c (prepare_decryption): Ditto.
2439 * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2440 use KsbaSexp type and calculate the length.
2442 * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2444 * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2446 * fingerprint.c (gpgsm_get_keygrip): Use the new
2447 gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2448 therefore the grip values changed.
2450 2001-12-15 Werner Koch <wk@gnupg.org>
2452 * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2454 (gpgsm_create_cms_signature): Removed the commented fake key
2455 code. This makes the function pretty simple.
2457 * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2459 * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2460 * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2462 2001-12-14 Werner Koch <wk@gnupg.org>
2464 * keylist.c (list_cert_colon): Kludge to show an email address
2465 encoded in the subject's DN.
2467 * verify.c (gpgsm_verify): Add hash debug helpers
2468 * sign.c (gpgsm_sign): Ditto.
2470 * base64.c (base64_reader_cb): Reset the linelen when we need to
2471 skip the line and adjusted test; I somehow forgot about DeMorgan.
2473 * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify)
2474 (cmd_import): Close the FDs on success.
2475 (close_message_fd): New.
2476 (input_notify): Setting autodetect_encoding to 0 after initializing
2477 it to 0 is pretty pointless. Easy to fix.
2479 * gpgsm.c (main): New option --debug-wait n, so that it is
2480 possible to attach gdb when used in server mode.
2482 * sign.c (get_default_signer): Use keydb_classify_name here.
2484 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2486 * call-agent.c (LINELENGTH): Removed.
2487 (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2488 (gpgsm_agent_pkdecrypt): Likewise.
2490 2001-12-13 Werner Koch <wk@gnupg.org>
2492 * keylist.c (list_cert_colon): Print alternative names of subject
2493 and a few other values.
2495 2001-12-12 Werner Koch <wk@gnupg.org>
2497 * gpgsm.c (main): New options --assume-{armor,base64,binary}.
2498 * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2500 2001-12-04 Werner Koch <wk@gnupg.org>
2502 * call-agent.c (read_from_agent): Check for inquire responses.
2503 (request_reply): Handle them using a new callback arg, changed all
2505 (gpgsm_agent_pkdecrypt): New.
2507 2001-11-27 Werner Koch <wk@gnupg.org>
2509 * base64.c: New. Changed all other functions to use this instead
2510 of direct creation of ksba_reader/writer.
2511 * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2513 2001-11-26 Werner Koch <wk@gnupg.org>
2515 * gpgsm.c: New option --agent-program
2516 * call-agent.c (start_agent): Allow to override the default path
2519 * keydb.c (keydb_add_resource): Create keybox
2521 * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2523 * server.c (rc_to_assuan_status): New. Use it for all commands.
2526 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
2527 2007, 2008, 2009 Free Software Foundation, Inc.
2529 This file is free software; as a special exception the author gives
2530 unlimited permission to copy and/or distribute it, with or without
2531 modifications, as long as this notice is preserved.
2533 This file is distributed in the hope that it will be useful, but
2534 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2535 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.