1 2008-06-13 Marcus Brinkmann <marcus@ulysses.g10code.com>
3 * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
5 2008-06-12 Marcus Brinkmann <marcus@g10code.de>
7 * gpgsm.h (struct keyserver_spec): New struct.
8 (opt): Add member keyserver.
9 * gpgsm.c (keyserver_list_free, parse_keyserver_line): New functions.
10 (main): Implement --keyserver option.
11 * call-dirmngr.c (prepare_dirmngr): Send LDAPSERVER commands.
13 2008-05-20 Werner Koch <wk@g10code.com>
15 * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
16 the export function. Reported by Marc Mutz.
18 2008-05-06 Werner Koch <wk@g10code.com>
20 * keylist.c (list_external_keys): Ignore NOT FOUND error code.
23 2008-04-23 Werner Koch <wk@g10code.com>
25 * certchain.c (find_up): Make correct C89 code. Declare variable
26 at the top of the block. Reported by Alain Guibert.
28 2008-04-09 Werner Koch <wk@g10code.com>
30 * verify.c (gpgsm_verify): Print the message hash values on error.
32 2008-03-31 Werner Koch <wk@g10code.com>
34 * call-dirmngr.c (start_dirmngr): Use log_info instead of
35 log_error when falling back to start dirmngr.
37 2008-03-20 Werner Koch <wk@g10code.com>
39 * certlist.c (gpgsm_add_to_certlist): Always save the first
40 subject and issuer. Initialize issuer with issuer and not with
42 (same_subject_issuer): Set issuer2 to issuer and not to subject.
44 2008-03-17 Werner Koch <wk@g10code.com>
46 * certdump.c (my_funopen_hook_size_t): New.
47 (format_name_writer): Use it.
49 2008-03-13 Werner Koch <wk@g10code.com>
51 * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
53 (gpgsm_format_keydesc): Remove superfluous test. Add expire date
56 2008-02-18 Werner Koch <wk@g10code.com>
58 * certchain.c (gpgsm_is_root_cert): Factor code out to ...
59 (is_root_cert): New. Extend test for self-issued certificates
61 (do_validate_chain, gpgsm_basic_cert_check)
62 (gpgsm_walk_cert_chain): Use it here.
64 * gpgsm.c: Add option --no-common-certs-import.
66 * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
67 (check_cert_policy): Be more silent with --quiet.
69 * gpgsm.c: Add option --disable-dirmngr.
70 * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
71 * call-dirmngr.c (start_dirmngr): Implement option.
73 2008-02-14 Werner Koch <wk@g10code.com>
75 * server.c (option_handler): Add option allow-pinentry-notify.
76 (gpgsm_proxy_pinentry_notify): New.
77 * call-agent.c (default_inq_cb): New.
78 (gpgsm_agent_pksign, gpgsm_scd_pksign, gpgsm_agent_readkey)
79 (gpgsm_agent_istrusted, gpgsm_agent_marktrusted)
80 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation): Call it.
81 (struct cipher_parm_s, struct genkey_parm_s): Add field CTRL.
82 (inq_ciphertext_cb): Test keyword and fallback to default_inq_cb.
83 (inq_genkey_parms): Ditto.
84 (start_agent): Tell agent to send us the pinentry notifications.
86 2008-02-13 Werner Koch <wk@g10code.com>
88 * call-dirmngr.c (gpgsm_dirmngr_lookup): Add arg CACHE_ONLY.
89 * keylist.c (list_external_keys): Pass false for new arg.
90 * certchain.c (find_up_dirmngr): New.
91 (find_up): Also try to read from the dirmngr cache.
92 (find_up, find_up_external, gpgsm_walk_cert_chain)
93 (gpgsm_basic_cert_check, allowed_ca): Add arg CTRL and changed all
95 * call-agent.c (struct learn_parm_s): Add field CTRL.
96 (gpgsm_agent_learn): Set it.
98 2008-02-11 Werner Koch <wk@g10code.com>
100 * server.c (cmd_getinfo): New.
101 (gpgsm_server): Register GETINFO.
103 2008-01-29 Marcus Brinkmann <marcus@g10code.de>
105 * keylist.c (list_internal_keys): New variable lastcert. Use it
106 to suppress duplicates which immediately follow each other.
108 2008-01-27 Werner Koch <wk@g10code.com>
110 * import.c (popen_protect_tool): Set bit 7 in the flags for
111 gnupg_spawn_process so that under W32 no window appears.
112 * export.c (popen_protect_tool): Ditto.
114 2007-12-13 Werner Koch <wk@g10code.com>
116 * gpgsm.c (main): Add option --extra-digest-algo.
117 * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
118 * verify.c (gpgsm_verify): Use it. Use the hash algorithm from
121 2007-12-11 Werner Koch <wk@g10code.com>
123 * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
125 * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
126 (cmd_recipient): Start audit session.
128 * gpgsm.c (main): Revamp creation of the audit log.
130 * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
131 * call-agent.c (start_agent): Record an audit event.
132 * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
134 (prepare_dirmngr): New helper for start_dirmngr.
136 * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
138 2007-12-03 Werner Koch <wk@g10code.com>
140 * gpgsm.c (main): Call gnupg_reopen_std.
142 h2007-11-22 Werner Koch <wk@g10code.com>
144 * server.c (cmd_getauditlog): New.
145 (register_commands): Register GETAUDITLOG.
147 2007-11-19 Werner Koch <wk@g10code.com>
149 * server.c (cmd_recipient, cmd_signer): Add error reason 11.
151 * gpgsm.c (main): Print a warning if --audit-log is used.
153 2007-11-15 Werner Koch <wk@g10code.com>
155 * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
156 * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
157 * gpgsm.c (main): New option --xauthority.
158 * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
159 * server.c (option_handler): Ad the new options.
161 2007-11-07 Werner Koch <wk@g10code.com>
163 * gpgsm.c (main): New option --audit-log.
164 * server.c (option_handler): New option enable-audit-log.
165 (start_audit_session): New.
166 (cmd_verify): Create audit context.
167 (gpgsm_server): Release the context.
169 * gpgsm.h (struct server_control_s): Add member AUDIT, include
171 * certdump.c (gpgsm_format_sn_issuer): New.
172 * verify.c (hash_data): Return an error code.
173 (gpgsm_verify): Add calls to audit_log.
175 * gpgsm.c (get_status_string): Remove.
176 * gpgsm.h: Include status.h instead of errors.h.
178 2007-10-19 Werner Koch <wk@g10code.com>
180 * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
181 (gpgsm_not_qualified_warning): Ditto.
182 * certdump.c (gpgsm_format_keydesc): Ditto.
184 2007-09-14 Werner Koch <wk@g10code.com>
186 * gpgsm.c (build_lib_list): New.
187 (my_strusage): Print lib info.
189 2007-08-24 Werner Koch <wk@g10code.com>
191 * Makefile.am (common_libs): Swap libkeybox and jnlib.
193 2007-08-23 Werner Koch <wk@g10code.com>
195 * certlist.c (gpgsm_certs_identical_p): New.
196 (gpgsm_add_to_certlist): Ignore duplicate certificates in
197 ambigious name detection.
198 (gpgsm_find_cert): Ditto.
199 * export.c (gpgsm_p12_export): Ditto.
201 2007-08-22 Werner Koch <wk@g10code.com>
203 * certreqgen.c (create_request): Replace open coding by bin2hex.
205 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
207 2007-08-21 Werner Koch <wk@g10code.com>
209 * import.c (parse_p12): Use gnupg_tmpfile.
210 * export.c (export_p12): Ditto.
212 2007-08-20 Werner Koch <wk@g10code.com>
214 * certreqgen.c (read_parameters): Change FP to an estream_t.
215 (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
216 * server.c (cmd_genkey): Adjust for that.
217 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
218 instead of a temporary file.
220 2007-08-14 Werner Koch <wk@g10code.com>
222 * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name. change
223 the way infostr is xstrdupped.
225 * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
228 2007-08-13 Werner Koch <wk@g10code.com>
230 * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
231 message depend on that.
232 (main): Add avriable RECP_REQUIRED, set ift for encryption
233 commands and pass it to do_add_recipient.
234 (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
236 2007-08-09 Werner Koch <wk@g10code.com>
238 * gpgsm.c (main) [W32]: Enable CRL check by default.
239 (main): Update the default control structure after reading the
241 (gpgsm_parse_validation_model, parse_validation_model): New.
242 (main): New option --validation-model.
243 * certchain.c (gpgsm_validate_chain): Implement this option.
244 * server.c (option_handler): Ditto.
246 * certchain.c (is_cert_still_valid): Reformatted. Add arg
247 FORCE_OCSP. Changed callers to set this flag when using the chain
250 2007-08-08 Werner Koch <wk@g10code.com>
252 * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
253 which prefixed the output with a 3A and cut it off at a 00.
255 * keylist.c (list_cert_raw): Print the certificate ID first and
256 rename "Serial number" to "S/N".
257 (list_cert_std): Ditto.
259 2007-08-07 Werner Koch <wk@g10code.com>
261 * gpgsm.c (main): Allow a string for --faked-system-time.
263 2007-08-06 Werner Koch <wk@g10code.com>
265 Implementation of the chain model.
267 * gpgsm.h (struct rootca_flags_s): Define new members VALID and
269 * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
270 (istrusted_status_cb): Set CHAIN_MODEL.
271 * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
273 (gpgsm_validate_chain): Factor some code out to ...
274 (check_validity_period, ask_marktrusted): .. new.
275 (check_validity_cm_basic, check_validity_cm_main): New.
276 (do_validate_chain): New with all code from gpgsm_validate_chain.
277 New arg ROOTCA_FLAGS.
278 (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
279 model. Add RETFLAGS arg and changed all callers to pass NULL. Add
280 CHECKTIME arg and changed all callers to pass a nil value.
281 (has_validity_model_chain): New.
282 * verify.c (gpgsm_verify): Check for chain model and return as
283 part of the trust status.
285 * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
286 (VALIDATE_FLAG_NO_DIRMNGR): New.
287 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
289 2007-08-03 Werner Koch <wk@g10code.com>
291 * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
294 * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
296 * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
298 2007-08-02 Werner Koch <wk@g10code.com>
300 * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
302 2007-07-17 Werner Koch <wk@g10code.com>
304 * gpgsm.c (main): Implement --default-key.
305 (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
307 2007-07-16 Werner Koch <wk@g10code.com>
309 * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
310 newer assuan versions.
312 2007-07-12 Werner Koch <wk@g10code.com>
314 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
315 when passing an int value.
316 * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
317 (cmd_export, cmd_message, cmd_genkey): Translate file descriptors.
319 2007-07-05 Werner Koch <wk@g10code.com>
321 * Makefile.am (common_libs): Changed order of libs.
323 2007-07-04 Werner Koch <wk@g10code.com>
325 * certchain.c (check_cert_policy): Remove extra checks for
326 GPG_ERR_NO_VALUE. They are not needed since libksba 1.0.1.
327 * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
328 * certlist.c (cert_usage_p, cert_usage_p): Ditto.
330 2007-06-26 Werner Koch <wk@g10code.com>
332 * gpgsm.c (main): Call gnupg_rl_initialize.
333 * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
335 2007-06-25 Werner Koch <wk@g10code.com>
337 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
338 add new arg FOR_WRITE. Change callers to pass new arg.
340 2007-06-24 Werner Koch <wk@g10code.com>
342 * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
345 2007-06-21 Werner Koch <wk@g10code.com>
347 * certreqgen-ui.c: New.
348 * gpgsm.c (main): Let --gen-key call it.
349 * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
352 * gpgsm.h (ctrl_t): Remove. It is now declared in ../common/util.h.
354 * call-agent.c (start_agent): Factored almost all code out to
357 2007-06-20 Werner Koch <wk@g10code.com>
359 * call-agent.c (start_agent) [W32]: Start the agent on the fly.
361 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
363 * gpgsm.c (main): Percent escape output of --gpgconf-list.
365 2007-06-14 Werner Koch <wk@g10code.com>
367 * call-agent.c (start_agent): Use gnupg_module_name.
368 * call-dirmngr.c (start_dirmngr): Ditto.
369 * export.c (export_p12): Ditto.
370 * import.c (parse_p12): Ditto.
371 * gpgsm.c (run_protect_tool): Ditto.
373 2007-06-12 Werner Koch <wk@g10code.com>
375 * gpgsm.c (main): Replace some calls by init_common_subsystems.
376 (main): Use gnupg_datadir.
377 * qualified.c (read_list): Use gnupg-datadir.
379 2007-06-11 Werner Koch <wk@g10code.com>
381 * Makefile.am (common_libs): Use libcommaonstd macr.
383 * gpgsm.c (main) [W32]: Call pth_init.
385 2007-06-06 Werner Koch <wk@g10code.com>
387 * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
389 * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
391 (format_name_writer): Define only if funopen et al is available.
393 * gpgsm.c (i18n_init): Remove.
395 2007-05-29 Werner Koch <wk@g10code.com>
397 * export.c (gpgsm_p12_export): Print passphrase encoding info only
400 2007-05-18 Marcus Brinkmann <marcus@g10code.de>
402 * qualified.c (gpgsm_qualified_consent,
403 gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
404 * certdump.c (gpgsm_format_keydesc): Likewise.
406 2007-05-07 Werner Koch <wk@g10code.com>
408 * certcheck.c (MY_GCRY_PK_ECDSA): New.
410 2007-04-20 Werner Koch <wk@g10code.com>
412 * gpgsm.c (main): Parameterize failed versions check messages.
414 2007-04-19 Werner Koch <wk@g10code.com>
416 * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2
418 (get_dsa_qbits): New.
419 (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
422 2007-04-18 Werner Koch <wk@g10code.com>
424 * certcheck.c (do_encode_md): Support 160 bit ECDSA.
426 2007-04-13 Werner Koch <wk@g10code.com>
428 * call-agent.c (start_agent): Don't use log_error when using the
429 fallback hack to start the agent. This is bug 782.
431 2007-03-20 Werner Koch <wk@g10code.com>
433 * fingerprint.c (gpgsm_get_fingerprint): Add caching.
434 (gpgsm_get_fingerprint_string): Use bin2hexcolon().
435 (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
436 as much memory as required.
437 (gpgsm_get_keygrip_hexstring): Use bin2hex.
439 * certchain.c (gpgsm_validate_chain): Keep track of the
440 certificate chain and reset the ephemeral flags.
441 * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
442 Changed caller to use a mask of ~0. Return a proper error code if
443 the certificate is not available.
445 * gpgsm.c: Add option --p12-charset.
446 * gpgsm.h (struct opt): Add p12_charset.
447 * export.c (popen_protect_tool): Use new option.
449 2007-03-19 Werner Koch <wk@g10code.com>
451 Changes to let export and key listing use estream to help systems
454 * keylist.c: Use estream in place of stdio functions.
455 * gpgsm.c (open_es_fwrite): New.
456 (main): Use it for the list commands.
457 * server.c (data_line_cookie_functions): New.
458 (data_line_cookie_write, data_line_cookie_close): New.
459 (do_listkeys): Use estream.
461 * certdump.c (gpgsm_print_serial): Changed to use estream.
462 (gpgsm_print_time): Ditto.
463 (pretty_es_print_sexp): New.
464 (gpgsm_es_print_name): New.
465 (print_dn_part): New arg STREAM. Changed all callers.
466 (print_dn_parts): Ditto.
467 * certchain.c (gpgsm_validate_chain): Changed FP to type
469 (do_list, unknown_criticals, allowed_ca, check_cert_policy)
470 (is_cert_still_valid): Ditto.
472 * export.c (gpgsm_export): New arg STREAM.
473 (do_putc, do_fputs): New.
474 (print_short_info): Allow printing to optional STREAM.
475 * server.c (cmd_export): Use stream.
476 * base64.c (do_putc, do_fputs): New.
477 (base64_writer_cb, base64_finish_write): Let them cope with an
478 alternate output function.
479 (plain_writer_cb): New.
480 (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
481 binary output to an estream. Changed call callers.
483 2007-01-31 Werner Koch <wk@g10code.com>
485 * gpgsm.c (main): Let --gen-key print a more informative error
488 2007-01-25 Werner Koch <wk@g10code.com>
490 * Makefile.am (gpgsm_LDADD): Add LIBICONV. Noted by Billy Halsey.
492 2007-01-05 Werner Koch <wk@g10code.com>
494 * certchain.c (unknown_criticals): Add subjectAltName.
496 2006-12-21 Werner Koch <wk@g10code.com>
498 * gpgsm.c: Comment mtrace feature.
500 2006-12-21 Marcus Brinkmann <marcus@g10code.de>
502 * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
504 * encrypt.c (encrypt_dek): Release S_CIPH.
506 2006-12-20 Marcus Brinkmann <marcus@g10code.de>
508 * server.c (gpgsm_server): Release CTRL->server_local.
510 * base64.c: Add new members READER and WRITER in union U2.
511 (gpgsm_create_reader): Initialise CTX->u2.reader.
512 (gpgsm_destroy_reader): Invoke ksba_reader_release. Return early
514 (gpgsm_create_writer): Initialise CTX->u2.writer.
515 (gpgsm_destroy_writer): Invoke ksba_writer_release. Return early
518 2006-12-18 Marcus Brinkmann <marcus@g10code.de>
520 * fingerprint.c (gpgsm_get_fingerprint): Close MD.
522 2006-11-24 Werner Koch <wk@g10code.com>
524 * certdump.c (parse_dn_part): Take '#' as a special character only
525 at the beginning of a string.
527 2006-11-21 Werner Koch <wk@g10code.com>
529 * certdump.c (my_funopen_hook_ret_t): New.
530 (format_name_writer): Use it for the return value.
532 2006-11-14 Werner Koch <wk@g10code.com>
534 * server.c (skip_options): Skip leading spaces.
535 (has_option): Honor "--".
536 (cmd_export): Add option --data to do an inline export. Skip all
539 * certdump.c (gpgsm_fpr_and_name_for_status): New.
540 * verify.c (gpgsm_verify): Use it to print correct status messages.
542 2006-11-11 Werner Koch <wk@g10code.com>
544 * server.c (skip_options): New.
546 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
548 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
550 2006-10-23 Werner Koch <wk@g10code.com>
552 * gpgsm.c (main): Remap common cipher algo names to their OIDs.
553 (main): New command --gpgconf-test.
555 2006-10-20 Werner Koch <wk@g10code.com>
557 * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
559 2006-10-18 Werner Koch <wk@g10code.com>
561 * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
562 testing for GPG_ERR_NO_DATA.
563 * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
564 * certchain.c (check_cert_policy): Ditto.
566 * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
567 chain length available.
569 2006-10-17 Werner Koch <wk@g10code.com>
571 * gpgsm.c: No need for pth.h.
572 (main): or to init it. It used to be hack for W32.
574 * sign.c (gpgsm_get_default_cert): Changed to return only
575 certificates usable for signing.
577 2006-10-16 Werner Koch <wk@g10code.com>
579 * certchain.c (already_asked_marktrusted)
580 (set_already_asked_marktrusted): New.
581 (gpgsm_validate_chain) <not trusted>: Keep track of certificates
582 we already asked for.
584 2006-10-11 Werner Koch <wk@g10code.com>
586 * certreqgen.c (proc_parameters, create_request): Allow for
587 creation directly from a card.
588 * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
589 (gpgsm_scd_pksign): New.
591 2006-10-06 Werner Koch <wk@g10code.com>
593 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
594 (gpgsm_LDADD): Ditto.
596 2006-10-05 Werner Koch <wk@g10code.com>
598 * certcheck.c (do_encode_md): Check that the has algo is valid.
600 2006-10-02 Marcus Brinkmann <marcus@g10code.de>
602 * server.c (register_commands): New commands DUMPKEYS and
604 (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
605 (option_handler): Support with-key-data option.
607 2006-09-26 Werner Koch <wk@g10code.com>
609 * certchain.c (gpgsm_validate_chain): More changes for the relax
610 feature. Use certificate reference counting instead of the old
611 explicit tests. Added a missing free.
613 2006-09-25 Werner Koch <wk@g10code.com>
615 * gpgsm.h (struct rootca_flags_s): New.
616 * call-agent.c (istrusted_status_cb): New.
617 (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
618 * keylist.c (list_cert_colon): Use dummy for new arg.
619 * certchain.c (gpgsm_validate_chain): Make use of the relax flag
620 for root certificates.
621 (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
623 2006-09-20 Werner Koch <wk@g10code.com>
625 * gpgsm.c: Add alias command --dump-cert.
627 * Makefile.am: Changes to allow parallel make runs.
629 2006-09-18 Werner Koch <wk@g10code.com>
631 * gpgsm.c (main): Use this to import standard certificates.
632 * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
634 2006-09-14 Werner Koch <wk@g10code.com>
636 Replaced all call gpg_error_from_errno(errno) by
637 gpg_error_from_syserror().
639 2006-09-13 Werner Koch <wk@g10code.com>
641 * keylist.c (list_internal_keys): Print marker line to FP and not
644 * gpgsm.c (main): All list key list commands now make ose of
645 --output. Cleaned up calls to list modes. New command
646 --dump-chain. Renamed --list-sigs to --list-chain and added an
647 alias for the old one.
649 * server.c (cmd_message): Changed to use assuan_command_parse_fd.
650 (option_handler): New option list-to-output.
651 (do_listkeys): Use it.
653 2006-09-06 Werner Koch <wk@g10code.com>
655 * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
657 (CTRL): Removed and changed everywhere to ctrl_t.
660 Replaced all Assuan error codes by libgpg-error codes. Removed
661 all map_to_assuan_status and map_assuan_err.
663 * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
664 switch to gpg-error codes.
665 * server.c (set_error): Adjusted.
667 2006-08-29 Werner Koch <wk@g10code.com>
669 * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
670 complete S-expressions as implemented by the current gpg-agent.
672 * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
675 2006-07-03 Werner Koch <wk@g10code.com>
677 * certreqgen.c (proc_parameters): Print the component label of a
680 2006-06-26 Werner Koch <wk@g10code.com>
682 * certdump.c (gpgsm_cert_log_name): New.
683 * certchain.c (is_cert_still_valid): Log the name of the certificate.
685 2006-06-20 Werner Koch <wk@g10code.com>
687 * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
688 option --include-certs.
690 * keylist.c (list_cert_raw): Print the certid.
692 2006-05-23 Werner Koch <wk@g10code.com>
694 * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
696 * Makefile.am (gpgsm_LDADD): Include ZLIBS.
698 2006-05-19 Marcus Brinkmann <marcus@g10code.de>
700 * keydb.c (keydb_insert_cert): Do not lock here, but only check if
702 (keydb_store_cert): Lock here.
704 * keydb.h (keydb_delete): Accept new argument UNLOCK.
705 * keydb.c (keydb_delete): Likewise. Only unlock if this is set.
706 * delete.c (delete_one): Add new argument to invocation of
709 2006-05-15 Werner Koch <wk@g10code.com>
711 * keylist.c (print_names_raw): Sanitize URI.
713 2006-03-21 Werner Koch <wk@g10code.com>
715 * certchain.c (get_regtp_ca_info): New.
716 (allowed_ca): Use it.
718 2006-03-20 Werner Koch <wk@g10code.com>
720 * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
722 2006-02-17 Werner Koch <wk@g10code.com>
724 * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
726 2005-11-23 Werner Koch <wk@g10code.com>
728 * gpgsm.h: New member QUALSIG_APPROVAL.
729 * sign.c (gpgsm_sign): Print a warning if a certificate is not
731 * qualified.c (gpgsm_qualified_consent): Include a note that this
732 is not approved software.
733 (gpgsm_not_qualified_warning): New.
734 * gpgsm.c (main): Prepared to print a note whether the software
737 2005-11-13 Werner Koch <wk@g10code.com>
739 * call-agent.c (gpgsm_agent_get_confirmation): New.
741 * keylist.c (list_cert_std): Print qualified status.
743 * certchain.c (gpgsm_validate_chain): Check for qualified
746 * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
747 no-chain-validation is used.
749 2005-11-11 Werner Koch <wk@g10code.com>
751 * keylist.c (print_capabilities): Print is_qualified status.
753 2005-10-28 Werner Koch <wk@g10code.com>
755 * certdump.c (pretty_print_sexp): New.
756 (gpgsm_print_name2): Use it here. This allows proper printing of
757 DNS names as used with server certificates.
759 2005-10-10 Werner Koch <wk@g10code.com>
761 * keylist.c: Add pkaAdress OID as reference.
763 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
765 * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
766 ../common/libcommon.a.
768 2005-09-13 Werner Koch <wk@g10code.com>
770 * verify.c (gpgsm_verify): Print a note if the unknown algorithm
772 * sign.c (gpgsm_sign): Ditto.
773 * certcheck.c (gpgsm_check_cert_sig): Ditto.
775 2005-09-08 Werner Koch <wk@g10code.com>
777 * export.c (popen_protect_tool): Add option --have-cert. We
778 probably lost this option with 1.9.14 due to restructuring of
781 2005-07-21 Werner Koch <wk@g10code.com>
783 * gpgsm.c (main): New options --no-log-file and --debug-none.
785 * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
786 to allow enumeration. Changed all callers.
787 (create_request): Process DNS and URI parameters.
789 2005-07-20 Werner Koch <wk@g10code.com>
791 * keylist.c (email_kludge): Reworked.
793 * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
795 * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
797 2005-07-19 Werner Koch <wk@g10code.com>
799 * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
800 Bug accidently introduced while solving the #$%^& gcc
801 signed/unsigned char* warnings.
803 2005-06-15 Werner Koch <wk@g10code.com>
805 * delete.c (delete_one): Changed FPR to unsigned.
806 * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
807 (gpgsm_encrypt): Ditto.
808 * sign.c (gpgsm_sign): Made SIGVAL unsigned.
809 * base64.c (base64_reader_cb): Need to use some casting to get
810 around signed/unsigned char* warnings.
811 * certcheck.c (gpgsm_check_cms_signature): Ditto.
812 (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
813 (do_encode_md): Made NFRAME a size_t.
814 * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
815 (gpgsm_dump_serial): Ditto.
816 (gpgsm_format_serial): Ditto.
817 (gpgsm_dump_string): Ditto.
818 (gpgsm_dump_cert): Ditto.
819 (parse_dn_part): Ditto.
820 (gpgsm_print_name2): Ditto.
821 * keylist.c (email_kludge): Ditto.
822 * certreqgen.c (proc_parameters, create_request): Ditto.
823 (create_request): Ditto.
824 * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
825 (struct cipher_parm_s): Made CIPHERTEXT unsigned.
826 (struct genkey_parm_s): Ditto.
827 * server.c (strcpy_escaped_plus): Made arg S signed char*.
828 * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
829 (gpgsm_get_keygrip): Ditto.
830 * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
831 (keydb_update_cert): Ditto.
832 (classify_user_id): Apply cast to signed/unsigned assignment.
835 2005-06-01 Werner Koch <wk@g10code.com>
837 * misc.c: Include setenv.h.
839 2005-04-21 Werner Koch <wk@g10code.com>
841 * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
842 * certchain.c (gpgsm_validate_chain): Make use of it.
844 * certchain.c (gpgsm_validate_chain): Check revocations even for
845 expired certificates. This is required because on signature
846 verification an expired key is fine whereas a revoked one is not.
848 2005-04-20 Werner Koch <wk@g10code.com>
850 * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
852 2005-04-19 Werner Koch <wk@g10code.com>
854 * certchain.c (check_cert_policy): Print the diagnostic for a open
855 failure of policies.txt only in verbose mode or when it is not
858 2005-04-17 Werner Koch <wk@g10code.com>
860 * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
861 * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
862 this filter. Changed all callers.
864 * certchain.c (find_up_search_by_keyid): New helper.
865 (find_up): Also try using the AKI.keyIdentifier.
866 (find_up_external): Ditto.
868 2005-04-15 Werner Koch <wk@g10code.com>
870 * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
871 well as the keyIdentifier part of the authorityKeyIdentifier.
873 2005-03-31 Werner Koch <wk@g10code.com>
875 * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
876 * call-agent.c (start_agent): Ditto.
878 2005-03-17 Werner Koch <wk@g10code.com>
880 * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
882 * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
883 failed gcry_pk_verify.
884 (find_up): Do an external lookup also for an authorityKeyIdentifier
885 lookup. Factored external lookup code out to ..
886 (find_up_external): .. new.
888 2005-03-03 Werner Koch <wk@g10code.com>
890 * Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
892 2005-01-13 Werner Koch <wk@g10code.com>
894 * certreqgen.c (proc_parameters): Cast printf arg.
896 2004-12-22 Werner Koch <wk@g10code.com>
898 * gpgsm.c (set_binary): New.
899 (main, open_read, open_fwrite): Use it.
901 2004-12-21 Werner Koch <wk@g10code.com>
903 * gpgsm.c (main): Use default_homedir().
904 (main) [W32]: Default to disabled CRL checks.
906 2004-12-20 Werner Koch <wk@g10code.com>
908 * call-agent.c (start_agent): Before starting a pipe server start
909 to connect to a server on the standard socket. Use PATHSEP
910 * call-dirmngr.c (start_dirmngr): Use PATHSEP.
912 * import.c: Include unistd.h for dup and close.
914 2004-12-18 Werner Koch <wk@g10code.com>
916 * gpgsm.h (map_assuan_err): Define in terms of
917 map_assuan_err_with_source.
918 * call-agent.c (start_agent): Pass error source to
919 send_pinentry_environment.
921 2004-12-17 Werner Koch <wk@g10code.com>
923 * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
924 (run_command_status_cb): Return cancel status if gpgsm_status
927 * server.c (gpgsm_status, gpgsm_status2)
928 (gpgsm_status_with_err_code): Return an error code.
929 (gpgsm_status2): Always call va_end().
931 2004-12-15 Werner Koch <wk@g10code.com>
933 * call-dirmngr.c (lookup_status_cb): Send progress messages
935 (isvalid_status_cb): Ditto.
936 (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
937 (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
938 status callback and handle PROGRESS.
940 * misc.c (setup_pinentry_env) [W32]: Don't use it.
942 * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
943 operations and to resolve libassuan symbols.
944 (run_protect_tool) [W32]: Disable it.
946 * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
948 2004-12-07 Werner Koch <wk@g10code.com>
950 * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
951 under W32 we need the w32 pth code from jnlib.
953 * misc.c (setup_pinentry_env) [W32]: Disabled.
955 2004-12-06 Werner Koch <wk@g10code.com>
957 * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
959 * import.c (popen_protect_tool): Simplified by making use of
961 (parse_p12): Likewise, using gnupg_wait_process.
962 * export.c (popen_protect_tool): Ditto.
965 * keydb.c: Don't define DIRSEP_S here.
967 2004-12-02 Werner Koch <wk@g10code.com>
969 * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
970 signature for debugging.
971 (gpgsm_validate_chain): Ditto.
973 2004-11-29 Werner Koch <wk@g10code.com>
975 * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
977 (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE. This
978 now allows to add debug flags on top of a debug-level setting.
980 2004-11-23 Werner Koch <wk@g10code.com>
982 * gpgsm.c: New option --prefer-system-dirmngr.
983 * call-dirmngr.c (start_dirmngr): Implement this option.
985 2004-10-22 Werner Koch <wk@g10code.com>
987 * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
988 request PEM header. This is according to the Sphinx standard.
990 2004-10-08 Moritz Schulte <moritz@g10code.com>
992 * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
993 case the no_chain_validation-return-short-cut is used (fixes
996 2004-10-04 Werner Koch <wk@g10code.com>
998 * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1000 2004-09-30 Werner Koch <wk@g10code.com>
1002 * gpgsm.c (i18n_init): Always use LC_ALL.
1004 * certdump.c (gpgsm_format_name): Factored code out to ..
1005 (gpgsm_format_name2): .. new.
1006 (gpgsm_print_name): Factored code out to ..
1007 (gpgsm_print_name2): .. new.
1008 (print_dn_part): New arg TRANSLATE. Changed all callers.
1009 (print_dn_parts): Ditto.
1010 (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
1011 it to stay UTF-8 but we still want to filter out bad control
1014 * Makefile.am: Adjusted for gettext 0.14.
1016 * keylist.c (list_cert_colon): Make sure that the expired flag has
1017 a higher precedence than the invalid flag.
1019 2004-09-29 Werner Koch <wk@g10code.com>
1021 * import.c (parse_p12): Write an error status line for bad
1022 passphrases. Add new arg CTRL and changed caller.
1023 * export.c (export_p12): Likewise.
1025 2004-09-14 Werner Koch <wk@g10code.com>
1027 * certchain.c (gpgsm_validate_chain): Give expired certificates a
1028 higher error precedence and don't bother to check any CRL in that
1031 2004-08-24 Werner Koch <wk@g10code.de>
1033 * certlist.c: Fixed typo in ocsp OID.
1035 2004-08-18 Werner Koch <wk@g10code.de>
1037 * certlist.c (gpgsm_cert_use_ocsp_p): New.
1038 (cert_usage_p): Support it here.
1039 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
1041 2004-08-17 Marcus Brinkmann <marcus@g10code.de>
1043 * import.c: Fix typo in last change.
1045 2004-08-17 Werner Koch <wk@g10code.de>
1047 * import.c (check_and_store): Do a full validation if
1048 --with-validation is set.
1050 * certchain.c (gpgsm_basic_cert_check): Print more detailed error
1053 * certcheck.c (do_encode_md): Partly support DSA. Add new arg
1054 PKALGO. Changed all callers to pass it.
1055 (pk_algo_from_sexp): New.
1057 2004-08-16 Werner Koch <wk@g10code.de>
1059 * gpgsm.c: New option --fixed-passphrase.
1060 * import.c (popen_protect_tool): Pass it to the protect-tool.
1062 * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1063 for encrypt-to keys.
1065 2004-08-06 Werner Koch <wk@g10code.com>
1067 * gpgsm.c: New option --with-ephemeral-keys.
1068 * keylist.c (list_internal_keys): Set it here.
1069 (list_cert_raw): And indicate those keys. Changed all our callers
1070 to pass the new arg HD through.
1072 2004-07-23 Werner Koch <wk@g10code.de>
1074 * certreqgen.c (proc_parameters): Do not allow key length below
1077 2004-07-22 Werner Koch <wk@g10code.de>
1079 * keylist.c (list_cert_raw): Print the keygrip.
1081 2004-07-20 Werner Koch <wk@gnupg.org>
1083 * certchain.c (gpgsm_validate_chain): The trust check didn't
1084 worked anymore, probably due to the changes at 2003-03-04. Fixed.
1086 2004-06-06 Werner Koch <wk@gnupg.org>
1088 * certreqgen.c (get_parameter_uint, create_request): Create
1089 an extension for key usage when requested.
1091 2004-05-12 Werner Koch <wk@gnupg.org>
1093 * gpgsm.c (main): Install emergency_cleanup also as an atexit
1096 * verify.c (gpgsm_verify): Removed the separate error code
1097 handling for KSBA. We use shared error codes anyway.
1099 * export.c (export_p12): Removed debugging code.
1101 * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1103 2004-05-11 Werner Koch <wk@gnupg.org>
1105 * sign.c (gpgsm_sign): Include the error source in the final error
1107 * decrypt.c (gpgsm_decrypt): Ditto.
1109 * fingerprint.c (gpgsm_get_key_algo_info): New.
1110 * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1111 * keylist.c (list_cert_colon): Really print the algorithm and key
1113 (list_cert_raw, list_cert_std): Ditto.
1114 (list_cert_colon): Reorganized to be able to tell whether a root
1115 certificate is trusted.
1117 * gpgsm.c: New option --debug-allow-core-dump.
1119 * gpgsm.h (opt): Add member CONFIG_FILENAME.
1120 * gpgsm.c (main): Use it here instead of the local var.
1122 * server.c (gpgsm_server): Print some additional information with
1123 the hello in verbose mode.
1125 2004-04-30 Werner Koch <wk@gnupg.org>
1127 * import.c (check_and_store): Do not update the stats for hidden
1128 imports of issuer certs.
1129 (popen_protect_tool): Request statusmessages from the protect-tool.
1130 (parse_p12): Detect status messages. Add new arg STATS and update them.
1131 (print_imported_summary): Include secret key stats.
1133 2004-04-28 Werner Koch <wk@gnupg.org>
1135 * gpgsm.c: New command --keydb-clear-some-cert-flags.
1136 * keydb.c (keydb_clear_some_cert_flags): New.
1137 (keydb_update_keyblock, keydb_set_flags): Change error code
1138 CONFLICT to NOT_LOCKED.
1140 2004-04-26 Werner Koch <wk@gnupg.org>
1142 * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1145 * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)
1146 (gpgsm_agent_genkey, gpgsm_agent_istrusted)
1147 (gpgsm_agent_marktrusted, gpgsm_agent_havekey)
1148 (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1149 (start_agent): New arg CTRL. Send progress item when starting a
1151 * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1152 CTRL to be passed down to the agent function.
1153 * decrypt.c (prepare_decryption): Ditto.
1154 * certreqgen.c (proc_parameters, read_parameters): Ditto.
1155 * certcheck.c (gpgsm_create_cms_signature): Ditto.
1157 2004-04-23 Werner Koch <wk@gnupg.org>
1159 * keydb.c (keydb_add_resource): Try to compress the file on init.
1161 * keylist.c (oidtranstbl): New. OIDs collected from several sources.
1162 (print_name_raw, print_names_raw, list_cert_raw): New.
1163 (gpgsm_list_keys): Check the dump mode and pass it down as
1166 2004-04-22 Werner Koch <wk@gnupg.org>
1168 * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1171 2004-04-13 Werner Koch <wk@gnupg.org>
1173 * misc.c (setup_pinentry_env): New.
1174 * import.c (popen_protect_tool): Call it.
1175 * export.c (popen_protect_tool): Call it.
1177 2004-04-08 Werner Koch <wk@gnupg.org>
1179 * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
1182 2004-04-07 Werner Koch <wk@gnupg.org>
1184 * gpgsm.c: New option --force-crl-refresh.
1185 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1187 2004-04-05 Werner Koch <wk@gnupg.org>
1189 * server.c (get_status_string): Add STATUS_NEWSIG.
1190 * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1192 * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1193 not just warn if a cert is not suitable; bail out immediately.
1195 2004-04-01 Werner Koch <wk@gnupg.org>
1197 * call-dirmngr.c (isvalid_status_cb): New.
1198 (unhexify_fpr): New. Taken from ../g10/call-agent.c
1199 (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1200 it thru. Detect need to check the respondert cert and do that.
1201 * certchain.c (gpgsm_validate_chain): Add new arg FLAGS. Changed
1204 2004-03-24 Werner Koch <wk@gnupg.org>
1206 * sign.c (gpgsm_sign): Include a short list of capabilities.
1208 2004-03-17 Werner Koch <wk@gnupg.org>
1210 * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1212 2004-03-16 Werner Koch <wk@gnupg.org>
1214 * gpgsm.c (main): Implemented --gpgconf-list.
1216 2004-03-15 Werner Koch <wk@gnupg.org>
1218 * keylist.c (list_cert_colon): Hack to set the expired flag.
1220 2004-03-09 Werner Koch <wk@gnupg.org>
1222 * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1224 * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1226 2004-03-04 Werner Koch <wk@gnupg.org>
1228 * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1230 * certchain.c (is_cert_still_valid): New. Code moved from ...
1231 (gpgsm_validate_chain): ... here because we now need to check at
1232 two places and at a later stage, so that we can pass the issuer
1233 cert down to the dirmngr.
1235 2004-03-03 Werner Koch <wk@gnupg.org>
1237 * call-agent.c (start_agent): Replaced pinentry setup code by a
1238 call to a new common function.
1240 * certdump.c (gpgsm_format_keydesc): Make sure the string is
1243 * export.c (gpgsm_export): Make sure that we don't export more
1244 than one certificate.
1246 2004-03-02 Werner Koch <wk@gnupg.org>
1248 * export.c (create_duptable, destroy_duptable)
1249 (insert_duptable): New.
1250 (gpgsm_export): Avoid duplicates.
1252 2004-02-26 Werner Koch <wk@gnupg.org>
1254 * certchain.c (compare_certs): New.
1255 (gpgsm_validate_chain): Fixed infinite certificate checks after
1258 2004-02-24 Werner Koch <wk@gnupg.org>
1260 * keylist.c (list_cert_colon): Print the fingerprint as the
1261 cert-id for root certificates.
1263 2004-02-21 Werner Koch <wk@gnupg.org>
1265 * keylist.c (list_internal_keys): Return error codes.
1266 (list_external_keys, gpgsm_list_keys): Ditto.
1267 * server.c (do_listkeys): Ditto.
1269 * gpgsm.c (main): Display a key description for --passwd.
1270 * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1272 2004-02-20 Werner Koch <wk@gnupg.org>
1274 * gpgsm.c (main): New option --debug-ignore-expiration.
1275 * certchain.c (gpgsm_validate_chain): Use it here.
1277 * certlist.c (cert_usage_p): Apply extKeyUsage.
1279 2004-02-19 Werner Koch <wk@gnupg.org>
1281 * export.c (export_p12, popen_protect_tool)
1282 (gpgsm_p12_export): New.
1283 * gpgsm.c (main): New command --export-secret-key-p12.
1285 2004-02-18 Werner Koch <wk@gnupg.org>
1287 * gpgsm.c (set_debug): Set the new --debug-level flags.
1288 (main): New option --gpgconf-list.
1289 (main): Do not setup -u and -r keys when not required.
1290 (main): Setup the used character set.
1292 * keydb.c (keydb_add_resource): Print a hint to start the
1295 2004-02-17 Werner Koch <wk@gnupg.org>
1297 * gpgsm.c: Fixed value parsing for --with-validation.
1298 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1299 * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1301 * gpgsm.c: New option --with-md5-fingerprint.
1302 * keylist.c (list_cert_std): Print MD5 fpr.
1304 * gpgsm.c: New options --with-validation.
1305 * server.c (option_handler): New option "with-validation".
1306 * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1307 WITH_VALIDATION. Changed callers to set it.
1308 (list_external_cb, list_external_keys): Pass CTRL to the callback.
1309 (list_cert_colon): Add arg CTRL. Check validation if requested.
1310 * certchain.c (unknown_criticals, allowed_ca, check_cert_policy)
1311 (gpgsm_validate_chain): New args LISTMODE and FP.
1312 (do_list): New helper for info output.
1313 (find_up): New arg FIND_NEXT.
1314 (gpgsm_validate_chain): After a bad signature try again with other
1317 * import.c (print_imported_status): New arg NEW_CERT. Print
1318 additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1319 (check_and_store): Always call above function after import.
1320 * server.c (get_status_string): Added STATUS_IMPORT_OK.
1322 2004-02-13 Werner Koch <wk@gnupg.org>
1324 * certcheck.c (gpgsm_create_cms_signature): Format a description
1325 for use by the pinentry.
1326 * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1327 * certdump.c (format_name_cookie, format_name_writer)
1328 (gpgsm_format_name): New.
1329 (gpgsm_format_serial): New.
1330 (gpgsm_format_keydesc): New.
1331 * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1332 (gpgsm_agent_pkdecrypt): Ditto.
1334 * encrypt.c (init_dek): Check for too weak algorithms.
1336 * import.c (parse_p12, popen_protect_tool): New.
1338 * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1339 Changed all callers.
1340 (base64_reader_cb): Handle it here.
1341 (gpgsm_reader_eof_seen): New.
1342 (base64_reader_cb): Set a flag for EOF.
1343 (simple_reader_cb): Ditto.
1345 2004-02-12 Werner Koch <wk@gnupg.org>
1347 * gpgsm.h, gpgsm.c: New option --protect-tool-program.
1348 * gpgsm.c (run_protect_tool): Use it.
1350 2004-02-11 Werner Koch <wk@gnupg.org>
1352 * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
1353 will allow to override directory names at make time.
1355 2004-02-02 Werner Koch <wk@gnupg.org>
1357 * import.c (check_and_store): Import certificates even with
1358 missing issuer's cert. Fixed an "depending on the verbose
1361 * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
1364 * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
1366 (list_internal_keys): Retrieve validity flag.
1367 (list_external_cb): Pass 0 as validity flag.
1368 * keydb.c (keydb_get_flags, keydb_set_flags): New.
1369 (keydb_set_cert_flags): New.
1370 (lock_all): Return a proper error code.
1372 (keydb_delete): Don't lock but check that it has been locked.
1373 (keydb_update_keyblock): Ditto.
1374 * delete.c (delete_one): Take a lock.
1376 2004-01-30 Werner Koch <wk@gnupg.org>
1378 * certchain.c (check_cert_policy): Fixed read error checking.
1379 (check_cert_policy): With no critical policies issue only a
1380 warning if the policy file does not exists.
1382 * sign.c (add_certificate_list): Decrement N for the first cert.
1384 2004-01-29 Werner Koch <wk@gnupg.org>
1386 * certdump.c (parse_dn_part): Map common OIDs to human readable
1387 labels. Make sure that a value won't get truncated if it includes
1390 2004-01-28 Werner Koch <wk@gnupg.org>
1392 * certchain.c (gpgsm_validate_chain): Changed the message printed
1393 for an untrusted root certificate.
1395 2004-01-27 Werner Koch <wk@gnupg.org>
1397 * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
1398 (print_dn_part): Do not delimit multiple RDN by " + ". Handle
1399 multi-valued RDNs in a special way, i.e. in the order specified by
1401 (print_dn_parts): Simplified.
1403 2004-01-16 Werner Koch <wk@gnupg.org>
1405 * sign.c (gpgsm_sign): Print an error message on all failures.
1406 * decrypt.c (gpgsm_decrypt): Ditto.
1408 2003-12-17 Werner Koch <wk@gnupg.org>
1410 * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
1411 (cmd_encrypt): Add all enrypt-to marked certs to the list.
1412 * encrypt.c (gpgsm_encrypt): Check that real recipients are
1414 * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
1415 options work. Pass the list of recients to gpgsm_server.
1416 * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
1417 (opt): Add NO_ENCRYPT_TO.
1418 * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
1419 Changed all callers and ignore duplicate entries.
1420 (is_cert_in_certlist): New.
1421 (gpgsm_add_cert_to_certlist): New.
1423 * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
1424 (gpgsm_dump_serial): Ditto.
1426 * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
1428 2003-12-16 Werner Koch <wk@gnupg.org>
1430 * gpgsm.c (main): Set the prefixes for assuan logging.
1432 * sign.c (gpgsm_sign): Add validation checks for the default
1435 * gpgsm.c: Add -k as alias for --list-keys and -K for
1438 2003-12-15 Werner Koch <wk@gnupg.org>
1440 * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
1441 not need for real strong random here and it even better protect
1442 the random bits used for the key.
1444 2003-12-01 Werner Koch <wk@gnupg.org>
1446 * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
1447 (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
1448 * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
1449 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
1450 proceed accordingly.
1452 2003-11-19 Werner Koch <wk@gnupg.org>
1454 * verify.c (gpgsm_verify): Use "0" instead of an empty string for
1455 the VALIDSIG status.
1457 2003-11-18 Werner Koch <wk@gnupg.org>
1459 * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
1461 * certchain.c (unknown_criticals): Fixed an error code test.
1463 2003-11-12 Werner Koch <wk@gnupg.org>
1465 Adjusted for API changes in Libksba.
1467 2003-10-31 Werner Koch <wk@gnupg.org>
1469 * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
1470 * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
1471 * sign.c (gpgsm_sign): Ditto.
1472 * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
1473 * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
1476 2003-10-25 Werner Koch <wk@gnupg.org>
1478 * certreqgen.c (read_parameters): Fixed faulty of !spacep().
1480 2003-08-20 Marcus Brinkmann <marcus@g10code.de>
1482 * encrypt.c (encode_session_key): Allocate enough space. Cast key
1483 byte to unsigned char to prevent sign extension.
1484 (encrypt_dek): Check return value before error.
1486 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1488 * encrypt.c (encode_session_key): Use new Libgcrypt interface.
1490 2003-07-31 Werner Koch <wk@gnupg.org>
1492 * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
1494 2003-07-29 Werner Koch <wk@gnupg.org>
1496 * gpgsm.c (main): Add secmem features and set the random seed file.
1497 (gpgsm_exit): Update the random seed file and enable debug output.
1499 2003-07-27 Werner Koch <wk@gnupg.org>
1501 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1503 2003-06-24 Werner Koch <wk@gnupg.org>
1505 * server.c (gpgsm_status_with_err_code): New.
1506 * verify.c (gpgsm_verify): Use it here instead of the old
1509 * verify.c (strtimestamp): Renamed to strtimestamp_r
1511 Adjusted for changes in the libgcrypt API. Some more fixes for the
1514 2003-06-04 Werner Koch <wk@gnupg.org>
1516 * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
1517 Include new membuf header and changed used type.
1519 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1521 2003-06-03 Werner Koch <wk@gnupg.org>
1523 Changed all error codes in all files to the new libgpg-error scheme.
1525 * gpgsm.h: Include gpg-error.h .
1526 * Makefile.am: Link with libgpg-error.
1528 2003-04-29 Werner Koch <wk@gnupg.org>
1530 * Makefile.am: Use libassuan. Don't override LDFLAGS anymore.
1531 * server.c (register_commands): Adjust for new Assuan semantics.
1533 2002-12-03 Werner Koch <wk@gnupg.org>
1535 * call-agent.c (gpgsm_agent_passwd): New.
1536 * gpgsm.c (main): New command --passwd and --call-protect-tool
1537 (run_protect_tool): New.
1539 2002-11-25 Werner Koch <wk@gnupg.org>
1541 * verify.c (gpgsm_verify): Handle content-type attribute.
1543 2002-11-13 Werner Koch <wk@gnupg.org>
1545 * call-agent.c (start_agent): Try to use $GPG_TTY instead of
1546 ttyname. Changed ttyname to test stdin becuase it can be assumed
1547 that output redirection is more common that input redirection.
1549 2002-11-12 Werner Koch <wk@gnupg.org>
1551 * gpgsm.c: New command --call-dirmngr.
1552 * call-dirmngr.c (gpgsm_dirmngr_run_command)
1553 (run_command_inq_cb,run_command_cb)
1554 (run_command_status_cb): New.
1556 2002-11-11 Werner Koch <wk@gnupg.org>
1558 * certcheck.c (gpgsm_check_cms_signature): Don't double free
1559 s_sig but free s_pkey at leave.
1561 2002-11-10 Werner Koch <wk@gnupg.org>
1563 * gpgsm.c: Removed duplicate --list-secret-key entry.
1565 2002-09-19 Werner Koch <wk@gnupg.org>
1567 * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
1569 * certchain.c (find_up): Print info when the cert was not found
1570 by the autorithyKeyIdentifier.
1572 2002-09-03 Werner Koch <wk@gnupg.org>
1574 * gpgsm.c (main): Disable the internal libgcrypt locking.
1576 2002-08-21 Werner Koch <wk@gnupg.org>
1578 * import.c (print_imported_summary): Cleaned up. Print new
1580 (check_and_store): Update non_imported counter.
1581 (print_import_problem): New.
1582 (check_and_store): Print error status message.
1583 * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
1585 2002-08-20 Werner Koch <wk@gnupg.org>
1587 * gpgsm.c (main): Use the log file only in server mode.
1589 * import.c (print_imported_summary): New.
1590 (check_and_store): Update the counters, take new argument.
1591 (import_one): Factored out core of gpgsm_import.
1592 (gpgsm_import): Print counters.
1593 (gpgsm_import_files): New.
1594 * gpgsm.c (main): Use the new function for import.
1596 2002-08-19 Werner Koch <wk@gnupg.org>
1598 * decrypt.c (gpgsm_decrypt): Return a better error status token.
1599 * verify.c (gpgsm_verify): Don't error on messages with no signing
1600 time or no message digest. This is only the case for messages
1601 without any signed attributes.
1603 2002-08-16 Werner Koch <wk@gnupg.org>
1605 * certpath.c: Renamed to ..
1606 * certchain.c: this. Renamed all all other usages of "path" in the
1607 context of certificates to "chain".
1609 * call-agent.c (learn_cb): Special treatment when the issuer
1610 certificate is missing.
1612 2002-08-10 Werner Koch <wk@gnupg.org>
1614 * Makefile.am (INCLUDES): Add definition for localedir.
1616 * keylist.c (list_cert_colon): Print the short fingerprint in the
1618 * fingerprint.c (gpgsm_get_short_fingerprint): New.
1619 * verify.c (gpgsm_verify): Print more verbose info for a good
1622 2002-08-09 Werner Koch <wk@gnupg.org>
1624 * decrypt.c (prepare_decryption): Hack to detected already
1627 * gpgsm.c (emergency_cleanup): New.
1628 (main): Initialize the signal handler.
1630 * sign.c (gpgsm_sign): Reset the hash context for subsequent
1631 signers and release it at the end.
1633 2002-08-05 Werner Koch <wk@gnupg.org>
1635 * server.c (cmd_signer): New command "SIGNER"
1636 (register_commands): Register it.
1637 (cmd_sign): Pass the signer list to gpgsm_sign.
1638 * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
1639 for secret key if set and changed all callers.
1640 * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
1642 * gpgsm.c (main): Support more than one -u.
1644 * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
1645 which is actually what gets returned from add_to_certlist.
1647 2002-07-26 Werner Koch <wk@gnupg.org>
1649 * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
1650 (gpgsm_check_cms_signature): Ditto.
1652 2002-07-22 Werner Koch <wk@gnupg.org>
1654 * keydb.c (keydb_add_resource): Register a lock file.
1655 (lock_all, unlock_all): Implemented.
1658 * gpgsm.c: Made --delete-key work.
1659 * server.c (cmd_delkeys): New.
1660 (register_commands): New command DELKEYS.
1662 * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
1663 used and a STATUS_ERROR with the algorithm oid.
1665 2002-07-03 Werner Koch <wk@gnupg.org>
1667 * server.c (gpgsm_status2): Insert a blank between all optional
1668 arguments when using assuan.
1669 * server.c (cmd_recipient): No more need for extra blank in constants.
1670 * import.c (print_imported_status): Ditto.
1671 * gpgsm.c (main): Ditto.
1673 2002-07-02 Werner Koch <wk@gnupg.org>
1675 * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
1678 * certpath.c (check_cert_policy): Don't use log_error to print a
1681 * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
1683 * call-agent.c (learn_cb): Print info message only for real imports.
1685 * import.c (gpgsm_import): Moved duplicated code to ...
1686 (check_and_store): new function. Added magic to import the entire
1687 chain. Print status only for real imports and moved printing code
1689 (print_imported_status): New.
1691 * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
1692 call in very verbose mode.
1694 * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
1695 with the server mode.
1697 2002-06-29 Werner Koch <wk@gnupg.org>
1699 * gpgsm.c: New option --auto-issuer-key-retrieve.
1700 * certpath.c (find_up): Try to retrieve an issuer key from an
1701 external source and from the ephemeral key DB.
1702 (find_up_store_certs_cb): New.
1704 * keydb.c (keydb_set_ephemeral): Does now return the old
1705 state. Call the backend only when required.
1707 * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
1708 (lookup_status_cb): Issue status only when CTRL is not NULL.
1709 (gpgsm_dirmngr_lookup): Document that CTRL is optional.
1711 * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
1713 2002-06-28 Werner Koch <wk@gnupg.org>
1715 * server.c (cmd_recipient): Add more reason codes.
1717 2002-06-27 Werner Koch <wk@gnupg.org>
1719 * certpath.c (gpgsm_basic_cert_check): Use
1720 --debug-no-path-validation to also bypass this basic check.
1722 * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
1724 * call-agent.c (start_agent): Create and pass the list of FD to
1725 keep in the child to assuan.
1726 * call-dirmngr.c (start_dirmngr): Ditto.
1728 2002-06-26 Werner Koch <wk@gnupg.org>
1730 * import.c (gpgsm_import): Print an STATUS_IMPORTED.
1732 * gpgsm.c: --debug-no-path-validation does not take an argument.
1734 2002-06-25 Werner Koch <wk@gnupg.org>
1736 * certdump.c (print_dn_part): Always print a leading slash,
1737 removed NEED_DELIM arg and changed caller.
1739 * export.c (gpgsm_export): Print LFs to FP and not stdout.
1740 (print_short_info): Ditto. Make use of gpgsm_print_name.
1742 * server.c (cmd_export): Use output-fd instead of data lines; this
1743 was actually the specified way.
1745 2002-06-24 Werner Koch <wk@gnupg.org>
1747 * gpgsm.c: Removed duped help entry for --list-keys.
1749 * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
1751 * certpath.c (gpgsm_validate_path): Use it here instead of the
1754 * certpath.c (check_cert_policy): Return No_Policy_Match if the
1755 policy file could not be opened.
1757 2002-06-20 Werner Koch <wk@gnupg.org>
1759 * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
1760 certificate with the required key usage.
1762 * gpgsm.c (main): Fixed a segv when using --outfile without an
1765 * keylist.c (print_capabilities): Also check for non-repudiation
1766 and data encipherment.
1767 * certlist.c (cert_usage_p): Test for signing and encryption was
1768 swapped. Add a case for certification usage, handle
1769 non-repudiation and data encipherment.
1770 (gpgsm_cert_use_cert_p): New.
1771 (gpgsm_add_to_certlist): Added a CTRL argument and changed all
1773 * certpath.c (gpgsm_validate_path): Use it here to print a status
1774 message. Added a CTRL argument and changed all callers to pass it.
1775 * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
1777 * verify.c (gpgsm_verify): Ditto.
1778 * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
1780 2002-06-19 Werner Koch <wk@gnupg.org>
1782 * call-agent.c (learn_cb): Use log_info instead of log_error on
1785 * keydb.c (keydb_set_ephemeral): New.
1786 (keydb_store_cert): New are ephemeral, changed all callers.
1787 * keylist.c (list_external_cb): Store cert as ephemeral.
1788 * export.c (gpgsm_export): Kludge to export epehmeral certificates.
1790 * gpgsm.c (main): New command --list-external-keys.
1792 2002-06-17 Werner Koch <wk@gnupg.org>
1794 * certreqgen.c (read_parameters): Improved error handling.
1795 (gpgsm_genkey): Print error message.
1797 2002-06-13 Werner Koch <wk@gnupg.org>
1799 * gpgsm.c (main): New option --log-file.
1801 2002-06-12 Werner Koch <wk@gnupg.org>
1803 * call-dirmngr.c (lookup_status_cb): New.
1804 (gpgsm_dirmngr_lookup): Use the status CB. Add new arg CTRL and
1805 changed caller to pass it.
1807 * gpgsm.c (open_fwrite): New.
1808 (main): Allow --output for --verify.
1810 * sign.c (hash_and_copy_data): New.
1811 (gpgsm_sign): Implemented normal (non-detached) signatures.
1812 * gpgsm.c (main): Ditto.
1814 * certpath.c (gpgsm_validate_path): Special error handling for
1817 2002-06-10 Werner Koch <wk@gnupg.org>
1819 * server.c (get_status_string): Add STATUS_ERROR.
1821 * certpath.c (gpgsm_validate_path): Tweaked the error checking to
1822 return error codes in a more sensitive way.
1823 * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
1824 CA certificate and when the certificate has been revoked. Issue
1825 TRUST_FULLY even when the cert has expired. Append an error token
1826 to these status lines. Issue the new generic error status when a
1827 cert was not found and when leaving the function.
1829 2002-06-04 Werner Koch <wk@gnupg.org>
1831 * gpgsm.c (main): New command --list-sigs
1832 * keylist.c (list_cert_std): New. Use it whenever colon mode is
1834 (list_cert_chain): New.
1836 2002-05-31 Werner Koch <wk@gnupg.org>
1838 * gpgsm.c (main): Don't print the "go ahead" message for an
1841 2002-05-23 Werner Koch <wk@gnupg.org>
1843 * import.c (gpgsm_import): Add error messages.
1845 2002-05-21 Werner Koch <wk@gnupg.org>
1847 * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
1848 (list_external_keys): New.
1849 (gpgsm_list_keys): Dispatcher for above.
1850 * call-dirmngr.c (lookup_cb,pattern_from_strlist)
1851 (gpgsm_dirmngr_lookup): New.
1852 * server.c (option_handler): Handle new option --list-mode.
1853 (do_listkeys): Handle options and actually use the mode argument.
1854 (get_status_string): New code TRUNCATED.
1856 * import.c (gpgsm_import): Try to identify the type of input and
1857 handle certs-only messages.
1859 2002-05-14 Werner Koch <wk@gnupg.org>
1861 * gpgsm.c: New option --faked-system-time
1862 * sign.c (gpgsm_sign): And use it here.
1863 * certpath.c (gpgsm_validate_path): Ditto.
1865 2002-05-03 Werner Koch <wk@gnupg.org>
1867 * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
1869 * verify.c (gpgsm_verify): Tweaked usage of log_debug and
1870 log_error. Return EXPSIG status and add expiretime to VALIDSIG.
1872 2002-04-26 Werner Koch <wk@gnupg.org>
1874 * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
1877 * call-agent.c (start_agent): Be more silent without -v.
1878 * call-dirmngr.c (start_dirmngr): Ditto.
1880 2002-04-25 Werner Koch <wk@gnupg.org>
1882 * call-agent.c (start_agent): Make copies of old locales and check
1885 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
1887 * call-agent.c (start_agent): Fix error handling logic so the
1888 locale is always correctly reset.
1890 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
1892 * server.c (option_handler): Accept display, ttyname, ttytype,
1893 lc_ctype and lc_messages options.
1894 * gpgsm.c (main): Allocate memory for these options.
1895 * gpgsm.h (struct opt): Make corresponding members non-const.
1897 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
1899 * gpgsm.h (struct opt): New members display, ttyname, ttytype,
1900 lc_ctype, lc_messages.
1901 * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
1902 oTTYname, oTTYtype, oLCctype, oLCmessages.
1903 (opts): New entries for these options.
1904 (main): Handle these new options.
1905 * call-agent.c (start_agent): Set the various display and tty
1906 parameter after resetting.
1908 2002-04-18 Werner Koch <wk@gnupg.org>
1910 * certreqgen.c (gpgsm_genkey): Write status output on success.
1912 2002-04-15 Werner Koch <wk@gnupg.org>
1914 * gpgsm.c (main): Check ksba version.
1916 * certpath.c (find_up): New to use the authorithKeyIdentifier.
1917 Use it in all other functions to locate the signing cert..
1919 2002-04-11 Werner Koch <wk@gnupg.org>
1921 * certlist.c (cert_usable_p): New.
1922 (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
1923 (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
1924 (gpgsm_add_to_certlist): Check the key usage.
1925 * sign.c (gpgsm_sign): Ditto.
1926 * verify.c (gpgsm_verify): Print a message wehn an unsuitable
1927 certificate was used.
1928 * decrypt.c (gpgsm_decrypt): Ditto
1929 * keylist.c (print_capabilities): Determine values from the cert.
1931 2002-03-28 Werner Koch <wk@gnupg.org>
1933 * keylist.c (list_cert_colon): Fixed listing of crt record; the
1934 issuer is not at the right place. Print a chainingID.
1935 * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
1938 2002-03-21 Werner Koch <wk@gnupg.org>
1941 * gpgsm.c: Add command --export.
1942 * server.c (cmd_export): New.
1944 2002-03-13 Werner Koch <wk@gnupg.org>
1946 * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
1948 2002-03-12 Werner Koch <wk@gnupg.org>
1950 * certpath.c (check_cert_policy): Print the policy list.
1952 * verify.c (gpgsm_verify): Detect certs-only message.
1954 2002-03-11 Werner Koch <wk@gnupg.org>
1956 * import.c (gpgsm_import): Print a notice about imported certificates
1957 when in verbose mode.
1959 * gpgsm.c (main): Print INV_RECP status.
1960 * server.c (cmd_recipient): Ditto.
1962 * server.c (gpgsm_status2): New. Allows for a list of strings.
1963 (gpgsm_status): Divert to gpgsm_status2.
1965 * encrypt.c (gpgsm_encrypt): Don't use a default key when no
1966 recipients are given. Print a NO_RECP status.
1968 2002-03-06 Werner Koch <wk@gnupg.org>
1970 * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
1971 (do_listkeys): new. Add pattern parsing.
1973 * keylist.c (gpgsm_list_keys): Handle selection pattern.
1975 * gpgsm.c: New command --learn-card
1976 * call-agent.c (learn_cb,gpgsm_agent_learn): New.
1978 * gpgsm.c (main): Print error messages for non-implemented commands.
1980 * base64.c (base64_reader_cb): Use case insensitive compare of the
1981 Content-Type string to detect plain base-64.
1983 2002-03-05 Werner Koch <wk@gnupg.org>
1985 * gpgsm.c, gpgsm.h: Add local_user.
1986 * sign.c (gpgsm_get_default_cert): New.
1987 (get_default_signer): Use the new function if local_user is not
1988 set otherwise used that value.
1989 * encrypt.c (get_default_recipient): Removed.
1990 (gpgsm_encrypt): Use gpgsm_get_default_cert.
1992 * verify.c (gpgsm_verify): Better error text for a bad signature
1993 found by comparing the hashs.
1995 2002-02-27 Werner Koch <wk@gnupg.org>
1997 * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2000 2002-02-25 Werner Koch <wk@gnupg.org>
2002 * server.c (option_handler): Allow to use -2 for "send all certs
2003 except the root cert".
2004 * sign.c (add_certificate_list): Implement it here.
2005 * certpath.c (gpgsm_is_root_cert): New.
2007 2002-02-19 Werner Koch <wk@gnupg.org>
2009 * certpath.c (check_cert_policy): New.
2010 (gpgsm_validate_path): And call it from here.
2011 * gpgsm.c (main): New options --policy-file,
2012 --disable-policy-checks and --enable-policy-checks.
2013 * gpgsm.h (opt): Added policy_file, no_policy_checks.
2015 2002-02-18 Werner Koch <wk@gnupg.org>
2017 * certpath.c (gpgsm_validate_path): Ask the agent to add the
2018 certificate into the trusted list.
2019 * call-agent.c (gpgsm_agent_marktrusted): New.
2021 2002-02-07 Werner Koch <wk@gnupg.org>
2023 * certlist.c (gpgsm_add_to_certlist): Check that the specified
2024 name identifies a certificate unambiguously.
2025 (gpgsm_find_cert): Ditto.
2027 * server.c (cmd_listkeys): Check that the data stream is available.
2028 (cmd_listsecretkeys): Ditto.
2030 (cmd_sign): Fix ambiguousity in option recognition.
2032 * gpgsm.c (main): Enable --logger-fd.
2034 * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2037 * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2040 * keylist.c (list_cert_colon): Filter out control characters.
2042 2002-02-06 Werner Koch <wk@gnupg.org>
2044 * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
2046 * server.c (reset_notify): Close input and output FDs.
2047 (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
2048 (cmd_genkey): Close the FDs and release the recipient list even in
2051 2002-02-01 Marcus Brinkmann <marcus@g10code.de>
2053 * sign.c (gpgsm_sign): Do not release certificate twice.
2055 2002-01-29 Werner Koch <wk@gnupg.org>
2057 * call-agent.c (gpgsm_agent_havekey): New.
2058 * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
2059 when we know that the secret key is available.
2060 (gpgsm_list_keys): New arg MODE, check whether a secret key is
2061 available. Changed all callers.
2062 * gpgsm.c (main): New command --list-secret-keys.
2063 * server.c (cmd_listsecretkeys): New.
2064 (cmd_listkeys): Return secret keys with "crs" record.
2066 2002-01-28 Werner Koch <wk@gnupg.org>
2068 * certreqgen.c (create_request): Store the email address in the req.
2070 2002-01-25 Werner Koch <wk@gnupg.org>
2072 * gpgsm.c (main): Disable core dumps.
2074 * sign.c (add_certificate_list): New.
2075 (gpgsm_sign): Add the certificates to the CMS object.
2076 * certpath.c (gpgsm_walk_cert_chain): New.
2077 * gpgsm.h (server_control_s): Add included_certs.
2078 * gpgsm.c: Add option --include-certs.
2079 (gpgsm_init_default_ctrl): New.
2081 * server.c (gpgsm_server): Ditto.
2082 (option_handler): Support --include-certs.
2084 2002-01-23 Werner Koch <wk@gnupg.org>
2086 * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
2087 * certdump.c (gpgsm_dump_string): New.
2088 (print_dn): Replaced by above.
2090 2002-01-22 Werner Koch <wk@gnupg.org>
2092 * certpath.c (unknown_criticals): New.
2094 (gpgsm_validate_path): Check validity, CA attribute, path length
2095 and unknown critical extensions.
2097 2002-01-21 Werner Koch <wk@gnupg.org>
2099 * gpgsm.c: Add option --enable-crl-checks.
2101 * call-agent.c (start_agent): Implemented socket based access.
2102 * call-dirmngr.c (start_dirmngr): Ditto.
2104 2002-01-20 Werner Koch <wk@gnupg.org>
2106 * server.c (option_handler): New.
2107 (gpgsm_server): Register it with assuan.
2109 2002-01-19 Werner Koch <wk@gnupg.org>
2111 * server.c (gpgsm_server): Use assuan_deinit_server and setup
2112 assuan logging if enabled.
2113 * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2116 * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2118 2002-01-15 Werner Koch <wk@gnupg.org>
2120 * import.c (gpgsm_import): Just do a basic cert check before
2122 * certpath.c (gpgsm_basic_cert_check): New.
2124 * keydb.c (keydb_store_cert): New.
2125 * import.c (store_cert): Removed and change all caller to use
2127 * verify.c (store_cert): Ditto.
2129 * certlist.c (gpgsm_add_to_certlist): Validate the path
2131 * certpath.c (gpgsm_validate_path): Check the trust list.
2132 * call-agent.c (gpgsm_agent_istrusted): New.
2134 2002-01-14 Werner Koch <wk@gnupg.org>
2136 * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2137 * certlist.c (gpgsm_find_cert): New.
2139 2002-01-13 Werner Koch <wk@gnupg.org>
2141 * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2144 2002-01-11 Werner Koch <wk@gnupg.org>
2146 * call-dirmngr.c: New.
2147 * certpath.c (gpgsm_validate_path): Check the CRL here.
2148 * fingerprint.c (gpgsm_get_certid): New.
2149 * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2151 2002-01-10 Werner Koch <wk@gnupg.org>
2153 * base64.c (gpgsm_create_writer): Allow to set the object name
2155 2002-01-08 Werner Koch <wk@gnupg.org>
2157 * keydb.c (spacep): Removed because it is now in util.c
2159 * server.c (cmd_genkey): New.
2160 * certreqgen.c: New. The parameter handling code has been taken
2161 from gnupg/g10/keygen.c version 1.0.6.
2162 * call-agent.c (gpgsm_agent_genkey): New.
2164 2002-01-02 Werner Koch <wk@gnupg.org>
2166 * server.c (rc_to_assuan_status): Removed and changed all callers
2167 to use map_to_assuan_status.
2169 2001-12-20 Werner Koch <wk@gnupg.org>
2171 * verify.c (gpgsm_verify): Implemented non-detached signature
2172 verification. Add OUT_FP arg, initialize a writer and changed all
2174 * server.c (cmd_verify): Pass an out_fp if one has been set.
2176 * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2178 * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2180 (print_time): Renamed to gpgsm_dump_time, made global.
2181 (gpgsm_dump_serial): Take a real S-Expression as argument and
2182 print the first item.
2183 * keylist.c (list_cert_colon): Ditto.
2184 * keydb.c (keydb_search_issuer_sn): Ditto.
2185 * decrypt.c (print_integer_sexp): Removed and made callers
2186 use gpgsm_dump_serial.
2187 * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2189 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2191 * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2193 2001-12-18 Werner Koch <wk@gnupg.org>
2195 * verify.c (print_integer_sexp): Renamed from print_integer and
2196 print the serial number according to the S-Exp rules.
2197 * decrypt.c (print_integer_sexp): Ditto.
2199 2001-12-17 Werner Koch <wk@gnupg.org>
2201 * keylist.c (list_cert_colon): Changed for new return value of
2203 * keydb.c (keydb_search_issuer_sn): Ditto.
2204 * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2205 returingin functions.
2206 * fingerprint.c (gpgsm_get_keygrip): Ditto.
2207 * encrypt.c (encrypt_dek): Ditto
2208 * certcheck.c (gpgsm_check_cms_signature): Ditto
2209 * decrypt.c (prepare_decryption): Ditto.
2210 * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2211 use KsbaSexp type and calculate the length.
2213 * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2215 * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2217 * fingerprint.c (gpgsm_get_keygrip): Use the new
2218 gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2219 therefore the grip values changed.
2221 2001-12-15 Werner Koch <wk@gnupg.org>
2223 * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2225 (gpgsm_create_cms_signature): Removed the commented fake key
2226 code. This makes the function pretty simple.
2228 * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2230 * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2231 * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2233 2001-12-14 Werner Koch <wk@gnupg.org>
2235 * keylist.c (list_cert_colon): Kludge to show an email address
2236 encoded in the subject's DN.
2238 * verify.c (gpgsm_verify): Add hash debug helpers
2239 * sign.c (gpgsm_sign): Ditto.
2241 * base64.c (base64_reader_cb): Reset the linelen when we need to
2242 skip the line and adjusted test; I somehow forgot about DeMorgan.
2244 * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify)
2245 (cmd_import): Close the FDs on success.
2246 (close_message_fd): New.
2247 (input_notify): Setting autodetect_encoding to 0 after initializing
2248 it to 0 is pretty pointless. Easy to fix.
2250 * gpgsm.c (main): New option --debug-wait n, so that it is
2251 possible to attach gdb when used in server mode.
2253 * sign.c (get_default_signer): Use keydb_classify_name here.
2255 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2257 * call-agent.c (LINELENGTH): Removed.
2258 (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2259 (gpgsm_agent_pkdecrypt): Likewise.
2261 2001-12-13 Werner Koch <wk@gnupg.org>
2263 * keylist.c (list_cert_colon): Print alternative names of subject
2264 and a few other values.
2266 2001-12-12 Werner Koch <wk@gnupg.org>
2268 * gpgsm.c (main): New options --assume-{armor,base64,binary}.
2269 * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2271 2001-12-04 Werner Koch <wk@gnupg.org>
2273 * call-agent.c (read_from_agent): Check for inquire responses.
2274 (request_reply): Handle them using a new callback arg, changed all
2276 (gpgsm_agent_pkdecrypt): New.
2278 2001-11-27 Werner Koch <wk@gnupg.org>
2280 * base64.c: New. Changed all other functions to use this instead
2281 of direct creation of ksba_reader/writer.
2282 * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2284 2001-11-26 Werner Koch <wk@gnupg.org>
2286 * gpgsm.c: New option --agent-program
2287 * call-agent.c (start_agent): Allow to override the default path
2290 * keydb.c (keydb_add_resource): Create keybox
2292 * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2294 * server.c (rc_to_assuan_status): New. Use it for all commands.
2297 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
2298 2007, 2008 Free Software Foundation, Inc.
2300 This file is free software; as a special exception the author gives
2301 unlimited permission to copy and/or distribute it, with or without
2302 modifications, as long as this notice is preserved.
2304 This file is distributed in the hope that it will be useful, but
2305 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2306 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.