1 2009-08-06 Werner Koch <wk@g10code.com>
3 * sign.c (gpgsm_sign): Print INV_SNDR for a bad default key.
5 * server.c (cmd_signer): Remove unneeded case for -1. Send
6 INV_SGNR. Use new map function.
7 (cmd_recipient): Use new map function.
8 * gpgsm.c (do_add_recipient): Use new map function for INV_RECP.
9 (main): Ditto. Also send INV_SGNR.
11 2009-07-30 Werner Koch <wk@g10code.com>
13 * call-agent.c (learn_cb): Do not store as ephemeral.
15 2009-07-29 Marcus Brinkmann <marcus@g10code.com>
17 * keylist.c (print_capabilities): Print a trailing colon.
19 2009-07-23 Werner Koch <wk@g10code.com>
21 * certchain.c (is_cert_still_valid): Emit AUDIT_CRL_CHECK.
23 2009-07-07 Werner Koch <wk@g10code.com>
25 * server.c (command_has_option): New.
26 (cmd_getinfo): Add subcommand "cmd_has_option".
27 (cmd_import): Implement option --re-import.
28 * import.c (gpgsm_import): Add arg reimport_mode.
31 * gpgsm.h: Include session-env.h.
32 (opt): Add field SESSION_ENV. Remove obsolete fields.
33 * server.c (option_handler): Rewrite setting of option fields.
34 Replace strdup by xtrystrdup.
35 * gpgsm.c (set_opt_session_env): New.
36 (main): Use it for oDisplay, oTTYname, oTTYtype and oXauthority.
37 * call-agent.c (start_agent): Adjust start_new_gpg_agent for
39 * misc.c (setup_pinentry_env): Use new session_env stuff.
41 2009-07-02 Werner Koch <wk@g10code.com>
43 * certreqgen-ui.c (gpgsm_gencertreq_tty): Allow using a key from a
45 * call-agent.c (gpgsm_agent_scd_serialno)
46 (scd_serialno_status_cb, store_serialno): New.
47 (scd_keypairinfo_status_cb, gpgsm_agent_scd_keypairinfo): New.
49 2009-07-01 Werner Koch <wk@g10code.com>
51 * certreqgen-ui.c (check_keygrip): New.
52 (gpgsm_gencertreq_tty): Allow using an existing key.
54 * gpgsm.c (open_es_fread): New.
55 (main) <aKeygen>: Implement --batch mode.
57 2009-06-24 Werner Koch <wk@g10code.com>
59 * call-dirmngr.c (pattern_from_strlist): Remove dead assignment of N.
60 * sign.c (gpgsm_sign): Remove dead assignment.
61 * certreqgen.c (create_request): Assign GPG_ERR_BUG to RC.
62 Reported by Fabian Keil.
64 2009-05-27 Werner Koch <wk@g10code.com>
66 * encrypt.c (encrypt_dek): Make use of make_canon_sexp.
68 2009-05-18 Werner Koch <wk@g10code.com>
70 * server.c (option_handler): New option "no-encrypt-to".
71 (cmd_encrypt): Make use of it.
73 * gpgsm.c: Remove not implemented --verify-files.
75 2009-04-02 Werner Koch <wk@g10code.com>
77 * keylist.c (list_cert_std): Print card serial number.
79 2009-04-01 Werner Koch <wk@g10code.com>
81 * export.c (popen_protect_tool): Add command line option
82 --agent-program and pass flag bit 6.
83 * import.c (popen_protect_tool): Ditto.
85 2009-03-26 Werner Koch <wk@g10code.com>
87 * gpgsm.c (main): s/def_digest_string/forced_digest_algo/ and
88 activate the --digest-algo option.
89 * gpgsm.h (struct opt): s/def_digest_algo/forced_digest_algo/.
90 * sign.c (gpgsm_sign): Implement --digest-algo.
92 * sign.c (MAX_DIGEST_LEN): Change to 64.
94 * call-agent.c (gpgsm_agent_marktrusted): Format the issuer name.
96 2009-03-25 Werner Koch <wk@g10code.com>
98 * decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY stati.
100 * fingerprint.c (gpgsm_get_short_fingerprint): Add arg R_HIGH and
103 2009-03-23 Werner Koch <wk@g10code.com>
105 * delete.c (delete_one): Also delete ephemeral certificates if
108 2009-03-20 Werner Koch <wk@g10code.com>
110 * keylist.c (list_internal_keys): Set released cert to NULL.
112 * call-agent.c (learn_status_cb): New.
113 (gpgsm_agent_learn): Use it.
114 (learn_cb): Send a progress for every certificate.
116 2009-03-18 Werner Koch <wk@g10code.com>
118 * gpgsm.h (struct opt): Move field WITH_EPHEMERAL_KEYS to struct
120 * gpgsm.c (main): Change accordingly.
121 * keylist.c (list_internal_keys): Ditto.
122 * server.c (option_handler): Add "with-ephemeral-keys".
124 2009-03-12 Werner Koch <wk@g10code.com>
126 * certdump.c (gpgsm_dump_time): Remove.
127 * certdump.c, verify.c, certchain.c
128 * gpgsm.c: s/gpgsm_dump_time/dump_isotime/.
130 2009-03-06 Werner Koch <wk@g10code.com>
132 * call-agent.c (gpgsm_agent_keyinfo, keyinfo_status_cb): New.
133 * keylist.c (list_cert_colon): Print card S/N.
135 * keylist.c (list_internal_keys): Always list ephemeral keys if
136 specified by keygrip or fingerprint.
137 (list_cert_raw): Always show ephemeral flag.
138 * export.c (gpgsm_export): Export ephemeral keys if specified by
141 2009-02-09 Werner Koch <wk@g10code.com>
143 * gpgsm.c (main): Change default cipher back to 3DES.
145 2009-01-12 Werner Koch <wk@g10code.com>
147 * keylist.c (print_utf8_extn_raw): Cast printf precision argument.
149 2009-01-08 Werner Koch <wk@g10code.com>
151 * fingerprint.c (gpgsm_get_keygrip_hexstring): Add error detection.
153 2008-12-10 Werner Koch <wk@g10code.com>
155 * gpgsm.c (our_cipher_test_algo): Use the GCRY constants as we now
157 (our_md_test_algo): Ditto. Add SHA224.
158 (main) <aGpgConfList>: Update default cipher algo.
160 2008-12-09 Werner Koch <wk@g10code.com>
162 * gpgsm.c (main): Call i18n_init before init_common_subsystems.
164 2008-12-05 Werner Koch <wk@g10code.com>
166 * certreqgen.c (create_request): Provide a custom prompt for the
169 * certdump.c (gpgsm_format_keydesc): Remove debug output.
170 (gpgsm_format_keydesc): Remove saving of errno as xfree is
171 supposed not to change it. Use the new percent_plus_escape
172 function which also fixes the issue that we did not escaped a
175 2008-11-18 Werner Koch <wk@g10code.com>
177 * gpgsm.c (make_libversion): New.
178 (my_strusage): Use new function.
179 (build_lib_list): Remove.
181 2008-11-13 Werner Koch <wk@g10code.com>
183 * gpgsm.c: Remove all unused options. Use ARGPARSE macros.
185 2008-10-28 Werner Koch <wk@g10code.com>
187 * certdump.c (gpgsm_format_keydesc): Use xtryasprintf and xfree.
188 (gpgsm_es_print_name): Factor code out to ...
189 (gpgsm_es_print_name2): New function.
190 (gpgsm_format_name2, format_name_writer): Use estream so that it
191 works on all platforms.
192 (format_name_writer): Fix reallocation bug.
194 2008-10-23 Werner Koch <wk@g10code.com>
196 * import.c (popen_protect_tool): Add arg CTRL and assure that the
197 agent is running. Pass a value for CTRL from all caller.
198 * export.c (popen_protect_tool): Ditto.
200 2008-10-21 Werner Koch <wk@g10code.com>
202 * call-dirmngr.c (inq_certificate_parm_s): Add field CTRL.
203 (gpgsm_dirmngr_isvalid): Supply a value for that field.
204 (inq_certificate): Add inquiry ISTRUSTED.
206 * call-agent.c (gpgsm_agent_istrusted): Add new optional arg
207 HEXFPR. Changed all callers.
209 2008-10-20 Werner Koch <wk@g10code.com>
211 * keydb.c (keydb_locate_writable): Mark unused arg.
212 (keydb_search_kid): Ditto.
213 (keydb_clear_some_cert_flags): Ditto.
214 * server.c (cmd_encrypt): Ditto.
215 (cmd_decrypt, cmd_verify, cmd_import, cmd_genkey): Ditto.
216 * call-agent.c (gpgsm_scd_pksign): Ditto.
217 * call-dirmngr.c (release_dirmngr, release_dirmngr2)
218 (run_command_cb): Ditto.
219 * certlist.c (gpgsm_add_cert_to_certlist): Ditto.
220 * certchain.c (find_up_dirmngr): Ditto.
221 * keylist.c (print_key_data): Ditto.
222 (list_cert_raw, list_cert_std): Ditto.
223 * qualified.c (gpgsm_is_in_qualified_list): Ditto.
225 * gpgsm.c (set_binary) [!W32]: Mark unused arg.
227 2008-10-17 Werner Koch <wk@g10code.com>
229 * call-dirmngr.c (start_dirmngr, start_dirmngr2): Reset the lock
231 (release_dirmngr, release_dirmngr2): Replace asserts by error messages.
232 (gpgsm_dirmngr_lookup): Replace assert by fatal error message.
234 2008-10-13 Werner Koch <wk@g10code.com>
236 * gpgsm.c: Add alias --delete-keys.
238 2008-09-30 Werner Koch <wk@g10code.com>
240 * server.c (cmd_getinfo): New subcommand agent-check.
241 * call-agent.c (gpgsm_agent_send_nop): New.
243 2008-09-29 Werner Koch <wk@g10code.com>
245 * certcheck.c (MY_GCRY_PK_ECDSA): Remove. Change users to
247 * gpgsm.c (MY_GCRY_PK_ECDSA): Ditto.
248 * sign.c (MY_GCRY_MD_SHA224): Remove change users to GCRY_MD_SHA224.
250 2008-09-04 Werner Koch <wk@g10code.com>
252 * certdump.c (gpgsm_format_keydesc): Work around a mingw32 bug.
254 2008-09-03 Werner Koch <wk@g10code.com>
256 * sign.c (MY_GCRY_MD_SHA224): New, so that we don't need libgcrypt
259 2008-08-13 Werner Koch <wk@g10code.com>
261 * keylist.c (list_cert_colon): Print 'f' for validated certs.
263 2008-08-08 Marcus Brinkmann <marcus@g10code.de>
265 * gpgsm.h (struct server_control_s): Remove member dirmngr_seen.
266 * call-dirmngr.c (dirmngr2_ctx, dirmngr_ctx_locked)
267 (dirmngr2_ctx_locked): New global variables.
268 (prepare_dirmngr): Don't check dirmngr_seen anymore.
269 (start_dirmngr): Move bunch of code to ...
270 (start_dirmngr_ext): ... this new function.
271 (release_dirmngr, start_dirmngr2, release_dirmngr2): New
273 (gpgsm_dirmngr_isvalid): Call release_dirmngr.
274 (gpgsm_dirmngr_lookup): Call release_dirmngr. If dirmngr_ctx is
275 locked, use dirmngr2_locked.
276 (gpgsm_dirmngr_run_command): Call release_dirmngr.
278 2008-06-25 Werner Koch <wk@g10code.com>
280 * sign.c (gpgsm_sign): Revamp the hash algorithm selection.
281 * gpgsm.h (struct certlist_s): Add field HASH_ALGO and HASH_ALGO_OID.
283 * qualified.c (gpgsm_qualified_consent): Fix double free.
285 * gpgsm.c (main): Change default cipher algo to AES.
287 * keylist.c (print_utf8_extn_raw, print_utf8_extn): New.
288 (list_cert_raw, list_cert_std): Print the TeleSec restriction
291 2008-06-23 Werner Koch <wk@g10code.com>
293 * encrypt.c (encode_session_key): Replace xmalloc by xtrymalloc.
294 Use bin2hex instead of open coding the conversion.
295 (encrypt_dek): Init S_DATA.
297 2008-06-13 Marcus Brinkmann <marcus@ulysses.g10code.com>
299 * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
301 2008-06-12 Marcus Brinkmann <marcus@g10code.de>
303 * gpgsm.h (struct keyserver_spec): New struct.
304 (opt): Add member keyserver.
305 * gpgsm.c (keyserver_list_free, parse_keyserver_line): New functions.
306 (main): Implement --keyserver option.
307 * call-dirmngr.c (prepare_dirmngr): Send LDAPSERVER commands.
309 2008-05-20 Werner Koch <wk@g10code.com>
311 * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
312 the export function. Reported by Marc Mutz.
314 2008-05-06 Werner Koch <wk@g10code.com>
316 * keylist.c (list_external_keys): Ignore NOT FOUND error code.
319 2008-04-23 Werner Koch <wk@g10code.com>
321 * certchain.c (find_up): Make correct C89 code. Declare variable
322 at the top of the block. Reported by Alain Guibert.
324 2008-04-09 Werner Koch <wk@g10code.com>
326 * verify.c (gpgsm_verify): Print the message hash values on error.
328 2008-03-31 Werner Koch <wk@g10code.com>
330 * call-dirmngr.c (start_dirmngr): Use log_info instead of
331 log_error when falling back to start dirmngr.
333 2008-03-20 Werner Koch <wk@g10code.com>
335 * certlist.c (gpgsm_add_to_certlist): Always save the first
336 subject and issuer. Initialize issuer with issuer and not with
338 (same_subject_issuer): Set issuer2 to issuer and not to subject.
340 2008-03-17 Werner Koch <wk@g10code.com>
342 * certdump.c (my_funopen_hook_size_t): New.
343 (format_name_writer): Use it.
345 2008-03-13 Werner Koch <wk@g10code.com>
347 * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
349 (gpgsm_format_keydesc): Remove superfluous test. Add expire date
352 2008-02-18 Werner Koch <wk@g10code.com>
354 * certchain.c (gpgsm_is_root_cert): Factor code out to ...
355 (is_root_cert): New. Extend test for self-issued certificates
357 (do_validate_chain, gpgsm_basic_cert_check)
358 (gpgsm_walk_cert_chain): Use it here.
360 * gpgsm.c: Add option --no-common-certs-import.
362 * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
363 (check_cert_policy): Be more silent with --quiet.
365 * gpgsm.c: Add option --disable-dirmngr.
366 * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
367 * call-dirmngr.c (start_dirmngr): Implement option.
369 2008-02-14 Werner Koch <wk@g10code.com>
371 * server.c (option_handler): Add option allow-pinentry-notify.
372 (gpgsm_proxy_pinentry_notify): New.
373 * call-agent.c (default_inq_cb): New.
374 (gpgsm_agent_pksign, gpgsm_scd_pksign, gpgsm_agent_readkey)
375 (gpgsm_agent_istrusted, gpgsm_agent_marktrusted)
376 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation): Call it.
377 (struct cipher_parm_s, struct genkey_parm_s): Add field CTRL.
378 (inq_ciphertext_cb): Test keyword and fallback to default_inq_cb.
379 (inq_genkey_parms): Ditto.
380 (start_agent): Tell agent to send us the pinentry notifications.
382 2008-02-13 Werner Koch <wk@g10code.com>
384 * call-dirmngr.c (gpgsm_dirmngr_lookup): Add arg CACHE_ONLY.
385 * keylist.c (list_external_keys): Pass false for new arg.
386 * certchain.c (find_up_dirmngr): New.
387 (find_up): Also try to read from the dirmngr cache.
388 (find_up, find_up_external, gpgsm_walk_cert_chain)
389 (gpgsm_basic_cert_check, allowed_ca): Add arg CTRL and changed all
391 * call-agent.c (struct learn_parm_s): Add field CTRL.
392 (gpgsm_agent_learn): Set it.
394 2008-02-11 Werner Koch <wk@g10code.com>
396 * server.c (cmd_getinfo): New.
397 (gpgsm_server): Register GETINFO.
399 2008-01-29 Marcus Brinkmann <marcus@g10code.de>
401 * keylist.c (list_internal_keys): New variable lastcert. Use it
402 to suppress duplicates which immediately follow each other.
404 2008-01-27 Werner Koch <wk@g10code.com>
406 * import.c (popen_protect_tool): Set bit 7 in the flags for
407 gnupg_spawn_process so that under W32 no window appears.
408 * export.c (popen_protect_tool): Ditto.
410 2007-12-13 Werner Koch <wk@g10code.com>
412 * gpgsm.c (main): Add option --extra-digest-algo.
413 * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
414 * verify.c (gpgsm_verify): Use it. Use the hash algorithm from
417 2007-12-11 Werner Koch <wk@g10code.com>
419 * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
421 * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
422 (cmd_recipient): Start audit session.
424 * gpgsm.c (main): Revamp creation of the audit log.
426 * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
427 * call-agent.c (start_agent): Record an audit event.
428 * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
430 (prepare_dirmngr): New helper for start_dirmngr.
432 * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
434 2007-12-03 Werner Koch <wk@g10code.com>
436 * gpgsm.c (main): Call gnupg_reopen_std.
438 h2007-11-22 Werner Koch <wk@g10code.com>
440 * server.c (cmd_getauditlog): New.
441 (register_commands): Register GETAUDITLOG.
443 2007-11-19 Werner Koch <wk@g10code.com>
445 * server.c (cmd_recipient, cmd_signer): Add error reason 11.
447 * gpgsm.c (main): Print a warning if --audit-log is used.
449 2007-11-15 Werner Koch <wk@g10code.com>
451 * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
452 * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
453 * gpgsm.c (main): New option --xauthority.
454 * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
455 * server.c (option_handler): Ad the new options.
457 2007-11-07 Werner Koch <wk@g10code.com>
459 * gpgsm.c (main): New option --audit-log.
460 * server.c (option_handler): New option enable-audit-log.
461 (start_audit_session): New.
462 (cmd_verify): Create audit context.
463 (gpgsm_server): Release the context.
465 * gpgsm.h (struct server_control_s): Add member AUDIT, include
467 * certdump.c (gpgsm_format_sn_issuer): New.
468 * verify.c (hash_data): Return an error code.
469 (gpgsm_verify): Add calls to audit_log.
471 * gpgsm.c (get_status_string): Remove.
472 * gpgsm.h: Include status.h instead of errors.h.
474 2007-10-19 Werner Koch <wk@g10code.com>
476 * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
477 (gpgsm_not_qualified_warning): Ditto.
478 * certdump.c (gpgsm_format_keydesc): Ditto.
480 2007-09-14 Werner Koch <wk@g10code.com>
482 * gpgsm.c (build_lib_list): New.
483 (my_strusage): Print lib info.
485 2007-08-24 Werner Koch <wk@g10code.com>
487 * Makefile.am (common_libs): Swap libkeybox and jnlib.
489 2007-08-23 Werner Koch <wk@g10code.com>
491 * certlist.c (gpgsm_certs_identical_p): New.
492 (gpgsm_add_to_certlist): Ignore duplicate certificates in
493 ambigious name detection.
494 (gpgsm_find_cert): Ditto.
495 * export.c (gpgsm_p12_export): Ditto.
497 2007-08-22 Werner Koch <wk@g10code.com>
499 * certreqgen.c (create_request): Replace open coding by bin2hex.
501 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
503 2007-08-21 Werner Koch <wk@g10code.com>
505 * import.c (parse_p12): Use gnupg_tmpfile.
506 * export.c (export_p12): Ditto.
508 2007-08-20 Werner Koch <wk@g10code.com>
510 * certreqgen.c (read_parameters): Change FP to an estream_t.
511 (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
512 * server.c (cmd_genkey): Adjust for that.
513 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
514 instead of a temporary file.
516 2007-08-14 Werner Koch <wk@g10code.com>
518 * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name. change
519 the way infostr is xstrdupped.
521 * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
524 2007-08-13 Werner Koch <wk@g10code.com>
526 * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
527 message depend on that.
528 (main): Add avriable RECP_REQUIRED, set ift for encryption
529 commands and pass it to do_add_recipient.
530 (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
532 2007-08-09 Werner Koch <wk@g10code.com>
534 * gpgsm.c (main) [W32]: Enable CRL check by default.
535 (main): Update the default control structure after reading the
537 (gpgsm_parse_validation_model, parse_validation_model): New.
538 (main): New option --validation-model.
539 * certchain.c (gpgsm_validate_chain): Implement this option.
540 * server.c (option_handler): Ditto.
542 * certchain.c (is_cert_still_valid): Reformatted. Add arg
543 FORCE_OCSP. Changed callers to set this flag when using the chain
546 2007-08-08 Werner Koch <wk@g10code.com>
548 * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
549 which prefixed the output with a 3A and cut it off at a 00.
551 * keylist.c (list_cert_raw): Print the certificate ID first and
552 rename "Serial number" to "S/N".
553 (list_cert_std): Ditto.
555 2007-08-07 Werner Koch <wk@g10code.com>
557 * gpgsm.c (main): Allow a string for --faked-system-time.
559 2007-08-06 Werner Koch <wk@g10code.com>
561 Implementation of the chain model.
563 * gpgsm.h (struct rootca_flags_s): Define new members VALID and
565 * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
566 (istrusted_status_cb): Set CHAIN_MODEL.
567 * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
569 (gpgsm_validate_chain): Factor some code out to ...
570 (check_validity_period, ask_marktrusted): .. new.
571 (check_validity_cm_basic, check_validity_cm_main): New.
572 (do_validate_chain): New with all code from gpgsm_validate_chain.
573 New arg ROOTCA_FLAGS.
574 (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
575 model. Add RETFLAGS arg and changed all callers to pass NULL. Add
576 CHECKTIME arg and changed all callers to pass a nil value.
577 (has_validity_model_chain): New.
578 * verify.c (gpgsm_verify): Check for chain model and return as
579 part of the trust status.
581 * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
582 (VALIDATE_FLAG_NO_DIRMNGR): New.
583 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
585 2007-08-03 Werner Koch <wk@g10code.com>
587 * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
590 * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
592 * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
594 2007-08-02 Werner Koch <wk@g10code.com>
596 * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
598 2007-07-17 Werner Koch <wk@g10code.com>
600 * gpgsm.c (main): Implement --default-key.
601 (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
603 2007-07-16 Werner Koch <wk@g10code.com>
605 * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
606 newer assuan versions.
608 2007-07-12 Werner Koch <wk@g10code.com>
610 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
611 when passing an int value.
612 * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
613 (cmd_export, cmd_message, cmd_genkey): Translate file descriptors.
615 2007-07-05 Werner Koch <wk@g10code.com>
617 * Makefile.am (common_libs): Changed order of libs.
619 2007-07-04 Werner Koch <wk@g10code.com>
621 * certchain.c (check_cert_policy): Remove extra checks for
622 GPG_ERR_NO_VALUE. They are not needed since libksba 1.0.1.
623 * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
624 * certlist.c (cert_usage_p, cert_usage_p): Ditto.
626 2007-06-26 Werner Koch <wk@g10code.com>
628 * gpgsm.c (main): Call gnupg_rl_initialize.
629 * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
631 2007-06-25 Werner Koch <wk@g10code.com>
633 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
634 add new arg FOR_WRITE. Change callers to pass new arg.
636 2007-06-24 Werner Koch <wk@g10code.com>
638 * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
641 2007-06-21 Werner Koch <wk@g10code.com>
643 * certreqgen-ui.c: New.
644 * gpgsm.c (main): Let --gen-key call it.
645 * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
648 * gpgsm.h (ctrl_t): Remove. It is now declared in ../common/util.h.
650 * call-agent.c (start_agent): Factored almost all code out to
653 2007-06-20 Werner Koch <wk@g10code.com>
655 * call-agent.c (start_agent) [W32]: Start the agent on the fly.
657 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
659 * gpgsm.c (main): Percent escape output of --gpgconf-list.
661 2007-06-14 Werner Koch <wk@g10code.com>
663 * call-agent.c (start_agent): Use gnupg_module_name.
664 * call-dirmngr.c (start_dirmngr): Ditto.
665 * export.c (export_p12): Ditto.
666 * import.c (parse_p12): Ditto.
667 * gpgsm.c (run_protect_tool): Ditto.
669 2007-06-12 Werner Koch <wk@g10code.com>
671 * gpgsm.c (main): Replace some calls by init_common_subsystems.
672 (main): Use gnupg_datadir.
673 * qualified.c (read_list): Use gnupg-datadir.
675 2007-06-11 Werner Koch <wk@g10code.com>
677 * Makefile.am (common_libs): Use libcommaonstd macr.
679 * gpgsm.c (main) [W32]: Call pth_init.
681 2007-06-06 Werner Koch <wk@g10code.com>
683 * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
685 * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
687 (format_name_writer): Define only if funopen et al is available.
689 * gpgsm.c (i18n_init): Remove.
691 2007-05-29 Werner Koch <wk@g10code.com>
693 * export.c (gpgsm_p12_export): Print passphrase encoding info only
696 2007-05-18 Marcus Brinkmann <marcus@g10code.de>
698 * qualified.c (gpgsm_qualified_consent,
699 gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
700 * certdump.c (gpgsm_format_keydesc): Likewise.
702 2007-05-07 Werner Koch <wk@g10code.com>
704 * certcheck.c (MY_GCRY_PK_ECDSA): New.
706 2007-04-20 Werner Koch <wk@g10code.com>
708 * gpgsm.c (main): Parameterize failed versions check messages.
710 2007-04-19 Werner Koch <wk@g10code.com>
712 * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2
714 (get_dsa_qbits): New.
715 (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
718 2007-04-18 Werner Koch <wk@g10code.com>
720 * certcheck.c (do_encode_md): Support 160 bit ECDSA.
722 2007-04-13 Werner Koch <wk@g10code.com>
724 * call-agent.c (start_agent): Don't use log_error when using the
725 fallback hack to start the agent. This is bug 782.
727 2007-03-20 Werner Koch <wk@g10code.com>
729 * fingerprint.c (gpgsm_get_fingerprint): Add caching.
730 (gpgsm_get_fingerprint_string): Use bin2hexcolon().
731 (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
732 as much memory as required.
733 (gpgsm_get_keygrip_hexstring): Use bin2hex.
735 * certchain.c (gpgsm_validate_chain): Keep track of the
736 certificate chain and reset the ephemeral flags.
737 * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
738 Changed caller to use a mask of ~0. Return a proper error code if
739 the certificate is not available.
741 * gpgsm.c: Add option --p12-charset.
742 * gpgsm.h (struct opt): Add p12_charset.
743 * export.c (popen_protect_tool): Use new option.
745 2007-03-19 Werner Koch <wk@g10code.com>
747 Changes to let export and key listing use estream to help systems
750 * keylist.c: Use estream in place of stdio functions.
751 * gpgsm.c (open_es_fwrite): New.
752 (main): Use it for the list commands.
753 * server.c (data_line_cookie_functions): New.
754 (data_line_cookie_write, data_line_cookie_close): New.
755 (do_listkeys): Use estream.
757 * certdump.c (gpgsm_print_serial): Changed to use estream.
758 (gpgsm_print_time): Ditto.
759 (pretty_es_print_sexp): New.
760 (gpgsm_es_print_name): New.
761 (print_dn_part): New arg STREAM. Changed all callers.
762 (print_dn_parts): Ditto.
763 * certchain.c (gpgsm_validate_chain): Changed FP to type
765 (do_list, unknown_criticals, allowed_ca, check_cert_policy)
766 (is_cert_still_valid): Ditto.
768 * export.c (gpgsm_export): New arg STREAM.
769 (do_putc, do_fputs): New.
770 (print_short_info): Allow printing to optional STREAM.
771 * server.c (cmd_export): Use stream.
772 * base64.c (do_putc, do_fputs): New.
773 (base64_writer_cb, base64_finish_write): Let them cope with an
774 alternate output function.
775 (plain_writer_cb): New.
776 (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
777 binary output to an estream. Changed call callers.
779 2007-01-31 Werner Koch <wk@g10code.com>
781 * gpgsm.c (main): Let --gen-key print a more informative error
784 2007-01-25 Werner Koch <wk@g10code.com>
786 * Makefile.am (gpgsm_LDADD): Add LIBICONV. Noted by Billy Halsey.
788 2007-01-05 Werner Koch <wk@g10code.com>
790 * certchain.c (unknown_criticals): Add subjectAltName.
792 2006-12-21 Werner Koch <wk@g10code.com>
794 * gpgsm.c: Comment mtrace feature.
796 2006-12-21 Marcus Brinkmann <marcus@g10code.de>
798 * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
800 * encrypt.c (encrypt_dek): Release S_CIPH.
802 2006-12-20 Marcus Brinkmann <marcus@g10code.de>
804 * server.c (gpgsm_server): Release CTRL->server_local.
806 * base64.c: Add new members READER and WRITER in union U2.
807 (gpgsm_create_reader): Initialise CTX->u2.reader.
808 (gpgsm_destroy_reader): Invoke ksba_reader_release. Return early
810 (gpgsm_create_writer): Initialise CTX->u2.writer.
811 (gpgsm_destroy_writer): Invoke ksba_writer_release. Return early
814 2006-12-18 Marcus Brinkmann <marcus@g10code.de>
816 * fingerprint.c (gpgsm_get_fingerprint): Close MD.
818 2006-11-24 Werner Koch <wk@g10code.com>
820 * certdump.c (parse_dn_part): Take '#' as a special character only
821 at the beginning of a string.
823 2006-11-21 Werner Koch <wk@g10code.com>
825 * certdump.c (my_funopen_hook_ret_t): New.
826 (format_name_writer): Use it for the return value.
828 2006-11-14 Werner Koch <wk@g10code.com>
830 * server.c (skip_options): Skip leading spaces.
831 (has_option): Honor "--".
832 (cmd_export): Add option --data to do an inline export. Skip all
835 * certdump.c (gpgsm_fpr_and_name_for_status): New.
836 * verify.c (gpgsm_verify): Use it to print correct status messages.
838 2006-11-11 Werner Koch <wk@g10code.com>
840 * server.c (skip_options): New.
842 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
844 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
846 2006-10-23 Werner Koch <wk@g10code.com>
848 * gpgsm.c (main): Remap common cipher algo names to their OIDs.
849 (main): New command --gpgconf-test.
851 2006-10-20 Werner Koch <wk@g10code.com>
853 * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
855 2006-10-18 Werner Koch <wk@g10code.com>
857 * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
858 testing for GPG_ERR_NO_DATA.
859 * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
860 * certchain.c (check_cert_policy): Ditto.
862 * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
863 chain length available.
865 2006-10-17 Werner Koch <wk@g10code.com>
867 * gpgsm.c: No need for pth.h.
868 (main): or to init it. It used to be hack for W32.
870 * sign.c (gpgsm_get_default_cert): Changed to return only
871 certificates usable for signing.
873 2006-10-16 Werner Koch <wk@g10code.com>
875 * certchain.c (already_asked_marktrusted)
876 (set_already_asked_marktrusted): New.
877 (gpgsm_validate_chain) <not trusted>: Keep track of certificates
878 we already asked for.
880 2006-10-11 Werner Koch <wk@g10code.com>
882 * certreqgen.c (proc_parameters, create_request): Allow for
883 creation directly from a card.
884 * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
885 (gpgsm_scd_pksign): New.
887 2006-10-06 Werner Koch <wk@g10code.com>
889 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
890 (gpgsm_LDADD): Ditto.
892 2006-10-05 Werner Koch <wk@g10code.com>
894 * certcheck.c (do_encode_md): Check that the has algo is valid.
896 2006-10-02 Marcus Brinkmann <marcus@g10code.de>
898 * server.c (register_commands): New commands DUMPKEYS and
900 (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
901 (option_handler): Support with-key-data option.
903 2006-09-26 Werner Koch <wk@g10code.com>
905 * certchain.c (gpgsm_validate_chain): More changes for the relax
906 feature. Use certificate reference counting instead of the old
907 explicit tests. Added a missing free.
909 2006-09-25 Werner Koch <wk@g10code.com>
911 * gpgsm.h (struct rootca_flags_s): New.
912 * call-agent.c (istrusted_status_cb): New.
913 (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
914 * keylist.c (list_cert_colon): Use dummy for new arg.
915 * certchain.c (gpgsm_validate_chain): Make use of the relax flag
916 for root certificates.
917 (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
919 2006-09-20 Werner Koch <wk@g10code.com>
921 * gpgsm.c: Add alias command --dump-cert.
923 * Makefile.am: Changes to allow parallel make runs.
925 2006-09-18 Werner Koch <wk@g10code.com>
927 * gpgsm.c (main): Use this to import standard certificates.
928 * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
930 2006-09-14 Werner Koch <wk@g10code.com>
932 Replaced all call gpg_error_from_errno(errno) by
933 gpg_error_from_syserror().
935 2006-09-13 Werner Koch <wk@g10code.com>
937 * keylist.c (list_internal_keys): Print marker line to FP and not
940 * gpgsm.c (main): All list key list commands now make ose of
941 --output. Cleaned up calls to list modes. New command
942 --dump-chain. Renamed --list-sigs to --list-chain and added an
943 alias for the old one.
945 * server.c (cmd_message): Changed to use assuan_command_parse_fd.
946 (option_handler): New option list-to-output.
947 (do_listkeys): Use it.
949 2006-09-06 Werner Koch <wk@g10code.com>
951 * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
953 (CTRL): Removed and changed everywhere to ctrl_t.
956 Replaced all Assuan error codes by libgpg-error codes. Removed
957 all map_to_assuan_status and map_assuan_err.
959 * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
960 switch to gpg-error codes.
961 * server.c (set_error): Adjusted.
963 2006-08-29 Werner Koch <wk@g10code.com>
965 * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
966 complete S-expressions as implemented by the current gpg-agent.
968 * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
971 2006-07-03 Werner Koch <wk@g10code.com>
973 * certreqgen.c (proc_parameters): Print the component label of a
976 2006-06-26 Werner Koch <wk@g10code.com>
978 * certdump.c (gpgsm_cert_log_name): New.
979 * certchain.c (is_cert_still_valid): Log the name of the certificate.
981 2006-06-20 Werner Koch <wk@g10code.com>
983 * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
984 option --include-certs.
986 * keylist.c (list_cert_raw): Print the certid.
988 2006-05-23 Werner Koch <wk@g10code.com>
990 * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
992 * Makefile.am (gpgsm_LDADD): Include ZLIBS.
994 2006-05-19 Marcus Brinkmann <marcus@g10code.de>
996 * keydb.c (keydb_insert_cert): Do not lock here, but only check if
998 (keydb_store_cert): Lock here.
1000 * keydb.h (keydb_delete): Accept new argument UNLOCK.
1001 * keydb.c (keydb_delete): Likewise. Only unlock if this is set.
1002 * delete.c (delete_one): Add new argument to invocation of
1005 2006-05-15 Werner Koch <wk@g10code.com>
1007 * keylist.c (print_names_raw): Sanitize URI.
1009 2006-03-21 Werner Koch <wk@g10code.com>
1011 * certchain.c (get_regtp_ca_info): New.
1012 (allowed_ca): Use it.
1014 2006-03-20 Werner Koch <wk@g10code.com>
1016 * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
1018 2006-02-17 Werner Koch <wk@g10code.com>
1020 * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
1022 2005-11-23 Werner Koch <wk@g10code.com>
1024 * gpgsm.h: New member QUALSIG_APPROVAL.
1025 * sign.c (gpgsm_sign): Print a warning if a certificate is not
1027 * qualified.c (gpgsm_qualified_consent): Include a note that this
1028 is not approved software.
1029 (gpgsm_not_qualified_warning): New.
1030 * gpgsm.c (main): Prepared to print a note whether the software
1033 2005-11-13 Werner Koch <wk@g10code.com>
1035 * call-agent.c (gpgsm_agent_get_confirmation): New.
1037 * keylist.c (list_cert_std): Print qualified status.
1039 * certchain.c (gpgsm_validate_chain): Check for qualified
1042 * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
1043 no-chain-validation is used.
1045 2005-11-11 Werner Koch <wk@g10code.com>
1047 * keylist.c (print_capabilities): Print is_qualified status.
1049 2005-10-28 Werner Koch <wk@g10code.com>
1051 * certdump.c (pretty_print_sexp): New.
1052 (gpgsm_print_name2): Use it here. This allows proper printing of
1053 DNS names as used with server certificates.
1055 2005-10-10 Werner Koch <wk@g10code.com>
1057 * keylist.c: Add pkaAdress OID as reference.
1059 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
1061 * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
1062 ../common/libcommon.a.
1064 2005-09-13 Werner Koch <wk@g10code.com>
1066 * verify.c (gpgsm_verify): Print a note if the unknown algorithm
1068 * sign.c (gpgsm_sign): Ditto.
1069 * certcheck.c (gpgsm_check_cert_sig): Ditto.
1071 2005-09-08 Werner Koch <wk@g10code.com>
1073 * export.c (popen_protect_tool): Add option --have-cert. We
1074 probably lost this option with 1.9.14 due to restructuring of
1077 2005-07-21 Werner Koch <wk@g10code.com>
1079 * gpgsm.c (main): New options --no-log-file and --debug-none.
1081 * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
1082 to allow enumeration. Changed all callers.
1083 (create_request): Process DNS and URI parameters.
1085 2005-07-20 Werner Koch <wk@g10code.com>
1087 * keylist.c (email_kludge): Reworked.
1089 * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
1091 * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
1093 2005-07-19 Werner Koch <wk@g10code.com>
1095 * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
1096 Bug accidently introduced while solving the #$%^& gcc
1097 signed/unsigned char* warnings.
1099 2005-06-15 Werner Koch <wk@g10code.com>
1101 * delete.c (delete_one): Changed FPR to unsigned.
1102 * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
1103 (gpgsm_encrypt): Ditto.
1104 * sign.c (gpgsm_sign): Made SIGVAL unsigned.
1105 * base64.c (base64_reader_cb): Need to use some casting to get
1106 around signed/unsigned char* warnings.
1107 * certcheck.c (gpgsm_check_cms_signature): Ditto.
1108 (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
1109 (do_encode_md): Made NFRAME a size_t.
1110 * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
1111 (gpgsm_dump_serial): Ditto.
1112 (gpgsm_format_serial): Ditto.
1113 (gpgsm_dump_string): Ditto.
1114 (gpgsm_dump_cert): Ditto.
1115 (parse_dn_part): Ditto.
1116 (gpgsm_print_name2): Ditto.
1117 * keylist.c (email_kludge): Ditto.
1118 * certreqgen.c (proc_parameters, create_request): Ditto.
1119 (create_request): Ditto.
1120 * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
1121 (struct cipher_parm_s): Made CIPHERTEXT unsigned.
1122 (struct genkey_parm_s): Ditto.
1123 * server.c (strcpy_escaped_plus): Made arg S signed char*.
1124 * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
1125 (gpgsm_get_keygrip): Ditto.
1126 * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
1127 (keydb_update_cert): Ditto.
1128 (classify_user_id): Apply cast to signed/unsigned assignment.
1131 2005-06-01 Werner Koch <wk@g10code.com>
1133 * misc.c: Include setenv.h.
1135 2005-04-21 Werner Koch <wk@g10code.com>
1137 * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
1138 * certchain.c (gpgsm_validate_chain): Make use of it.
1140 * certchain.c (gpgsm_validate_chain): Check revocations even for
1141 expired certificates. This is required because on signature
1142 verification an expired key is fine whereas a revoked one is not.
1144 2005-04-20 Werner Koch <wk@g10code.com>
1146 * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
1148 2005-04-19 Werner Koch <wk@g10code.com>
1150 * certchain.c (check_cert_policy): Print the diagnostic for a open
1151 failure of policies.txt only in verbose mode or when it is not
1154 2005-04-17 Werner Koch <wk@g10code.com>
1156 * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
1157 * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
1158 this filter. Changed all callers.
1160 * certchain.c (find_up_search_by_keyid): New helper.
1161 (find_up): Also try using the AKI.keyIdentifier.
1162 (find_up_external): Ditto.
1164 2005-04-15 Werner Koch <wk@g10code.com>
1166 * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
1167 well as the keyIdentifier part of the authorityKeyIdentifier.
1169 2005-03-31 Werner Koch <wk@g10code.com>
1171 * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
1172 * call-agent.c (start_agent): Ditto.
1174 2005-03-17 Werner Koch <wk@g10code.com>
1176 * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
1178 * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
1179 failed gcry_pk_verify.
1180 (find_up): Do an external lookup also for an authorityKeyIdentifier
1181 lookup. Factored external lookup code out to ..
1182 (find_up_external): .. new.
1184 2005-03-03 Werner Koch <wk@g10code.com>
1186 * Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
1188 2005-01-13 Werner Koch <wk@g10code.com>
1190 * certreqgen.c (proc_parameters): Cast printf arg.
1192 2004-12-22 Werner Koch <wk@g10code.com>
1194 * gpgsm.c (set_binary): New.
1195 (main, open_read, open_fwrite): Use it.
1197 2004-12-21 Werner Koch <wk@g10code.com>
1199 * gpgsm.c (main): Use default_homedir().
1200 (main) [W32]: Default to disabled CRL checks.
1202 2004-12-20 Werner Koch <wk@g10code.com>
1204 * call-agent.c (start_agent): Before starting a pipe server start
1205 to connect to a server on the standard socket. Use PATHSEP
1206 * call-dirmngr.c (start_dirmngr): Use PATHSEP.
1208 * import.c: Include unistd.h for dup and close.
1210 2004-12-18 Werner Koch <wk@g10code.com>
1212 * gpgsm.h (map_assuan_err): Define in terms of
1213 map_assuan_err_with_source.
1214 * call-agent.c (start_agent): Pass error source to
1215 send_pinentry_environment.
1217 2004-12-17 Werner Koch <wk@g10code.com>
1219 * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
1220 (run_command_status_cb): Return cancel status if gpgsm_status
1223 * server.c (gpgsm_status, gpgsm_status2)
1224 (gpgsm_status_with_err_code): Return an error code.
1225 (gpgsm_status2): Always call va_end().
1227 2004-12-15 Werner Koch <wk@g10code.com>
1229 * call-dirmngr.c (lookup_status_cb): Send progress messages
1231 (isvalid_status_cb): Ditto.
1232 (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
1233 (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
1234 status callback and handle PROGRESS.
1236 * misc.c (setup_pinentry_env) [W32]: Don't use it.
1238 * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
1239 operations and to resolve libassuan symbols.
1240 (run_protect_tool) [W32]: Disable it.
1242 * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
1244 2004-12-07 Werner Koch <wk@g10code.com>
1246 * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
1247 under W32 we need the w32 pth code from jnlib.
1249 * misc.c (setup_pinentry_env) [W32]: Disabled.
1251 2004-12-06 Werner Koch <wk@g10code.com>
1253 * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
1255 * import.c (popen_protect_tool): Simplified by making use of
1256 gnupg_spawn_process.
1257 (parse_p12): Likewise, using gnupg_wait_process.
1258 * export.c (popen_protect_tool): Ditto.
1259 (export_p12): Ditto.
1261 * keydb.c: Don't define DIRSEP_S here.
1263 2004-12-02 Werner Koch <wk@g10code.com>
1265 * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
1266 signature for debugging.
1267 (gpgsm_validate_chain): Ditto.
1269 2004-11-29 Werner Koch <wk@g10code.com>
1271 * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
1273 (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE. This
1274 now allows to add debug flags on top of a debug-level setting.
1276 2004-11-23 Werner Koch <wk@g10code.com>
1278 * gpgsm.c: New option --prefer-system-dirmngr.
1279 * call-dirmngr.c (start_dirmngr): Implement this option.
1281 2004-10-22 Werner Koch <wk@g10code.com>
1283 * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
1284 request PEM header. This is according to the Sphinx standard.
1286 2004-10-08 Moritz Schulte <moritz@g10code.com>
1288 * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
1289 case the no_chain_validation-return-short-cut is used (fixes
1292 2004-10-04 Werner Koch <wk@g10code.com>
1294 * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1296 2004-09-30 Werner Koch <wk@g10code.com>
1298 * gpgsm.c (i18n_init): Always use LC_ALL.
1300 * certdump.c (gpgsm_format_name): Factored code out to ..
1301 (gpgsm_format_name2): .. new.
1302 (gpgsm_print_name): Factored code out to ..
1303 (gpgsm_print_name2): .. new.
1304 (print_dn_part): New arg TRANSLATE. Changed all callers.
1305 (print_dn_parts): Ditto.
1306 (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
1307 it to stay UTF-8 but we still want to filter out bad control
1310 * Makefile.am: Adjusted for gettext 0.14.
1312 * keylist.c (list_cert_colon): Make sure that the expired flag has
1313 a higher precedence than the invalid flag.
1315 2004-09-29 Werner Koch <wk@g10code.com>
1317 * import.c (parse_p12): Write an error status line for bad
1318 passphrases. Add new arg CTRL and changed caller.
1319 * export.c (export_p12): Likewise.
1321 2004-09-14 Werner Koch <wk@g10code.com>
1323 * certchain.c (gpgsm_validate_chain): Give expired certificates a
1324 higher error precedence and don't bother to check any CRL in that
1327 2004-08-24 Werner Koch <wk@g10code.de>
1329 * certlist.c: Fixed typo in ocsp OID.
1331 2004-08-18 Werner Koch <wk@g10code.de>
1333 * certlist.c (gpgsm_cert_use_ocsp_p): New.
1334 (cert_usage_p): Support it here.
1335 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
1337 2004-08-17 Marcus Brinkmann <marcus@g10code.de>
1339 * import.c: Fix typo in last change.
1341 2004-08-17 Werner Koch <wk@g10code.de>
1343 * import.c (check_and_store): Do a full validation if
1344 --with-validation is set.
1346 * certchain.c (gpgsm_basic_cert_check): Print more detailed error
1349 * certcheck.c (do_encode_md): Partly support DSA. Add new arg
1350 PKALGO. Changed all callers to pass it.
1351 (pk_algo_from_sexp): New.
1353 2004-08-16 Werner Koch <wk@g10code.de>
1355 * gpgsm.c: New option --fixed-passphrase.
1356 * import.c (popen_protect_tool): Pass it to the protect-tool.
1358 * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1359 for encrypt-to keys.
1361 2004-08-06 Werner Koch <wk@g10code.com>
1363 * gpgsm.c: New option --with-ephemeral-keys.
1364 * keylist.c (list_internal_keys): Set it here.
1365 (list_cert_raw): And indicate those keys. Changed all our callers
1366 to pass the new arg HD through.
1368 2004-07-23 Werner Koch <wk@g10code.de>
1370 * certreqgen.c (proc_parameters): Do not allow key length below
1373 2004-07-22 Werner Koch <wk@g10code.de>
1375 * keylist.c (list_cert_raw): Print the keygrip.
1377 2004-07-20 Werner Koch <wk@gnupg.org>
1379 * certchain.c (gpgsm_validate_chain): The trust check didn't
1380 worked anymore, probably due to the changes at 2003-03-04. Fixed.
1382 2004-06-06 Werner Koch <wk@gnupg.org>
1384 * certreqgen.c (get_parameter_uint, create_request): Create
1385 an extension for key usage when requested.
1387 2004-05-12 Werner Koch <wk@gnupg.org>
1389 * gpgsm.c (main): Install emergency_cleanup also as an atexit
1392 * verify.c (gpgsm_verify): Removed the separate error code
1393 handling for KSBA. We use shared error codes anyway.
1395 * export.c (export_p12): Removed debugging code.
1397 * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1399 2004-05-11 Werner Koch <wk@gnupg.org>
1401 * sign.c (gpgsm_sign): Include the error source in the final error
1403 * decrypt.c (gpgsm_decrypt): Ditto.
1405 * fingerprint.c (gpgsm_get_key_algo_info): New.
1406 * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1407 * keylist.c (list_cert_colon): Really print the algorithm and key
1409 (list_cert_raw, list_cert_std): Ditto.
1410 (list_cert_colon): Reorganized to be able to tell whether a root
1411 certificate is trusted.
1413 * gpgsm.c: New option --debug-allow-core-dump.
1415 * gpgsm.h (opt): Add member CONFIG_FILENAME.
1416 * gpgsm.c (main): Use it here instead of the local var.
1418 * server.c (gpgsm_server): Print some additional information with
1419 the hello in verbose mode.
1421 2004-04-30 Werner Koch <wk@gnupg.org>
1423 * import.c (check_and_store): Do not update the stats for hidden
1424 imports of issuer certs.
1425 (popen_protect_tool): Request statusmessages from the protect-tool.
1426 (parse_p12): Detect status messages. Add new arg STATS and update them.
1427 (print_imported_summary): Include secret key stats.
1429 2004-04-28 Werner Koch <wk@gnupg.org>
1431 * gpgsm.c: New command --keydb-clear-some-cert-flags.
1432 * keydb.c (keydb_clear_some_cert_flags): New.
1433 (keydb_update_keyblock, keydb_set_flags): Change error code
1434 CONFLICT to NOT_LOCKED.
1436 2004-04-26 Werner Koch <wk@gnupg.org>
1438 * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1441 * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)
1442 (gpgsm_agent_genkey, gpgsm_agent_istrusted)
1443 (gpgsm_agent_marktrusted, gpgsm_agent_havekey)
1444 (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1445 (start_agent): New arg CTRL. Send progress item when starting a
1447 * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1448 CTRL to be passed down to the agent function.
1449 * decrypt.c (prepare_decryption): Ditto.
1450 * certreqgen.c (proc_parameters, read_parameters): Ditto.
1451 * certcheck.c (gpgsm_create_cms_signature): Ditto.
1453 2004-04-23 Werner Koch <wk@gnupg.org>
1455 * keydb.c (keydb_add_resource): Try to compress the file on init.
1457 * keylist.c (oidtranstbl): New. OIDs collected from several sources.
1458 (print_name_raw, print_names_raw, list_cert_raw): New.
1459 (gpgsm_list_keys): Check the dump mode and pass it down as
1462 2004-04-22 Werner Koch <wk@gnupg.org>
1464 * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1467 2004-04-13 Werner Koch <wk@gnupg.org>
1469 * misc.c (setup_pinentry_env): New.
1470 * import.c (popen_protect_tool): Call it.
1471 * export.c (popen_protect_tool): Call it.
1473 2004-04-08 Werner Koch <wk@gnupg.org>
1475 * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
1478 2004-04-07 Werner Koch <wk@gnupg.org>
1480 * gpgsm.c: New option --force-crl-refresh.
1481 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1483 2004-04-05 Werner Koch <wk@gnupg.org>
1485 * server.c (get_status_string): Add STATUS_NEWSIG.
1486 * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1488 * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1489 not just warn if a cert is not suitable; bail out immediately.
1491 2004-04-01 Werner Koch <wk@gnupg.org>
1493 * call-dirmngr.c (isvalid_status_cb): New.
1494 (unhexify_fpr): New. Taken from ../g10/call-agent.c
1495 (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1496 it thru. Detect need to check the respondert cert and do that.
1497 * certchain.c (gpgsm_validate_chain): Add new arg FLAGS. Changed
1500 2004-03-24 Werner Koch <wk@gnupg.org>
1502 * sign.c (gpgsm_sign): Include a short list of capabilities.
1504 2004-03-17 Werner Koch <wk@gnupg.org>
1506 * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1508 2004-03-16 Werner Koch <wk@gnupg.org>
1510 * gpgsm.c (main): Implemented --gpgconf-list.
1512 2004-03-15 Werner Koch <wk@gnupg.org>
1514 * keylist.c (list_cert_colon): Hack to set the expired flag.
1516 2004-03-09 Werner Koch <wk@gnupg.org>
1518 * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1520 * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1522 2004-03-04 Werner Koch <wk@gnupg.org>
1524 * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1526 * certchain.c (is_cert_still_valid): New. Code moved from ...
1527 (gpgsm_validate_chain): ... here because we now need to check at
1528 two places and at a later stage, so that we can pass the issuer
1529 cert down to the dirmngr.
1531 2004-03-03 Werner Koch <wk@gnupg.org>
1533 * call-agent.c (start_agent): Replaced pinentry setup code by a
1534 call to a new common function.
1536 * certdump.c (gpgsm_format_keydesc): Make sure the string is
1539 * export.c (gpgsm_export): Make sure that we don't export more
1540 than one certificate.
1542 2004-03-02 Werner Koch <wk@gnupg.org>
1544 * export.c (create_duptable, destroy_duptable)
1545 (insert_duptable): New.
1546 (gpgsm_export): Avoid duplicates.
1548 2004-02-26 Werner Koch <wk@gnupg.org>
1550 * certchain.c (compare_certs): New.
1551 (gpgsm_validate_chain): Fixed infinite certificate checks after
1554 2004-02-24 Werner Koch <wk@gnupg.org>
1556 * keylist.c (list_cert_colon): Print the fingerprint as the
1557 cert-id for root certificates.
1559 2004-02-21 Werner Koch <wk@gnupg.org>
1561 * keylist.c (list_internal_keys): Return error codes.
1562 (list_external_keys, gpgsm_list_keys): Ditto.
1563 * server.c (do_listkeys): Ditto.
1565 * gpgsm.c (main): Display a key description for --passwd.
1566 * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1568 2004-02-20 Werner Koch <wk@gnupg.org>
1570 * gpgsm.c (main): New option --debug-ignore-expiration.
1571 * certchain.c (gpgsm_validate_chain): Use it here.
1573 * certlist.c (cert_usage_p): Apply extKeyUsage.
1575 2004-02-19 Werner Koch <wk@gnupg.org>
1577 * export.c (export_p12, popen_protect_tool)
1578 (gpgsm_p12_export): New.
1579 * gpgsm.c (main): New command --export-secret-key-p12.
1581 2004-02-18 Werner Koch <wk@gnupg.org>
1583 * gpgsm.c (set_debug): Set the new --debug-level flags.
1584 (main): New option --gpgconf-list.
1585 (main): Do not setup -u and -r keys when not required.
1586 (main): Setup the used character set.
1588 * keydb.c (keydb_add_resource): Print a hint to start the
1591 2004-02-17 Werner Koch <wk@gnupg.org>
1593 * gpgsm.c: Fixed value parsing for --with-validation.
1594 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1595 * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1597 * gpgsm.c: New option --with-md5-fingerprint.
1598 * keylist.c (list_cert_std): Print MD5 fpr.
1600 * gpgsm.c: New options --with-validation.
1601 * server.c (option_handler): New option "with-validation".
1602 * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1603 WITH_VALIDATION. Changed callers to set it.
1604 (list_external_cb, list_external_keys): Pass CTRL to the callback.
1605 (list_cert_colon): Add arg CTRL. Check validation if requested.
1606 * certchain.c (unknown_criticals, allowed_ca, check_cert_policy)
1607 (gpgsm_validate_chain): New args LISTMODE and FP.
1608 (do_list): New helper for info output.
1609 (find_up): New arg FIND_NEXT.
1610 (gpgsm_validate_chain): After a bad signature try again with other
1613 * import.c (print_imported_status): New arg NEW_CERT. Print
1614 additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1615 (check_and_store): Always call above function after import.
1616 * server.c (get_status_string): Added STATUS_IMPORT_OK.
1618 2004-02-13 Werner Koch <wk@gnupg.org>
1620 * certcheck.c (gpgsm_create_cms_signature): Format a description
1621 for use by the pinentry.
1622 * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1623 * certdump.c (format_name_cookie, format_name_writer)
1624 (gpgsm_format_name): New.
1625 (gpgsm_format_serial): New.
1626 (gpgsm_format_keydesc): New.
1627 * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1628 (gpgsm_agent_pkdecrypt): Ditto.
1630 * encrypt.c (init_dek): Check for too weak algorithms.
1632 * import.c (parse_p12, popen_protect_tool): New.
1634 * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1635 Changed all callers.
1636 (base64_reader_cb): Handle it here.
1637 (gpgsm_reader_eof_seen): New.
1638 (base64_reader_cb): Set a flag for EOF.
1639 (simple_reader_cb): Ditto.
1641 2004-02-12 Werner Koch <wk@gnupg.org>
1643 * gpgsm.h, gpgsm.c: New option --protect-tool-program.
1644 * gpgsm.c (run_protect_tool): Use it.
1646 2004-02-11 Werner Koch <wk@gnupg.org>
1648 * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
1649 will allow to override directory names at make time.
1651 2004-02-02 Werner Koch <wk@gnupg.org>
1653 * import.c (check_and_store): Import certificates even with
1654 missing issuer's cert. Fixed an "depending on the verbose
1657 * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
1660 * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
1662 (list_internal_keys): Retrieve validity flag.
1663 (list_external_cb): Pass 0 as validity flag.
1664 * keydb.c (keydb_get_flags, keydb_set_flags): New.
1665 (keydb_set_cert_flags): New.
1666 (lock_all): Return a proper error code.
1668 (keydb_delete): Don't lock but check that it has been locked.
1669 (keydb_update_keyblock): Ditto.
1670 * delete.c (delete_one): Take a lock.
1672 2004-01-30 Werner Koch <wk@gnupg.org>
1674 * certchain.c (check_cert_policy): Fixed read error checking.
1675 (check_cert_policy): With no critical policies issue only a
1676 warning if the policy file does not exists.
1678 * sign.c (add_certificate_list): Decrement N for the first cert.
1680 2004-01-29 Werner Koch <wk@gnupg.org>
1682 * certdump.c (parse_dn_part): Map common OIDs to human readable
1683 labels. Make sure that a value won't get truncated if it includes
1686 2004-01-28 Werner Koch <wk@gnupg.org>
1688 * certchain.c (gpgsm_validate_chain): Changed the message printed
1689 for an untrusted root certificate.
1691 2004-01-27 Werner Koch <wk@gnupg.org>
1693 * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
1694 (print_dn_part): Do not delimit multiple RDN by " + ". Handle
1695 multi-valued RDNs in a special way, i.e. in the order specified by
1697 (print_dn_parts): Simplified.
1699 2004-01-16 Werner Koch <wk@gnupg.org>
1701 * sign.c (gpgsm_sign): Print an error message on all failures.
1702 * decrypt.c (gpgsm_decrypt): Ditto.
1704 2003-12-17 Werner Koch <wk@gnupg.org>
1706 * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
1707 (cmd_encrypt): Add all enrypt-to marked certs to the list.
1708 * encrypt.c (gpgsm_encrypt): Check that real recipients are
1710 * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
1711 options work. Pass the list of recients to gpgsm_server.
1712 * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
1713 (opt): Add NO_ENCRYPT_TO.
1714 * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
1715 Changed all callers and ignore duplicate entries.
1716 (is_cert_in_certlist): New.
1717 (gpgsm_add_cert_to_certlist): New.
1719 * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
1720 (gpgsm_dump_serial): Ditto.
1722 * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
1724 2003-12-16 Werner Koch <wk@gnupg.org>
1726 * gpgsm.c (main): Set the prefixes for assuan logging.
1728 * sign.c (gpgsm_sign): Add validation checks for the default
1731 * gpgsm.c: Add -k as alias for --list-keys and -K for
1734 2003-12-15 Werner Koch <wk@gnupg.org>
1736 * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
1737 not need for real strong random here and it even better protect
1738 the random bits used for the key.
1740 2003-12-01 Werner Koch <wk@gnupg.org>
1742 * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
1743 (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
1744 * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
1745 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
1746 proceed accordingly.
1748 2003-11-19 Werner Koch <wk@gnupg.org>
1750 * verify.c (gpgsm_verify): Use "0" instead of an empty string for
1751 the VALIDSIG status.
1753 2003-11-18 Werner Koch <wk@gnupg.org>
1755 * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
1757 * certchain.c (unknown_criticals): Fixed an error code test.
1759 2003-11-12 Werner Koch <wk@gnupg.org>
1761 Adjusted for API changes in Libksba.
1763 2003-10-31 Werner Koch <wk@gnupg.org>
1765 * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
1766 * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
1767 * sign.c (gpgsm_sign): Ditto.
1768 * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
1769 * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
1772 2003-10-25 Werner Koch <wk@gnupg.org>
1774 * certreqgen.c (read_parameters): Fixed faulty of !spacep().
1776 2003-08-20 Marcus Brinkmann <marcus@g10code.de>
1778 * encrypt.c (encode_session_key): Allocate enough space. Cast key
1779 byte to unsigned char to prevent sign extension.
1780 (encrypt_dek): Check return value before error.
1782 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1784 * encrypt.c (encode_session_key): Use new Libgcrypt interface.
1786 2003-07-31 Werner Koch <wk@gnupg.org>
1788 * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
1790 2003-07-29 Werner Koch <wk@gnupg.org>
1792 * gpgsm.c (main): Add secmem features and set the random seed file.
1793 (gpgsm_exit): Update the random seed file and enable debug output.
1795 2003-07-27 Werner Koch <wk@gnupg.org>
1797 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1799 2003-06-24 Werner Koch <wk@gnupg.org>
1801 * server.c (gpgsm_status_with_err_code): New.
1802 * verify.c (gpgsm_verify): Use it here instead of the old
1805 * verify.c (strtimestamp): Renamed to strtimestamp_r
1807 Adjusted for changes in the libgcrypt API. Some more fixes for the
1810 2003-06-04 Werner Koch <wk@gnupg.org>
1812 * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
1813 Include new membuf header and changed used type.
1815 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1817 2003-06-03 Werner Koch <wk@gnupg.org>
1819 Changed all error codes in all files to the new libgpg-error scheme.
1821 * gpgsm.h: Include gpg-error.h .
1822 * Makefile.am: Link with libgpg-error.
1824 2003-04-29 Werner Koch <wk@gnupg.org>
1826 * Makefile.am: Use libassuan. Don't override LDFLAGS anymore.
1827 * server.c (register_commands): Adjust for new Assuan semantics.
1829 2002-12-03 Werner Koch <wk@gnupg.org>
1831 * call-agent.c (gpgsm_agent_passwd): New.
1832 * gpgsm.c (main): New command --passwd and --call-protect-tool
1833 (run_protect_tool): New.
1835 2002-11-25 Werner Koch <wk@gnupg.org>
1837 * verify.c (gpgsm_verify): Handle content-type attribute.
1839 2002-11-13 Werner Koch <wk@gnupg.org>
1841 * call-agent.c (start_agent): Try to use $GPG_TTY instead of
1842 ttyname. Changed ttyname to test stdin becuase it can be assumed
1843 that output redirection is more common that input redirection.
1845 2002-11-12 Werner Koch <wk@gnupg.org>
1847 * gpgsm.c: New command --call-dirmngr.
1848 * call-dirmngr.c (gpgsm_dirmngr_run_command)
1849 (run_command_inq_cb,run_command_cb)
1850 (run_command_status_cb): New.
1852 2002-11-11 Werner Koch <wk@gnupg.org>
1854 * certcheck.c (gpgsm_check_cms_signature): Don't double free
1855 s_sig but free s_pkey at leave.
1857 2002-11-10 Werner Koch <wk@gnupg.org>
1859 * gpgsm.c: Removed duplicate --list-secret-key entry.
1861 2002-09-19 Werner Koch <wk@gnupg.org>
1863 * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
1865 * certchain.c (find_up): Print info when the cert was not found
1866 by the autorithyKeyIdentifier.
1868 2002-09-03 Werner Koch <wk@gnupg.org>
1870 * gpgsm.c (main): Disable the internal libgcrypt locking.
1872 2002-08-21 Werner Koch <wk@gnupg.org>
1874 * import.c (print_imported_summary): Cleaned up. Print new
1876 (check_and_store): Update non_imported counter.
1877 (print_import_problem): New.
1878 (check_and_store): Print error status message.
1879 * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
1881 2002-08-20 Werner Koch <wk@gnupg.org>
1883 * gpgsm.c (main): Use the log file only in server mode.
1885 * import.c (print_imported_summary): New.
1886 (check_and_store): Update the counters, take new argument.
1887 (import_one): Factored out core of gpgsm_import.
1888 (gpgsm_import): Print counters.
1889 (gpgsm_import_files): New.
1890 * gpgsm.c (main): Use the new function for import.
1892 2002-08-19 Werner Koch <wk@gnupg.org>
1894 * decrypt.c (gpgsm_decrypt): Return a better error status token.
1895 * verify.c (gpgsm_verify): Don't error on messages with no signing
1896 time or no message digest. This is only the case for messages
1897 without any signed attributes.
1899 2002-08-16 Werner Koch <wk@gnupg.org>
1901 * certpath.c: Renamed to ..
1902 * certchain.c: this. Renamed all all other usages of "path" in the
1903 context of certificates to "chain".
1905 * call-agent.c (learn_cb): Special treatment when the issuer
1906 certificate is missing.
1908 2002-08-10 Werner Koch <wk@gnupg.org>
1910 * Makefile.am (INCLUDES): Add definition for localedir.
1912 * keylist.c (list_cert_colon): Print the short fingerprint in the
1914 * fingerprint.c (gpgsm_get_short_fingerprint): New.
1915 * verify.c (gpgsm_verify): Print more verbose info for a good
1918 2002-08-09 Werner Koch <wk@gnupg.org>
1920 * decrypt.c (prepare_decryption): Hack to detected already
1923 * gpgsm.c (emergency_cleanup): New.
1924 (main): Initialize the signal handler.
1926 * sign.c (gpgsm_sign): Reset the hash context for subsequent
1927 signers and release it at the end.
1929 2002-08-05 Werner Koch <wk@gnupg.org>
1931 * server.c (cmd_signer): New command "SIGNER"
1932 (register_commands): Register it.
1933 (cmd_sign): Pass the signer list to gpgsm_sign.
1934 * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
1935 for secret key if set and changed all callers.
1936 * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
1938 * gpgsm.c (main): Support more than one -u.
1940 * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
1941 which is actually what gets returned from add_to_certlist.
1943 2002-07-26 Werner Koch <wk@gnupg.org>
1945 * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
1946 (gpgsm_check_cms_signature): Ditto.
1948 2002-07-22 Werner Koch <wk@gnupg.org>
1950 * keydb.c (keydb_add_resource): Register a lock file.
1951 (lock_all, unlock_all): Implemented.
1954 * gpgsm.c: Made --delete-key work.
1955 * server.c (cmd_delkeys): New.
1956 (register_commands): New command DELKEYS.
1958 * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
1959 used and a STATUS_ERROR with the algorithm oid.
1961 2002-07-03 Werner Koch <wk@gnupg.org>
1963 * server.c (gpgsm_status2): Insert a blank between all optional
1964 arguments when using assuan.
1965 * server.c (cmd_recipient): No more need for extra blank in constants.
1966 * import.c (print_imported_status): Ditto.
1967 * gpgsm.c (main): Ditto.
1969 2002-07-02 Werner Koch <wk@gnupg.org>
1971 * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
1974 * certpath.c (check_cert_policy): Don't use log_error to print a
1977 * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
1979 * call-agent.c (learn_cb): Print info message only for real imports.
1981 * import.c (gpgsm_import): Moved duplicated code to ...
1982 (check_and_store): new function. Added magic to import the entire
1983 chain. Print status only for real imports and moved printing code
1985 (print_imported_status): New.
1987 * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
1988 call in very verbose mode.
1990 * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
1991 with the server mode.
1993 2002-06-29 Werner Koch <wk@gnupg.org>
1995 * gpgsm.c: New option --auto-issuer-key-retrieve.
1996 * certpath.c (find_up): Try to retrieve an issuer key from an
1997 external source and from the ephemeral key DB.
1998 (find_up_store_certs_cb): New.
2000 * keydb.c (keydb_set_ephemeral): Does now return the old
2001 state. Call the backend only when required.
2003 * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
2004 (lookup_status_cb): Issue status only when CTRL is not NULL.
2005 (gpgsm_dirmngr_lookup): Document that CTRL is optional.
2007 * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
2009 2002-06-28 Werner Koch <wk@gnupg.org>
2011 * server.c (cmd_recipient): Add more reason codes.
2013 2002-06-27 Werner Koch <wk@gnupg.org>
2015 * certpath.c (gpgsm_basic_cert_check): Use
2016 --debug-no-path-validation to also bypass this basic check.
2018 * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
2020 * call-agent.c (start_agent): Create and pass the list of FD to
2021 keep in the child to assuan.
2022 * call-dirmngr.c (start_dirmngr): Ditto.
2024 2002-06-26 Werner Koch <wk@gnupg.org>
2026 * import.c (gpgsm_import): Print an STATUS_IMPORTED.
2028 * gpgsm.c: --debug-no-path-validation does not take an argument.
2030 2002-06-25 Werner Koch <wk@gnupg.org>
2032 * certdump.c (print_dn_part): Always print a leading slash,
2033 removed NEED_DELIM arg and changed caller.
2035 * export.c (gpgsm_export): Print LFs to FP and not stdout.
2036 (print_short_info): Ditto. Make use of gpgsm_print_name.
2038 * server.c (cmd_export): Use output-fd instead of data lines; this
2039 was actually the specified way.
2041 2002-06-24 Werner Koch <wk@gnupg.org>
2043 * gpgsm.c: Removed duped help entry for --list-keys.
2045 * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
2047 * certpath.c (gpgsm_validate_path): Use it here instead of the
2050 * certpath.c (check_cert_policy): Return No_Policy_Match if the
2051 policy file could not be opened.
2053 2002-06-20 Werner Koch <wk@gnupg.org>
2055 * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
2056 certificate with the required key usage.
2058 * gpgsm.c (main): Fixed a segv when using --outfile without an
2061 * keylist.c (print_capabilities): Also check for non-repudiation
2062 and data encipherment.
2063 * certlist.c (cert_usage_p): Test for signing and encryption was
2064 swapped. Add a case for certification usage, handle
2065 non-repudiation and data encipherment.
2066 (gpgsm_cert_use_cert_p): New.
2067 (gpgsm_add_to_certlist): Added a CTRL argument and changed all
2069 * certpath.c (gpgsm_validate_path): Use it here to print a status
2070 message. Added a CTRL argument and changed all callers to pass it.
2071 * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
2073 * verify.c (gpgsm_verify): Ditto.
2074 * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2076 2002-06-19 Werner Koch <wk@gnupg.org>
2078 * call-agent.c (learn_cb): Use log_info instead of log_error on
2081 * keydb.c (keydb_set_ephemeral): New.
2082 (keydb_store_cert): New are ephemeral, changed all callers.
2083 * keylist.c (list_external_cb): Store cert as ephemeral.
2084 * export.c (gpgsm_export): Kludge to export epehmeral certificates.
2086 * gpgsm.c (main): New command --list-external-keys.
2088 2002-06-17 Werner Koch <wk@gnupg.org>
2090 * certreqgen.c (read_parameters): Improved error handling.
2091 (gpgsm_genkey): Print error message.
2093 2002-06-13 Werner Koch <wk@gnupg.org>
2095 * gpgsm.c (main): New option --log-file.
2097 2002-06-12 Werner Koch <wk@gnupg.org>
2099 * call-dirmngr.c (lookup_status_cb): New.
2100 (gpgsm_dirmngr_lookup): Use the status CB. Add new arg CTRL and
2101 changed caller to pass it.
2103 * gpgsm.c (open_fwrite): New.
2104 (main): Allow --output for --verify.
2106 * sign.c (hash_and_copy_data): New.
2107 (gpgsm_sign): Implemented normal (non-detached) signatures.
2108 * gpgsm.c (main): Ditto.
2110 * certpath.c (gpgsm_validate_path): Special error handling for
2113 2002-06-10 Werner Koch <wk@gnupg.org>
2115 * server.c (get_status_string): Add STATUS_ERROR.
2117 * certpath.c (gpgsm_validate_path): Tweaked the error checking to
2118 return error codes in a more sensitive way.
2119 * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
2120 CA certificate and when the certificate has been revoked. Issue
2121 TRUST_FULLY even when the cert has expired. Append an error token
2122 to these status lines. Issue the new generic error status when a
2123 cert was not found and when leaving the function.
2125 2002-06-04 Werner Koch <wk@gnupg.org>
2127 * gpgsm.c (main): New command --list-sigs
2128 * keylist.c (list_cert_std): New. Use it whenever colon mode is
2130 (list_cert_chain): New.
2132 2002-05-31 Werner Koch <wk@gnupg.org>
2134 * gpgsm.c (main): Don't print the "go ahead" message for an
2137 2002-05-23 Werner Koch <wk@gnupg.org>
2139 * import.c (gpgsm_import): Add error messages.
2141 2002-05-21 Werner Koch <wk@gnupg.org>
2143 * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
2144 (list_external_keys): New.
2145 (gpgsm_list_keys): Dispatcher for above.
2146 * call-dirmngr.c (lookup_cb,pattern_from_strlist)
2147 (gpgsm_dirmngr_lookup): New.
2148 * server.c (option_handler): Handle new option --list-mode.
2149 (do_listkeys): Handle options and actually use the mode argument.
2150 (get_status_string): New code TRUNCATED.
2152 * import.c (gpgsm_import): Try to identify the type of input and
2153 handle certs-only messages.
2155 2002-05-14 Werner Koch <wk@gnupg.org>
2157 * gpgsm.c: New option --faked-system-time
2158 * sign.c (gpgsm_sign): And use it here.
2159 * certpath.c (gpgsm_validate_path): Ditto.
2161 2002-05-03 Werner Koch <wk@gnupg.org>
2163 * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
2165 * verify.c (gpgsm_verify): Tweaked usage of log_debug and
2166 log_error. Return EXPSIG status and add expiretime to VALIDSIG.
2168 2002-04-26 Werner Koch <wk@gnupg.org>
2170 * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
2173 * call-agent.c (start_agent): Be more silent without -v.
2174 * call-dirmngr.c (start_dirmngr): Ditto.
2176 2002-04-25 Werner Koch <wk@gnupg.org>
2178 * call-agent.c (start_agent): Make copies of old locales and check
2181 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2183 * call-agent.c (start_agent): Fix error handling logic so the
2184 locale is always correctly reset.
2186 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2188 * server.c (option_handler): Accept display, ttyname, ttytype,
2189 lc_ctype and lc_messages options.
2190 * gpgsm.c (main): Allocate memory for these options.
2191 * gpgsm.h (struct opt): Make corresponding members non-const.
2193 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
2195 * gpgsm.h (struct opt): New members display, ttyname, ttytype,
2196 lc_ctype, lc_messages.
2197 * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
2198 oTTYname, oTTYtype, oLCctype, oLCmessages.
2199 (opts): New entries for these options.
2200 (main): Handle these new options.
2201 * call-agent.c (start_agent): Set the various display and tty
2202 parameter after resetting.
2204 2002-04-18 Werner Koch <wk@gnupg.org>
2206 * certreqgen.c (gpgsm_genkey): Write status output on success.
2208 2002-04-15 Werner Koch <wk@gnupg.org>
2210 * gpgsm.c (main): Check ksba version.
2212 * certpath.c (find_up): New to use the authorithKeyIdentifier.
2213 Use it in all other functions to locate the signing cert..
2215 2002-04-11 Werner Koch <wk@gnupg.org>
2217 * certlist.c (cert_usable_p): New.
2218 (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
2219 (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
2220 (gpgsm_add_to_certlist): Check the key usage.
2221 * sign.c (gpgsm_sign): Ditto.
2222 * verify.c (gpgsm_verify): Print a message wehn an unsuitable
2223 certificate was used.
2224 * decrypt.c (gpgsm_decrypt): Ditto
2225 * keylist.c (print_capabilities): Determine values from the cert.
2227 2002-03-28 Werner Koch <wk@gnupg.org>
2229 * keylist.c (list_cert_colon): Fixed listing of crt record; the
2230 issuer is not at the right place. Print a chainingID.
2231 * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
2234 2002-03-21 Werner Koch <wk@gnupg.org>
2237 * gpgsm.c: Add command --export.
2238 * server.c (cmd_export): New.
2240 2002-03-13 Werner Koch <wk@gnupg.org>
2242 * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
2244 2002-03-12 Werner Koch <wk@gnupg.org>
2246 * certpath.c (check_cert_policy): Print the policy list.
2248 * verify.c (gpgsm_verify): Detect certs-only message.
2250 2002-03-11 Werner Koch <wk@gnupg.org>
2252 * import.c (gpgsm_import): Print a notice about imported certificates
2253 when in verbose mode.
2255 * gpgsm.c (main): Print INV_RECP status.
2256 * server.c (cmd_recipient): Ditto.
2258 * server.c (gpgsm_status2): New. Allows for a list of strings.
2259 (gpgsm_status): Divert to gpgsm_status2.
2261 * encrypt.c (gpgsm_encrypt): Don't use a default key when no
2262 recipients are given. Print a NO_RECP status.
2264 2002-03-06 Werner Koch <wk@gnupg.org>
2266 * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
2267 (do_listkeys): new. Add pattern parsing.
2269 * keylist.c (gpgsm_list_keys): Handle selection pattern.
2271 * gpgsm.c: New command --learn-card
2272 * call-agent.c (learn_cb,gpgsm_agent_learn): New.
2274 * gpgsm.c (main): Print error messages for non-implemented commands.
2276 * base64.c (base64_reader_cb): Use case insensitive compare of the
2277 Content-Type string to detect plain base-64.
2279 2002-03-05 Werner Koch <wk@gnupg.org>
2281 * gpgsm.c, gpgsm.h: Add local_user.
2282 * sign.c (gpgsm_get_default_cert): New.
2283 (get_default_signer): Use the new function if local_user is not
2284 set otherwise used that value.
2285 * encrypt.c (get_default_recipient): Removed.
2286 (gpgsm_encrypt): Use gpgsm_get_default_cert.
2288 * verify.c (gpgsm_verify): Better error text for a bad signature
2289 found by comparing the hashs.
2291 2002-02-27 Werner Koch <wk@gnupg.org>
2293 * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2296 2002-02-25 Werner Koch <wk@gnupg.org>
2298 * server.c (option_handler): Allow to use -2 for "send all certs
2299 except the root cert".
2300 * sign.c (add_certificate_list): Implement it here.
2301 * certpath.c (gpgsm_is_root_cert): New.
2303 2002-02-19 Werner Koch <wk@gnupg.org>
2305 * certpath.c (check_cert_policy): New.
2306 (gpgsm_validate_path): And call it from here.
2307 * gpgsm.c (main): New options --policy-file,
2308 --disable-policy-checks and --enable-policy-checks.
2309 * gpgsm.h (opt): Added policy_file, no_policy_checks.
2311 2002-02-18 Werner Koch <wk@gnupg.org>
2313 * certpath.c (gpgsm_validate_path): Ask the agent to add the
2314 certificate into the trusted list.
2315 * call-agent.c (gpgsm_agent_marktrusted): New.
2317 2002-02-07 Werner Koch <wk@gnupg.org>
2319 * certlist.c (gpgsm_add_to_certlist): Check that the specified
2320 name identifies a certificate unambiguously.
2321 (gpgsm_find_cert): Ditto.
2323 * server.c (cmd_listkeys): Check that the data stream is available.
2324 (cmd_listsecretkeys): Ditto.
2326 (cmd_sign): Fix ambiguousity in option recognition.
2328 * gpgsm.c (main): Enable --logger-fd.
2330 * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2333 * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2336 * keylist.c (list_cert_colon): Filter out control characters.
2338 2002-02-06 Werner Koch <wk@gnupg.org>
2340 * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
2342 * server.c (reset_notify): Close input and output FDs.
2343 (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
2344 (cmd_genkey): Close the FDs and release the recipient list even in
2347 2002-02-01 Marcus Brinkmann <marcus@g10code.de>
2349 * sign.c (gpgsm_sign): Do not release certificate twice.
2351 2002-01-29 Werner Koch <wk@gnupg.org>
2353 * call-agent.c (gpgsm_agent_havekey): New.
2354 * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
2355 when we know that the secret key is available.
2356 (gpgsm_list_keys): New arg MODE, check whether a secret key is
2357 available. Changed all callers.
2358 * gpgsm.c (main): New command --list-secret-keys.
2359 * server.c (cmd_listsecretkeys): New.
2360 (cmd_listkeys): Return secret keys with "crs" record.
2362 2002-01-28 Werner Koch <wk@gnupg.org>
2364 * certreqgen.c (create_request): Store the email address in the req.
2366 2002-01-25 Werner Koch <wk@gnupg.org>
2368 * gpgsm.c (main): Disable core dumps.
2370 * sign.c (add_certificate_list): New.
2371 (gpgsm_sign): Add the certificates to the CMS object.
2372 * certpath.c (gpgsm_walk_cert_chain): New.
2373 * gpgsm.h (server_control_s): Add included_certs.
2374 * gpgsm.c: Add option --include-certs.
2375 (gpgsm_init_default_ctrl): New.
2377 * server.c (gpgsm_server): Ditto.
2378 (option_handler): Support --include-certs.
2380 2002-01-23 Werner Koch <wk@gnupg.org>
2382 * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
2383 * certdump.c (gpgsm_dump_string): New.
2384 (print_dn): Replaced by above.
2386 2002-01-22 Werner Koch <wk@gnupg.org>
2388 * certpath.c (unknown_criticals): New.
2390 (gpgsm_validate_path): Check validity, CA attribute, path length
2391 and unknown critical extensions.
2393 2002-01-21 Werner Koch <wk@gnupg.org>
2395 * gpgsm.c: Add option --enable-crl-checks.
2397 * call-agent.c (start_agent): Implemented socket based access.
2398 * call-dirmngr.c (start_dirmngr): Ditto.
2400 2002-01-20 Werner Koch <wk@gnupg.org>
2402 * server.c (option_handler): New.
2403 (gpgsm_server): Register it with assuan.
2405 2002-01-19 Werner Koch <wk@gnupg.org>
2407 * server.c (gpgsm_server): Use assuan_deinit_server and setup
2408 assuan logging if enabled.
2409 * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2412 * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2414 2002-01-15 Werner Koch <wk@gnupg.org>
2416 * import.c (gpgsm_import): Just do a basic cert check before
2418 * certpath.c (gpgsm_basic_cert_check): New.
2420 * keydb.c (keydb_store_cert): New.
2421 * import.c (store_cert): Removed and change all caller to use
2423 * verify.c (store_cert): Ditto.
2425 * certlist.c (gpgsm_add_to_certlist): Validate the path
2427 * certpath.c (gpgsm_validate_path): Check the trust list.
2428 * call-agent.c (gpgsm_agent_istrusted): New.
2430 2002-01-14 Werner Koch <wk@gnupg.org>
2432 * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2433 * certlist.c (gpgsm_find_cert): New.
2435 2002-01-13 Werner Koch <wk@gnupg.org>
2437 * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2440 2002-01-11 Werner Koch <wk@gnupg.org>
2442 * call-dirmngr.c: New.
2443 * certpath.c (gpgsm_validate_path): Check the CRL here.
2444 * fingerprint.c (gpgsm_get_certid): New.
2445 * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2447 2002-01-10 Werner Koch <wk@gnupg.org>
2449 * base64.c (gpgsm_create_writer): Allow to set the object name
2451 2002-01-08 Werner Koch <wk@gnupg.org>
2453 * keydb.c (spacep): Removed because it is now in util.c
2455 * server.c (cmd_genkey): New.
2456 * certreqgen.c: New. The parameter handling code has been taken
2457 from gnupg/g10/keygen.c version 1.0.6.
2458 * call-agent.c (gpgsm_agent_genkey): New.
2460 2002-01-02 Werner Koch <wk@gnupg.org>
2462 * server.c (rc_to_assuan_status): Removed and changed all callers
2463 to use map_to_assuan_status.
2465 2001-12-20 Werner Koch <wk@gnupg.org>
2467 * verify.c (gpgsm_verify): Implemented non-detached signature
2468 verification. Add OUT_FP arg, initialize a writer and changed all
2470 * server.c (cmd_verify): Pass an out_fp if one has been set.
2472 * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2474 * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2476 (print_time): Renamed to gpgsm_dump_time, made global.
2477 (gpgsm_dump_serial): Take a real S-Expression as argument and
2478 print the first item.
2479 * keylist.c (list_cert_colon): Ditto.
2480 * keydb.c (keydb_search_issuer_sn): Ditto.
2481 * decrypt.c (print_integer_sexp): Removed and made callers
2482 use gpgsm_dump_serial.
2483 * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2485 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2487 * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2489 2001-12-18 Werner Koch <wk@gnupg.org>
2491 * verify.c (print_integer_sexp): Renamed from print_integer and
2492 print the serial number according to the S-Exp rules.
2493 * decrypt.c (print_integer_sexp): Ditto.
2495 2001-12-17 Werner Koch <wk@gnupg.org>
2497 * keylist.c (list_cert_colon): Changed for new return value of
2499 * keydb.c (keydb_search_issuer_sn): Ditto.
2500 * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2501 returingin functions.
2502 * fingerprint.c (gpgsm_get_keygrip): Ditto.
2503 * encrypt.c (encrypt_dek): Ditto
2504 * certcheck.c (gpgsm_check_cms_signature): Ditto
2505 * decrypt.c (prepare_decryption): Ditto.
2506 * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2507 use KsbaSexp type and calculate the length.
2509 * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2511 * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2513 * fingerprint.c (gpgsm_get_keygrip): Use the new
2514 gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2515 therefore the grip values changed.
2517 2001-12-15 Werner Koch <wk@gnupg.org>
2519 * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2521 (gpgsm_create_cms_signature): Removed the commented fake key
2522 code. This makes the function pretty simple.
2524 * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2526 * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2527 * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2529 2001-12-14 Werner Koch <wk@gnupg.org>
2531 * keylist.c (list_cert_colon): Kludge to show an email address
2532 encoded in the subject's DN.
2534 * verify.c (gpgsm_verify): Add hash debug helpers
2535 * sign.c (gpgsm_sign): Ditto.
2537 * base64.c (base64_reader_cb): Reset the linelen when we need to
2538 skip the line and adjusted test; I somehow forgot about DeMorgan.
2540 * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify)
2541 (cmd_import): Close the FDs on success.
2542 (close_message_fd): New.
2543 (input_notify): Setting autodetect_encoding to 0 after initializing
2544 it to 0 is pretty pointless. Easy to fix.
2546 * gpgsm.c (main): New option --debug-wait n, so that it is
2547 possible to attach gdb when used in server mode.
2549 * sign.c (get_default_signer): Use keydb_classify_name here.
2551 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2553 * call-agent.c (LINELENGTH): Removed.
2554 (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2555 (gpgsm_agent_pkdecrypt): Likewise.
2557 2001-12-13 Werner Koch <wk@gnupg.org>
2559 * keylist.c (list_cert_colon): Print alternative names of subject
2560 and a few other values.
2562 2001-12-12 Werner Koch <wk@gnupg.org>
2564 * gpgsm.c (main): New options --assume-{armor,base64,binary}.
2565 * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2567 2001-12-04 Werner Koch <wk@gnupg.org>
2569 * call-agent.c (read_from_agent): Check for inquire responses.
2570 (request_reply): Handle them using a new callback arg, changed all
2572 (gpgsm_agent_pkdecrypt): New.
2574 2001-11-27 Werner Koch <wk@gnupg.org>
2576 * base64.c: New. Changed all other functions to use this instead
2577 of direct creation of ksba_reader/writer.
2578 * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2580 2001-11-26 Werner Koch <wk@gnupg.org>
2582 * gpgsm.c: New option --agent-program
2583 * call-agent.c (start_agent): Allow to override the default path
2586 * keydb.c (keydb_add_resource): Create keybox
2588 * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2590 * server.c (rc_to_assuan_status): New. Use it for all commands.
2593 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
2594 2007, 2008, 2009 Free Software Foundation, Inc.
2596 This file is free software; as a special exception the author gives
2597 unlimited permission to copy and/or distribute it, with or without
2598 modifications, as long as this notice is preserved.
2600 This file is distributed in the hope that it will be useful, but
2601 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2602 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.