1 2008-01-29 Marcus Brinkmann <marcus@g10code.de>
3 * keylist.c (list_internal_keys): New variable lastcert. Use it
4 to suppress duplicates which immediately follow each other.
6 2008-01-27 Werner Koch <wk@g10code.com>
8 * import.c (popen_protect_tool): Set bit 7 in the flags for
9 gnupg_spawn_process so that under W32 no window appears.
10 * export.c (popen_protect_tool): Ditto.
12 2007-12-13 Werner Koch <wk@g10code.com>
14 * gpgsm.c (main): Add option --extra-digest-algo.
15 * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
16 * verify.c (gpgsm_verify): Use it. Use the hash algorithm from
19 2007-12-11 Werner Koch <wk@g10code.com>
21 * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
23 * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
24 (cmd_recipient): Start audit session.
26 * gpgsm.c (main): Revamp creation of the audit log.
28 * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
29 * call-agent.c (start_agent): Record an audit event.
30 * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
32 (prepare_dirmngr): New helper for start_dirmngr.
34 * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
36 2007-12-03 Werner Koch <wk@g10code.com>
38 * gpgsm.c (main): All gnupg_reopen_std.
40 h2007-11-22 Werner Koch <wk@g10code.com>
42 * server.c (cmd_getauditlog): New.
43 (register_commands): Register GETAUDITLOG.
45 2007-11-19 Werner Koch <wk@g10code.com>
47 * server.c (cmd_recipient, cmd_signer): Add error reason 11.
49 * gpgsm.c (main): Print a warning if --audit-log is used.
51 2007-11-15 Werner Koch <wk@g10code.com>
53 * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
54 * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
55 * gpgsm.c (main): New option --xauthority.
56 * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
57 * server.c (option_handler): Ad the new options.
59 2007-11-07 Werner Koch <wk@g10code.com>
61 * gpgsm.c (main): New option --audit-log.
62 * server.c (option_handler): New option enable-audit-log.
63 (start_audit_session): New.
64 (cmd_verify): Create audit context.
65 (gpgsm_server): Release the context.
67 * gpgsm.h (struct server_control_s): Add member AUDIT, include
69 * certdump.c (gpgsm_format_sn_issuer): New.
70 * verify.c (hash_data): Return an error code.
71 (gpgsm_verify): Add calls to audit_log.
73 * gpgsm.c (get_status_string): Remove.
74 * gpgsm.h: Include status.h instead of errors.h.
76 2007-10-19 Werner Koch <wk@g10code.com>
78 * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
79 (gpgsm_not_qualified_warning): Ditto.
80 * certdump.c (gpgsm_format_keydesc): Ditto.
82 2007-09-14 Werner Koch <wk@g10code.com>
84 * gpgsm.c (build_lib_list): New.
85 (my_strusage): Print lib info.
87 2007-08-24 Werner Koch <wk@g10code.com>
89 * Makefile.am (common_libs): Swap libkeybox and jnlib.
91 2007-08-23 Werner Koch <wk@g10code.com>
93 * certlist.c (gpgsm_certs_identical_p): New.
94 (gpgsm_add_to_certlist): Ignore duplicate certificates in
95 ambigious name detection.
96 (gpgsm_find_cert): Ditto.
97 * export.c (gpgsm_p12_export): Ditto.
99 2007-08-22 Werner Koch <wk@g10code.com>
101 * certreqgen.c (create_request): Replace open coding by bin2hex.
103 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
105 2007-08-21 Werner Koch <wk@g10code.com>
107 * import.c (parse_p12): Use gnupg_tmpfile.
108 * export.c (export_p12): Ditto.
110 2007-08-20 Werner Koch <wk@g10code.com>
112 * certreqgen.c (read_parameters): Change FP to an estream_t.
113 (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
114 * server.c (cmd_genkey): Adjust for that.
115 * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
116 instead of a temporary file.
118 2007-08-14 Werner Koch <wk@g10code.com>
120 * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name. change
121 the way infostr is xstrdupped.
123 * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
126 2007-08-13 Werner Koch <wk@g10code.com>
128 * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
129 message depend on that.
130 (main): Add avriable RECP_REQUIRED, set ift for encryption
131 commands and pass it to do_add_recipient.
132 (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
134 2007-08-09 Werner Koch <wk@g10code.com>
136 * gpgsm.c (main) [W32]: Enable CRL check by default.
137 (main): Update the default control structure after reading the
139 (gpgsm_parse_validation_model, parse_validation_model): New.
140 (main): New option --validation-model.
141 * certchain.c (gpgsm_validate_chain): Implement this option.
142 * server.c (option_handler): Ditto.
144 * certchain.c (is_cert_still_valid): Reformatted. Add arg
145 FORCE_OCSP. Changed callers to set this flag when using the chain
148 2007-08-08 Werner Koch <wk@g10code.com>
150 * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
151 which prefixed the output with a 3A and cut it off at a 00.
153 * keylist.c (list_cert_raw): Print the certificate ID first and
154 rename "Serial number" to "S/N".
155 (list_cert_std): Ditto.
157 2007-08-07 Werner Koch <wk@g10code.com>
159 * gpgsm.c (main): Allow a string for --faked-system-time.
161 2007-08-06 Werner Koch <wk@g10code.com>
163 Implementation of the chain model.
165 * gpgsm.h (struct rootca_flags_s): Define new members VALID and
167 * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
168 (istrusted_status_cb): Set CHAIN_MODEL.
169 * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
171 (gpgsm_validate_chain): Factor some code out to ...
172 (check_validity_period, ask_marktrusted): .. new.
173 (check_validity_cm_basic, check_validity_cm_main): New.
174 (do_validate_chain): New with all code from gpgsm_validate_chain.
175 New arg ROOTCA_FLAGS.
176 (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
177 model. Add RETFLAGS arg and changed all callers to pass NULL. Add
178 CHECKTIME arg and changed all callers to pass a nil value.
179 (has_validity_model_chain): New.
180 * verify.c (gpgsm_verify): Check for chain model and return as
181 part of the trust status.
183 * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
184 (VALIDATE_FLAG_NO_DIRMNGR): New.
185 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
187 2007-08-03 Werner Koch <wk@g10code.com>
189 * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
192 * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
194 * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
196 2007-08-02 Werner Koch <wk@g10code.com>
198 * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
200 2007-07-17 Werner Koch <wk@g10code.com>
202 * gpgsm.c (main): Implement --default-key.
203 (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
205 2007-07-16 Werner Koch <wk@g10code.com>
207 * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
208 newer assuan versions.
210 2007-07-12 Werner Koch <wk@g10code.com>
212 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
213 when passing an int value.
214 * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
215 (cmd_export, cmd_message, cmd_genkey): Translate file descriptors.
217 2007-07-05 Werner Koch <wk@g10code.com>
219 * Makefile.am (common_libs): Changed order of libs.
221 2007-07-04 Werner Koch <wk@g10code.com>
223 * certchain.c (check_cert_policy): Remove extra checks for
224 GPG_ERR_NO_VALUE. They are not needed since libksba 1.0.1.
225 * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
226 * certlist.c (cert_usage_p, cert_usage_p): Ditto.
228 2007-06-26 Werner Koch <wk@g10code.com>
230 * gpgsm.c (main): Call gnupg_rl_initialize.
231 * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
233 2007-06-25 Werner Koch <wk@g10code.com>
235 * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
236 add new arg FOR_WRITE. Change callers to pass new arg.
238 2007-06-24 Werner Koch <wk@g10code.com>
240 * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
243 2007-06-21 Werner Koch <wk@g10code.com>
245 * certreqgen-ui.c: New.
246 * gpgsm.c (main): Let --gen-key call it.
247 * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
250 * gpgsm.h (ctrl_t): Remove. It is now declared in ../common/util.h.
252 * call-agent.c (start_agent): Factored almost all code out to
255 2007-06-20 Werner Koch <wk@g10code.com>
257 * call-agent.c (start_agent) [W32]: Start the agent on the fly.
259 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
261 * gpgsm.c (main): Percent escape output of --gpgconf-list.
263 2007-06-14 Werner Koch <wk@g10code.com>
265 * call-agent.c (start_agent): Use gnupg_module_name.
266 * call-dirmngr.c (start_dirmngr): Ditto.
267 * export.c (export_p12): Ditto.
268 * import.c (parse_p12): Ditto.
269 * gpgsm.c (run_protect_tool): Ditto.
271 2007-06-12 Werner Koch <wk@g10code.com>
273 * gpgsm.c (main): Replace some calls by init_common_subsystems.
274 (main): Use gnupg_datadir.
275 * qualified.c (read_list): Use gnupg-datadir.
277 2007-06-11 Werner Koch <wk@g10code.com>
279 * Makefile.am (common_libs): Use libcommaonstd macr.
281 * gpgsm.c (main) [W32]: Call pth_init.
283 2007-06-06 Werner Koch <wk@g10code.com>
285 * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
287 * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
289 (format_name_writer): Define only if funopen et al is available.
291 * gpgsm.c (i18n_init): Remove.
293 2007-05-29 Werner Koch <wk@g10code.com>
295 * export.c (gpgsm_p12_export): Print passphrase encoding info only
298 2007-05-18 Marcus Brinkmann <marcus@g10code.de>
300 * qualified.c (gpgsm_qualified_consent,
301 gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
302 * certdump.c (gpgsm_format_keydesc): Likewise.
304 2007-05-07 Werner Koch <wk@g10code.com>
306 * certcheck.c (MY_GCRY_PK_ECDSA): New.
308 2007-04-20 Werner Koch <wk@g10code.com>
310 * gpgsm.c (main): Parameterize failed versions check messages.
312 2007-04-19 Werner Koch <wk@g10code.com>
314 * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2
316 (get_dsa_qbits): New.
317 (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
320 2007-04-18 Werner Koch <wk@g10code.com>
322 * certcheck.c (do_encode_md): Support 160 bit ECDSA.
324 2007-04-13 Werner Koch <wk@g10code.com>
326 * call-agent.c (start_agent): Don't use log_error when using the
327 fallback hack to start the agent. This is bug 782.
329 2007-03-20 Werner Koch <wk@g10code.com>
331 * fingerprint.c (gpgsm_get_fingerprint): Add caching.
332 (gpgsm_get_fingerprint_string): Use bin2hexcolon().
333 (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
334 as much memory as required.
335 (gpgsm_get_keygrip_hexstring): Use bin2hex.
337 * certchain.c (gpgsm_validate_chain): Keep track of the
338 certificate chain and reset the ephemeral flags.
339 * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
340 Changed caller to use a mask of ~0. Return a proper error code if
341 the certificate is not available.
343 * gpgsm.c: Add option --p12-charset.
344 * gpgsm.h (struct opt): Add p12_charset.
345 * export.c (popen_protect_tool): Use new option.
347 2007-03-19 Werner Koch <wk@g10code.com>
349 Changes to let export and key listing use estream to help systems
352 * keylist.c: Use estream in place of stdio functions.
353 * gpgsm.c (open_es_fwrite): New.
354 (main): Use it for the list commands.
355 * server.c (data_line_cookie_functions): New.
356 (data_line_cookie_write, data_line_cookie_close): New.
357 (do_listkeys): Use estream.
359 * certdump.c (gpgsm_print_serial): Changed to use estream.
360 (gpgsm_print_time): Ditto.
361 (pretty_es_print_sexp): New.
362 (gpgsm_es_print_name): New.
363 (print_dn_part): New arg STREAM. Changed all callers.
364 (print_dn_parts): Ditto.
365 * certchain.c (gpgsm_validate_chain): Changed FP to type
367 (do_list, unknown_criticals, allowed_ca, check_cert_policy)
368 (is_cert_still_valid): Ditto.
370 * export.c (gpgsm_export): New arg STREAM.
371 (do_putc, do_fputs): New.
372 (print_short_info): Allow printing to optional STREAM.
373 * server.c (cmd_export): Use stream.
374 * base64.c (do_putc, do_fputs): New.
375 (base64_writer_cb, base64_finish_write): Let them cope with an
376 alternate output function.
377 (plain_writer_cb): New.
378 (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
379 binary output to an estream. Changed call callers.
381 2007-01-31 Werner Koch <wk@g10code.com>
383 * gpgsm.c (main): Let --gen-key print a more informative error
386 2007-01-25 Werner Koch <wk@g10code.com>
388 * Makefile.am (gpgsm_LDADD): Add LIBICONV. Noted by Billy Halsey.
390 2007-01-05 Werner Koch <wk@g10code.com>
392 * certchain.c (unknown_criticals): Add subjectAltName.
394 2006-12-21 Werner Koch <wk@g10code.com>
396 * gpgsm.c: Comment mtrace feature.
398 2006-12-21 Marcus Brinkmann <marcus@g10code.de>
400 * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
402 * encrypt.c (encrypt_dek): Release S_CIPH.
404 2006-12-20 Marcus Brinkmann <marcus@g10code.de>
406 * server.c (gpgsm_server): Release CTRL->server_local.
408 * base64.c: Add new members READER and WRITER in union U2.
409 (gpgsm_create_reader): Initialise CTX->u2.reader.
410 (gpgsm_destroy_reader): Invoke ksba_reader_release. Return early
412 (gpgsm_create_writer): Initialise CTX->u2.writer.
413 (gpgsm_destroy_writer): Invoke ksba_writer_release. Return early
416 2006-12-18 Marcus Brinkmann <marcus@g10code.de>
418 * fingerprint.c (gpgsm_get_fingerprint): Close MD.
420 2006-11-24 Werner Koch <wk@g10code.com>
422 * certdump.c (parse_dn_part): Take '#' as a special character only
423 at the beginning of a string.
425 2006-11-21 Werner Koch <wk@g10code.com>
427 * certdump.c (my_funopen_hook_ret_t): New.
428 (format_name_writer): Use it for the return value.
430 2006-11-14 Werner Koch <wk@g10code.com>
432 * server.c (skip_options): Skip leading spaces.
433 (has_option): Honor "--".
434 (cmd_export): Add option --data to do an inline export. Skip all
437 * certdump.c (gpgsm_fpr_and_name_for_status): New.
438 * verify.c (gpgsm_verify): Use it to print correct status messages.
440 2006-11-11 Werner Koch <wk@g10code.com>
442 * server.c (skip_options): New.
444 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
446 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
448 2006-10-23 Werner Koch <wk@g10code.com>
450 * gpgsm.c (main): Remap common cipher algo names to their OIDs.
451 (main): New command --gpgconf-test.
453 2006-10-20 Werner Koch <wk@g10code.com>
455 * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
457 2006-10-18 Werner Koch <wk@g10code.com>
459 * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
460 testing for GPG_ERR_NO_DATA.
461 * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
462 * certchain.c (check_cert_policy): Ditto.
464 * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
465 chain length available.
467 2006-10-17 Werner Koch <wk@g10code.com>
469 * gpgsm.c: No need for pth.h.
470 (main): or to init it. It used to be hack for W32.
472 * sign.c (gpgsm_get_default_cert): Changed to return only
473 certificates usable for signing.
475 2006-10-16 Werner Koch <wk@g10code.com>
477 * certchain.c (already_asked_marktrusted)
478 (set_already_asked_marktrusted): New.
479 (gpgsm_validate_chain) <not trusted>: Keep track of certificates
480 we already asked for.
482 2006-10-11 Werner Koch <wk@g10code.com>
484 * certreqgen.c (proc_parameters, create_request): Allow for
485 creation directly from a card.
486 * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
487 (gpgsm_scd_pksign): New.
489 2006-10-06 Werner Koch <wk@g10code.com>
491 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
492 (gpgsm_LDADD): Ditto.
494 2006-10-05 Werner Koch <wk@g10code.com>
496 * certcheck.c (do_encode_md): Check that the has algo is valid.
498 2006-10-02 Marcus Brinkmann <marcus@g10code.de>
500 * server.c (register_commands): New commands DUMPKEYS and
502 (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
503 (option_handler): Support with-key-data option.
505 2006-09-26 Werner Koch <wk@g10code.com>
507 * certchain.c (gpgsm_validate_chain): More changes for the relax
508 feature. Use certificate reference counting instead of the old
509 explicit tests. Added a missing free.
511 2006-09-25 Werner Koch <wk@g10code.com>
513 * gpgsm.h (struct rootca_flags_s): New.
514 * call-agent.c (istrusted_status_cb): New.
515 (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
516 * keylist.c (list_cert_colon): Use dummy for new arg.
517 * certchain.c (gpgsm_validate_chain): Make use of the relax flag
518 for root certificates.
519 (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
521 2006-09-20 Werner Koch <wk@g10code.com>
523 * gpgsm.c: Add alias command --dump-cert.
525 * Makefile.am: Changes to allow parallel make runs.
527 2006-09-18 Werner Koch <wk@g10code.com>
529 * gpgsm.c (main): Use this to import standard certificates.
530 * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
532 2006-09-14 Werner Koch <wk@g10code.com>
534 Replaced all call gpg_error_from_errno(errno) by
535 gpg_error_from_syserror().
537 2006-09-13 Werner Koch <wk@g10code.com>
539 * keylist.c (list_internal_keys): Print marker line to FP and not
542 * gpgsm.c (main): All list key list commands now make ose of
543 --output. Cleaned up calls to list modes. New command
544 --dump-chain. Renamed --list-sigs to --list-chain and added an
545 alias for the old one.
547 * server.c (cmd_message): Changed to use assuan_command_parse_fd.
548 (option_handler): New option list-to-output.
549 (do_listkeys): Use it.
551 2006-09-06 Werner Koch <wk@g10code.com>
553 * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
555 (CTRL): Removed and changed everywhere to ctrl_t.
558 Replaced all Assuan error codes by libgpg-error codes. Removed
559 all map_to_assuan_status and map_assuan_err.
561 * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
562 switch to gpg-error codes.
563 * server.c (set_error): Adjusted.
565 2006-08-29 Werner Koch <wk@g10code.com>
567 * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
568 complete S-expressions as implemented by the current gpg-agent.
570 * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
573 2006-07-03 Werner Koch <wk@g10code.com>
575 * certreqgen.c (proc_parameters): Print the component label of a
578 2006-06-26 Werner Koch <wk@g10code.com>
580 * certdump.c (gpgsm_cert_log_name): New.
581 * certchain.c (is_cert_still_valid): Log the name of the certificate.
583 2006-06-20 Werner Koch <wk@g10code.com>
585 * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
586 option --include-certs.
588 * keylist.c (list_cert_raw): Print the certid.
590 2006-05-23 Werner Koch <wk@g10code.com>
592 * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
594 * Makefile.am (gpgsm_LDADD): Include ZLIBS.
596 2006-05-19 Marcus Brinkmann <marcus@g10code.de>
598 * keydb.c (keydb_insert_cert): Do not lock here, but only check if
600 (keydb_store_cert): Lock here.
602 * keydb.h (keydb_delete): Accept new argument UNLOCK.
603 * keydb.c (keydb_delete): Likewise. Only unlock if this is set.
604 * delete.c (delete_one): Add new argument to invocation of
607 2006-05-15 Werner Koch <wk@g10code.com>
609 * keylist.c (print_names_raw): Sanitize URI.
611 2006-03-21 Werner Koch <wk@g10code.com>
613 * certchain.c (get_regtp_ca_info): New.
614 (allowed_ca): Use it.
616 2006-03-20 Werner Koch <wk@g10code.com>
618 * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
620 2006-02-17 Werner Koch <wk@g10code.com>
622 * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
624 2005-11-23 Werner Koch <wk@g10code.com>
626 * gpgsm.h: New member QUALSIG_APPROVAL.
627 * sign.c (gpgsm_sign): Print a warning if a certificate is not
629 * qualified.c (gpgsm_qualified_consent): Include a note that this
630 is not approved software.
631 (gpgsm_not_qualified_warning): New.
632 * gpgsm.c (main): Prepared to print a note whether the software
635 2005-11-13 Werner Koch <wk@g10code.com>
637 * call-agent.c (gpgsm_agent_get_confirmation): New.
639 * keylist.c (list_cert_std): Print qualified status.
641 * certchain.c (gpgsm_validate_chain): Check for qualified
644 * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
645 no-chain-validation is used.
647 2005-11-11 Werner Koch <wk@g10code.com>
649 * keylist.c (print_capabilities): Print is_qualified status.
651 2005-10-28 Werner Koch <wk@g10code.com>
653 * certdump.c (pretty_print_sexp): New.
654 (gpgsm_print_name2): Use it here. This allows proper printing of
655 DNS names as used with server certificates.
657 2005-10-10 Werner Koch <wk@g10code.com>
659 * keylist.c: Add pkaAdress OID as reference.
661 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
663 * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
664 ../common/libcommon.a.
666 2005-09-13 Werner Koch <wk@g10code.com>
668 * verify.c (gpgsm_verify): Print a note if the unknown algorithm
670 * sign.c (gpgsm_sign): Ditto.
671 * certcheck.c (gpgsm_check_cert_sig): Ditto.
673 2005-09-08 Werner Koch <wk@g10code.com>
675 * export.c (popen_protect_tool): Add option --have-cert. We
676 probably lost this option with 1.9.14 due to restructuring of
679 2005-07-21 Werner Koch <wk@g10code.com>
681 * gpgsm.c (main): New options --no-log-file and --debug-none.
683 * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
684 to allow enumeration. Changed all callers.
685 (create_request): Process DNS and URI parameters.
687 2005-07-20 Werner Koch <wk@g10code.com>
689 * keylist.c (email_kludge): Reworked.
691 * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
693 * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
695 2005-07-19 Werner Koch <wk@g10code.com>
697 * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
698 Bug accidently introduced while solving the #$%^& gcc
699 signed/unsigned char* warnings.
701 2005-06-15 Werner Koch <wk@g10code.com>
703 * delete.c (delete_one): Changed FPR to unsigned.
704 * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
705 (gpgsm_encrypt): Ditto.
706 * sign.c (gpgsm_sign): Made SIGVAL unsigned.
707 * base64.c (base64_reader_cb): Need to use some casting to get
708 around signed/unsigned char* warnings.
709 * certcheck.c (gpgsm_check_cms_signature): Ditto.
710 (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
711 (do_encode_md): Made NFRAME a size_t.
712 * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
713 (gpgsm_dump_serial): Ditto.
714 (gpgsm_format_serial): Ditto.
715 (gpgsm_dump_string): Ditto.
716 (gpgsm_dump_cert): Ditto.
717 (parse_dn_part): Ditto.
718 (gpgsm_print_name2): Ditto.
719 * keylist.c (email_kludge): Ditto.
720 * certreqgen.c (proc_parameters, create_request): Ditto.
721 (create_request): Ditto.
722 * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
723 (struct cipher_parm_s): Made CIPHERTEXT unsigned.
724 (struct genkey_parm_s): Ditto.
725 * server.c (strcpy_escaped_plus): Made arg S signed char*.
726 * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
727 (gpgsm_get_keygrip): Ditto.
728 * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
729 (keydb_update_cert): Ditto.
730 (classify_user_id): Apply cast to signed/unsigned assignment.
733 2005-06-01 Werner Koch <wk@g10code.com>
735 * misc.c: Include setenv.h.
737 2005-04-21 Werner Koch <wk@g10code.com>
739 * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
740 * certchain.c (gpgsm_validate_chain): Make use of it.
742 * certchain.c (gpgsm_validate_chain): Check revocations even for
743 expired certificates. This is required because on signature
744 verification an expired key is fine whereas a revoked one is not.
746 2005-04-20 Werner Koch <wk@g10code.com>
748 * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
750 2005-04-19 Werner Koch <wk@g10code.com>
752 * certchain.c (check_cert_policy): Print the diagnostic for a open
753 failure of policies.txt only in verbose mode or when it is not
756 2005-04-17 Werner Koch <wk@g10code.com>
758 * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
759 * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
760 this filter. Changed all callers.
762 * certchain.c (find_up_search_by_keyid): New helper.
763 (find_up): Also try using the AKI.keyIdentifier.
764 (find_up_external): Ditto.
766 2005-04-15 Werner Koch <wk@g10code.com>
768 * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
769 well as the keyIdentifier part of the authorityKeyIdentifier.
771 2005-03-31 Werner Koch <wk@g10code.com>
773 * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
774 * call-agent.c (start_agent): Ditto.
776 2005-03-17 Werner Koch <wk@g10code.com>
778 * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
780 * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
781 failed gcry_pk_verify.
782 (find_up): Do an external lookup also for an authorityKeyIdentifier
783 lookup. Factored external lookup code out to ..
784 (find_up_external): .. new.
786 2005-03-03 Werner Koch <wk@g10code.com>
788 * Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
790 2005-01-13 Werner Koch <wk@g10code.com>
792 * certreqgen.c (proc_parameters): Cast printf arg.
794 2004-12-22 Werner Koch <wk@g10code.com>
796 * gpgsm.c (set_binary): New.
797 (main, open_read, open_fwrite): Use it.
799 2004-12-21 Werner Koch <wk@g10code.com>
801 * gpgsm.c (main): Use default_homedir().
802 (main) [W32]: Default to disabled CRL checks.
804 2004-12-20 Werner Koch <wk@g10code.com>
806 * call-agent.c (start_agent): Before starting a pipe server start
807 to connect to a server on the standard socket. Use PATHSEP
808 * call-dirmngr.c (start_dirmngr): Use PATHSEP.
810 * import.c: Include unistd.h for dup and close.
812 2004-12-18 Werner Koch <wk@g10code.com>
814 * gpgsm.h (map_assuan_err): Define in terms of
815 map_assuan_err_with_source.
816 * call-agent.c (start_agent): Pass error source to
817 send_pinentry_environment.
819 2004-12-17 Werner Koch <wk@g10code.com>
821 * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
822 (run_command_status_cb): Return cancel status if gpgsm_status
825 * server.c (gpgsm_status, gpgsm_status2)
826 (gpgsm_status_with_err_code): Return an error code.
827 (gpgsm_status2): Always call va_end().
829 2004-12-15 Werner Koch <wk@g10code.com>
831 * call-dirmngr.c (lookup_status_cb): Send progress messages
833 (isvalid_status_cb): Ditto.
834 (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
835 (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
836 status callback and handle PROGRESS.
838 * misc.c (setup_pinentry_env) [W32]: Don't use it.
840 * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
841 operations and to resolve libassuan symbols.
842 (run_protect_tool) [W32]: Disable it.
844 * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
846 2004-12-07 Werner Koch <wk@g10code.com>
848 * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
849 under W32 we need the w32 pth code from jnlib.
851 * misc.c (setup_pinentry_env) [W32]: Disabled.
853 2004-12-06 Werner Koch <wk@g10code.com>
855 * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
857 * import.c (popen_protect_tool): Simplified by making use of
859 (parse_p12): Likewise, using gnupg_wait_process.
860 * export.c (popen_protect_tool): Ditto.
863 * keydb.c: Don't define DIRSEP_S here.
865 2004-12-02 Werner Koch <wk@g10code.com>
867 * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
868 signature for debugging.
869 (gpgsm_validate_chain): Ditto.
871 2004-11-29 Werner Koch <wk@g10code.com>
873 * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
875 (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE. This
876 now allows to add debug flags on top of a debug-level setting.
878 2004-11-23 Werner Koch <wk@g10code.com>
880 * gpgsm.c: New option --prefer-system-dirmngr.
881 * call-dirmngr.c (start_dirmngr): Implement this option.
883 2004-10-22 Werner Koch <wk@g10code.com>
885 * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
886 request PEM header. This is according to the Sphinx standard.
888 2004-10-08 Moritz Schulte <moritz@g10code.com>
890 * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
891 case the no_chain_validation-return-short-cut is used (fixes
894 2004-10-04 Werner Koch <wk@g10code.com>
896 * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
898 2004-09-30 Werner Koch <wk@g10code.com>
900 * gpgsm.c (i18n_init): Always use LC_ALL.
902 * certdump.c (gpgsm_format_name): Factored code out to ..
903 (gpgsm_format_name2): .. new.
904 (gpgsm_print_name): Factored code out to ..
905 (gpgsm_print_name2): .. new.
906 (print_dn_part): New arg TRANSLATE. Changed all callers.
907 (print_dn_parts): Ditto.
908 (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
909 it to stay UTF-8 but we still want to filter out bad control
912 * Makefile.am: Adjusted for gettext 0.14.
914 * keylist.c (list_cert_colon): Make sure that the expired flag has
915 a higher precedence than the invalid flag.
917 2004-09-29 Werner Koch <wk@g10code.com>
919 * import.c (parse_p12): Write an error status line for bad
920 passphrases. Add new arg CTRL and changed caller.
921 * export.c (export_p12): Likewise.
923 2004-09-14 Werner Koch <wk@g10code.com>
925 * certchain.c (gpgsm_validate_chain): Give expired certificates a
926 higher error precedence and don't bother to check any CRL in that
929 2004-08-24 Werner Koch <wk@g10code.de>
931 * certlist.c: Fixed typo in ocsp OID.
933 2004-08-18 Werner Koch <wk@g10code.de>
935 * certlist.c (gpgsm_cert_use_ocsp_p): New.
936 (cert_usage_p): Support it here.
937 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
939 2004-08-17 Marcus Brinkmann <marcus@g10code.de>
941 * import.c: Fix typo in last change.
943 2004-08-17 Werner Koch <wk@g10code.de>
945 * import.c (check_and_store): Do a full validation if
946 --with-validation is set.
948 * certchain.c (gpgsm_basic_cert_check): Print more detailed error
951 * certcheck.c (do_encode_md): Partly support DSA. Add new arg
952 PKALGO. Changed all callers to pass it.
953 (pk_algo_from_sexp): New.
955 2004-08-16 Werner Koch <wk@g10code.de>
957 * gpgsm.c: New option --fixed-passphrase.
958 * import.c (popen_protect_tool): Pass it to the protect-tool.
960 * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
963 2004-08-06 Werner Koch <wk@g10code.com>
965 * gpgsm.c: New option --with-ephemeral-keys.
966 * keylist.c (list_internal_keys): Set it here.
967 (list_cert_raw): And indicate those keys. Changed all our callers
968 to pass the new arg HD through.
970 2004-07-23 Werner Koch <wk@g10code.de>
972 * certreqgen.c (proc_parameters): Do not allow key length below
975 2004-07-22 Werner Koch <wk@g10code.de>
977 * keylist.c (list_cert_raw): Print the keygrip.
979 2004-07-20 Werner Koch <wk@gnupg.org>
981 * certchain.c (gpgsm_validate_chain): The trust check didn't
982 worked anymore, probably due to the changes at 2003-03-04. Fixed.
984 2004-06-06 Werner Koch <wk@gnupg.org>
986 * certreqgen.c (get_parameter_uint, create_request): Create
987 an extension for key usage when requested.
989 2004-05-12 Werner Koch <wk@gnupg.org>
991 * gpgsm.c (main): Install emergency_cleanup also as an atexit
994 * verify.c (gpgsm_verify): Removed the separate error code
995 handling for KSBA. We use shared error codes anyway.
997 * export.c (export_p12): Removed debugging code.
999 * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1001 2004-05-11 Werner Koch <wk@gnupg.org>
1003 * sign.c (gpgsm_sign): Include the error source in the final error
1005 * decrypt.c (gpgsm_decrypt): Ditto.
1007 * fingerprint.c (gpgsm_get_key_algo_info): New.
1008 * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1009 * keylist.c (list_cert_colon): Really print the algorithm and key
1011 (list_cert_raw, list_cert_std): Ditto.
1012 (list_cert_colon): Reorganized to be able to tell whether a root
1013 certificate is trusted.
1015 * gpgsm.c: New option --debug-allow-core-dump.
1017 * gpgsm.h (opt): Add member CONFIG_FILENAME.
1018 * gpgsm.c (main): Use it here instead of the local var.
1020 * server.c (gpgsm_server): Print some additional information with
1021 the hello in verbose mode.
1023 2004-04-30 Werner Koch <wk@gnupg.org>
1025 * import.c (check_and_store): Do not update the stats for hidden
1026 imports of issuer certs.
1027 (popen_protect_tool): Request statusmessages from the protect-tool.
1028 (parse_p12): Detect status messages. Add new arg STATS and update them.
1029 (print_imported_summary): Include secret key stats.
1031 2004-04-28 Werner Koch <wk@gnupg.org>
1033 * gpgsm.c: New command --keydb-clear-some-cert-flags.
1034 * keydb.c (keydb_clear_some_cert_flags): New.
1035 (keydb_update_keyblock, keydb_set_flags): Change error code
1036 CONFLICT to NOT_LOCKED.
1038 2004-04-26 Werner Koch <wk@gnupg.org>
1040 * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1043 * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)
1044 (gpgsm_agent_genkey, gpgsm_agent_istrusted)
1045 (gpgsm_agent_marktrusted, gpgsm_agent_havekey)
1046 (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1047 (start_agent): New arg CTRL. Send progress item when starting a
1049 * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1050 CTRL to be passed down to the agent function.
1051 * decrypt.c (prepare_decryption): Ditto.
1052 * certreqgen.c (proc_parameters, read_parameters): Ditto.
1053 * certcheck.c (gpgsm_create_cms_signature): Ditto.
1055 2004-04-23 Werner Koch <wk@gnupg.org>
1057 * keydb.c (keydb_add_resource): Try to compress the file on init.
1059 * keylist.c (oidtranstbl): New. OIDs collected from several sources.
1060 (print_name_raw, print_names_raw, list_cert_raw): New.
1061 (gpgsm_list_keys): Check the dump mode and pass it down as
1064 2004-04-22 Werner Koch <wk@gnupg.org>
1066 * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1069 2004-04-13 Werner Koch <wk@gnupg.org>
1071 * misc.c (setup_pinentry_env): New.
1072 * import.c (popen_protect_tool): Call it.
1073 * export.c (popen_protect_tool): Call it.
1075 2004-04-08 Werner Koch <wk@gnupg.org>
1077 * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a
1080 2004-04-07 Werner Koch <wk@gnupg.org>
1082 * gpgsm.c: New option --force-crl-refresh.
1083 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1085 2004-04-05 Werner Koch <wk@gnupg.org>
1087 * server.c (get_status_string): Add STATUS_NEWSIG.
1088 * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1090 * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1091 not just warn if a cert is not suitable; bail out immediately.
1093 2004-04-01 Werner Koch <wk@gnupg.org>
1095 * call-dirmngr.c (isvalid_status_cb): New.
1096 (unhexify_fpr): New. Taken from ../g10/call-agent.c
1097 (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1098 it thru. Detect need to check the respondert cert and do that.
1099 * certchain.c (gpgsm_validate_chain): Add new arg FLAGS. Changed
1102 2004-03-24 Werner Koch <wk@gnupg.org>
1104 * sign.c (gpgsm_sign): Include a short list of capabilities.
1106 2004-03-17 Werner Koch <wk@gnupg.org>
1108 * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1110 2004-03-16 Werner Koch <wk@gnupg.org>
1112 * gpgsm.c (main): Implemented --gpgconf-list.
1114 2004-03-15 Werner Koch <wk@gnupg.org>
1116 * keylist.c (list_cert_colon): Hack to set the expired flag.
1118 2004-03-09 Werner Koch <wk@gnupg.org>
1120 * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1122 * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1124 2004-03-04 Werner Koch <wk@gnupg.org>
1126 * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1128 * certchain.c (is_cert_still_valid): New. Code moved from ...
1129 (gpgsm_validate_chain): ... here because we now need to check at
1130 two places and at a later stage, so that we can pass the issuer
1131 cert down to the dirmngr.
1133 2004-03-03 Werner Koch <wk@gnupg.org>
1135 * call-agent.c (start_agent): Replaced pinentry setup code by a
1136 call to a new common function.
1138 * certdump.c (gpgsm_format_keydesc): Make sure the string is
1141 * export.c (gpgsm_export): Make sure that we don't export more
1142 than one certificate.
1144 2004-03-02 Werner Koch <wk@gnupg.org>
1146 * export.c (create_duptable, destroy_duptable)
1147 (insert_duptable): New.
1148 (gpgsm_export): Avoid duplicates.
1150 2004-02-26 Werner Koch <wk@gnupg.org>
1152 * certchain.c (compare_certs): New.
1153 (gpgsm_validate_chain): Fixed infinite certificate checks after
1156 2004-02-24 Werner Koch <wk@gnupg.org>
1158 * keylist.c (list_cert_colon): Print the fingerprint as the
1159 cert-id for root certificates.
1161 2004-02-21 Werner Koch <wk@gnupg.org>
1163 * keylist.c (list_internal_keys): Return error codes.
1164 (list_external_keys, gpgsm_list_keys): Ditto.
1165 * server.c (do_listkeys): Ditto.
1167 * gpgsm.c (main): Display a key description for --passwd.
1168 * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1170 2004-02-20 Werner Koch <wk@gnupg.org>
1172 * gpgsm.c (main): New option --debug-ignore-expiration.
1173 * certchain.c (gpgsm_validate_chain): Use it here.
1175 * certlist.c (cert_usage_p): Apply extKeyUsage.
1177 2004-02-19 Werner Koch <wk@gnupg.org>
1179 * export.c (export_p12, popen_protect_tool)
1180 (gpgsm_p12_export): New.
1181 * gpgsm.c (main): New command --export-secret-key-p12.
1183 2004-02-18 Werner Koch <wk@gnupg.org>
1185 * gpgsm.c (set_debug): Set the new --debug-level flags.
1186 (main): New option --gpgconf-list.
1187 (main): Do not setup -u and -r keys when not required.
1188 (main): Setup the used character set.
1190 * keydb.c (keydb_add_resource): Print a hint to start the
1193 2004-02-17 Werner Koch <wk@gnupg.org>
1195 * gpgsm.c: Fixed value parsing for --with-validation.
1196 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1197 * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1199 * gpgsm.c: New option --with-md5-fingerprint.
1200 * keylist.c (list_cert_std): Print MD5 fpr.
1202 * gpgsm.c: New options --with-validation.
1203 * server.c (option_handler): New option "with-validation".
1204 * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1205 WITH_VALIDATION. Changed callers to set it.
1206 (list_external_cb, list_external_keys): Pass CTRL to the callback.
1207 (list_cert_colon): Add arg CTRL. Check validation if requested.
1208 * certchain.c (unknown_criticals, allowed_ca, check_cert_policy)
1209 (gpgsm_validate_chain): New args LISTMODE and FP.
1210 (do_list): New helper for info output.
1211 (find_up): New arg FIND_NEXT.
1212 (gpgsm_validate_chain): After a bad signature try again with other
1215 * import.c (print_imported_status): New arg NEW_CERT. Print
1216 additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1217 (check_and_store): Always call above function after import.
1218 * server.c (get_status_string): Added STATUS_IMPORT_OK.
1220 2004-02-13 Werner Koch <wk@gnupg.org>
1222 * certcheck.c (gpgsm_create_cms_signature): Format a description
1223 for use by the pinentry.
1224 * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1225 * certdump.c (format_name_cookie, format_name_writer)
1226 (gpgsm_format_name): New.
1227 (gpgsm_format_serial): New.
1228 (gpgsm_format_keydesc): New.
1229 * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1230 (gpgsm_agent_pkdecrypt): Ditto.
1232 * encrypt.c (init_dek): Check for too weak algorithms.
1234 * import.c (parse_p12, popen_protect_tool): New.
1236 * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1237 Changed all callers.
1238 (base64_reader_cb): Handle it here.
1239 (gpgsm_reader_eof_seen): New.
1240 (base64_reader_cb): Set a flag for EOF.
1241 (simple_reader_cb): Ditto.
1243 2004-02-12 Werner Koch <wk@gnupg.org>
1245 * gpgsm.h, gpgsm.c: New option --protect-tool-program.
1246 * gpgsm.c (run_protect_tool): Use it.
1248 2004-02-11 Werner Koch <wk@gnupg.org>
1250 * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
1251 will allow to override directory names at make time.
1253 2004-02-02 Werner Koch <wk@gnupg.org>
1255 * import.c (check_and_store): Import certificates even with
1256 missing issuer's cert. Fixed an "depending on the verbose
1259 * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
1262 * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
1264 (list_internal_keys): Retrieve validity flag.
1265 (list_external_cb): Pass 0 as validity flag.
1266 * keydb.c (keydb_get_flags, keydb_set_flags): New.
1267 (keydb_set_cert_flags): New.
1268 (lock_all): Return a proper error code.
1270 (keydb_delete): Don't lock but check that it has been locked.
1271 (keydb_update_keyblock): Ditto.
1272 * delete.c (delete_one): Take a lock.
1274 2004-01-30 Werner Koch <wk@gnupg.org>
1276 * certchain.c (check_cert_policy): Fixed read error checking.
1277 (check_cert_policy): With no critical policies issue only a
1278 warning if the policy file does not exists.
1280 * sign.c (add_certificate_list): Decrement N for the first cert.
1282 2004-01-29 Werner Koch <wk@gnupg.org>
1284 * certdump.c (parse_dn_part): Map common OIDs to human readable
1285 labels. Make sure that a value won't get truncated if it includes
1288 2004-01-28 Werner Koch <wk@gnupg.org>
1290 * certchain.c (gpgsm_validate_chain): Changed the message printed
1291 for an untrusted root certificate.
1293 2004-01-27 Werner Koch <wk@gnupg.org>
1295 * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
1296 (print_dn_part): Do not delimit multiple RDN by " + ". Handle
1297 multi-valued RDNs in a special way, i.e. in the order specified by
1299 (print_dn_parts): Simplified.
1301 2004-01-16 Werner Koch <wk@gnupg.org>
1303 * sign.c (gpgsm_sign): Print an error message on all failures.
1304 * decrypt.c (gpgsm_decrypt): Ditto.
1306 2003-12-17 Werner Koch <wk@gnupg.org>
1308 * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
1309 (cmd_encrypt): Add all enrypt-to marked certs to the list.
1310 * encrypt.c (gpgsm_encrypt): Check that real recipients are
1312 * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
1313 options work. Pass the list of recients to gpgsm_server.
1314 * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
1315 (opt): Add NO_ENCRYPT_TO.
1316 * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
1317 Changed all callers and ignore duplicate entries.
1318 (is_cert_in_certlist): New.
1319 (gpgsm_add_cert_to_certlist): New.
1321 * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
1322 (gpgsm_dump_serial): Ditto.
1324 * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
1326 2003-12-16 Werner Koch <wk@gnupg.org>
1328 * gpgsm.c (main): Set the prefixes for assuan logging.
1330 * sign.c (gpgsm_sign): Add validation checks for the default
1333 * gpgsm.c: Add -k as alias for --list-keys and -K for
1336 2003-12-15 Werner Koch <wk@gnupg.org>
1338 * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
1339 not need for real strong random here and it even better protect
1340 the random bits used for the key.
1342 2003-12-01 Werner Koch <wk@gnupg.org>
1344 * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
1345 (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
1346 * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
1347 * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
1348 proceed accordingly.
1350 2003-11-19 Werner Koch <wk@gnupg.org>
1352 * verify.c (gpgsm_verify): Use "0" instead of an empty string for
1353 the VALIDSIG status.
1355 2003-11-18 Werner Koch <wk@gnupg.org>
1357 * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
1359 * certchain.c (unknown_criticals): Fixed an error code test.
1361 2003-11-12 Werner Koch <wk@gnupg.org>
1363 Adjusted for API changes in Libksba.
1365 2003-10-31 Werner Koch <wk@gnupg.org>
1367 * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
1368 * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
1369 * sign.c (gpgsm_sign): Ditto.
1370 * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
1371 * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
1374 2003-10-25 Werner Koch <wk@gnupg.org>
1376 * certreqgen.c (read_parameters): Fixed faulty of !spacep().
1378 2003-08-20 Marcus Brinkmann <marcus@g10code.de>
1380 * encrypt.c (encode_session_key): Allocate enough space. Cast key
1381 byte to unsigned char to prevent sign extension.
1382 (encrypt_dek): Check return value before error.
1384 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1386 * encrypt.c (encode_session_key): Use new Libgcrypt interface.
1388 2003-07-31 Werner Koch <wk@gnupg.org>
1390 * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
1392 2003-07-29 Werner Koch <wk@gnupg.org>
1394 * gpgsm.c (main): Add secmem features and set the random seed file.
1395 (gpgsm_exit): Update the random seed file and enable debug output.
1397 2003-07-27 Werner Koch <wk@gnupg.org>
1399 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1401 2003-06-24 Werner Koch <wk@gnupg.org>
1403 * server.c (gpgsm_status_with_err_code): New.
1404 * verify.c (gpgsm_verify): Use it here instead of the old
1407 * verify.c (strtimestamp): Renamed to strtimestamp_r
1409 Adjusted for changes in the libgcrypt API. Some more fixes for the
1412 2003-06-04 Werner Koch <wk@gnupg.org>
1414 * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
1415 Include new membuf header and changed used type.
1417 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1419 2003-06-03 Werner Koch <wk@gnupg.org>
1421 Changed all error codes in all files to the new libgpg-error scheme.
1423 * gpgsm.h: Include gpg-error.h .
1424 * Makefile.am: Link with libgpg-error.
1426 2003-04-29 Werner Koch <wk@gnupg.org>
1428 * Makefile.am: Use libassuan. Don't override LDFLAGS anymore.
1429 * server.c (register_commands): Adjust for new Assuan semantics.
1431 2002-12-03 Werner Koch <wk@gnupg.org>
1433 * call-agent.c (gpgsm_agent_passwd): New.
1434 * gpgsm.c (main): New command --passwd and --call-protect-tool
1435 (run_protect_tool): New.
1437 2002-11-25 Werner Koch <wk@gnupg.org>
1439 * verify.c (gpgsm_verify): Handle content-type attribute.
1441 2002-11-13 Werner Koch <wk@gnupg.org>
1443 * call-agent.c (start_agent): Try to use $GPG_TTY instead of
1444 ttyname. Changed ttyname to test stdin becuase it can be assumed
1445 that output redirection is more common that input redirection.
1447 2002-11-12 Werner Koch <wk@gnupg.org>
1449 * gpgsm.c: New command --call-dirmngr.
1450 * call-dirmngr.c (gpgsm_dirmngr_run_command)
1451 (run_command_inq_cb,run_command_cb)
1452 (run_command_status_cb): New.
1454 2002-11-11 Werner Koch <wk@gnupg.org>
1456 * certcheck.c (gpgsm_check_cms_signature): Don't double free
1457 s_sig but free s_pkey at leave.
1459 2002-11-10 Werner Koch <wk@gnupg.org>
1461 * gpgsm.c: Removed duplicate --list-secret-key entry.
1463 2002-09-19 Werner Koch <wk@gnupg.org>
1465 * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
1467 * certchain.c (find_up): Print info when the cert was not found
1468 by the autorithyKeyIdentifier.
1470 2002-09-03 Werner Koch <wk@gnupg.org>
1472 * gpgsm.c (main): Disable the internal libgcrypt locking.
1474 2002-08-21 Werner Koch <wk@gnupg.org>
1476 * import.c (print_imported_summary): Cleaned up. Print new
1478 (check_and_store): Update non_imported counter.
1479 (print_import_problem): New.
1480 (check_and_store): Print error status message.
1481 * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
1483 2002-08-20 Werner Koch <wk@gnupg.org>
1485 * gpgsm.c (main): Use the log file only in server mode.
1487 * import.c (print_imported_summary): New.
1488 (check_and_store): Update the counters, take new argument.
1489 (import_one): Factored out core of gpgsm_import.
1490 (gpgsm_import): Print counters.
1491 (gpgsm_import_files): New.
1492 * gpgsm.c (main): Use the new function for import.
1494 2002-08-19 Werner Koch <wk@gnupg.org>
1496 * decrypt.c (gpgsm_decrypt): Return a better error status token.
1497 * verify.c (gpgsm_verify): Don't error on messages with no signing
1498 time or no message digest. This is only the case for messages
1499 without any signed attributes.
1501 2002-08-16 Werner Koch <wk@gnupg.org>
1503 * certpath.c: Renamed to ..
1504 * certchain.c: this. Renamed all all other usages of "path" in the
1505 context of certificates to "chain".
1507 * call-agent.c (learn_cb): Special treatment when the issuer
1508 certificate is missing.
1510 2002-08-10 Werner Koch <wk@gnupg.org>
1512 * Makefile.am (INCLUDES): Add definition for localedir.
1514 * keylist.c (list_cert_colon): Print the short fingerprint in the
1516 * fingerprint.c (gpgsm_get_short_fingerprint): New.
1517 * verify.c (gpgsm_verify): Print more verbose info for a good
1520 2002-08-09 Werner Koch <wk@gnupg.org>
1522 * decrypt.c (prepare_decryption): Hack to detected already
1525 * gpgsm.c (emergency_cleanup): New.
1526 (main): Initialize the signal handler.
1528 * sign.c (gpgsm_sign): Reset the hash context for subsequent
1529 signers and release it at the end.
1531 2002-08-05 Werner Koch <wk@gnupg.org>
1533 * server.c (cmd_signer): New command "SIGNER"
1534 (register_commands): Register it.
1535 (cmd_sign): Pass the signer list to gpgsm_sign.
1536 * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
1537 for secret key if set and changed all callers.
1538 * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
1540 * gpgsm.c (main): Support more than one -u.
1542 * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
1543 which is actually what gets returned from add_to_certlist.
1545 2002-07-26 Werner Koch <wk@gnupg.org>
1547 * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
1548 (gpgsm_check_cms_signature): Ditto.
1550 2002-07-22 Werner Koch <wk@gnupg.org>
1552 * keydb.c (keydb_add_resource): Register a lock file.
1553 (lock_all, unlock_all): Implemented.
1556 * gpgsm.c: Made --delete-key work.
1557 * server.c (cmd_delkeys): New.
1558 (register_commands): New command DELKEYS.
1560 * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
1561 used and a STATUS_ERROR with the algorithm oid.
1563 2002-07-03 Werner Koch <wk@gnupg.org>
1565 * server.c (gpgsm_status2): Insert a blank between all optional
1566 arguments when using assuan.
1567 * server.c (cmd_recipient): No more need for extra blank in constants.
1568 * import.c (print_imported_status): Ditto.
1569 * gpgsm.c (main): Ditto.
1571 2002-07-02 Werner Koch <wk@gnupg.org>
1573 * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
1576 * certpath.c (check_cert_policy): Don't use log_error to print a
1579 * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
1581 * call-agent.c (learn_cb): Print info message only for real imports.
1583 * import.c (gpgsm_import): Moved duplicated code to ...
1584 (check_and_store): new function. Added magic to import the entire
1585 chain. Print status only for real imports and moved printing code
1587 (print_imported_status): New.
1589 * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
1590 call in very verbose mode.
1592 * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
1593 with the server mode.
1595 2002-06-29 Werner Koch <wk@gnupg.org>
1597 * gpgsm.c: New option --auto-issuer-key-retrieve.
1598 * certpath.c (find_up): Try to retrieve an issuer key from an
1599 external source and from the ephemeral key DB.
1600 (find_up_store_certs_cb): New.
1602 * keydb.c (keydb_set_ephemeral): Does now return the old
1603 state. Call the backend only when required.
1605 * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
1606 (lookup_status_cb): Issue status only when CTRL is not NULL.
1607 (gpgsm_dirmngr_lookup): Document that CTRL is optional.
1609 * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
1611 2002-06-28 Werner Koch <wk@gnupg.org>
1613 * server.c (cmd_recipient): Add more reason codes.
1615 2002-06-27 Werner Koch <wk@gnupg.org>
1617 * certpath.c (gpgsm_basic_cert_check): Use
1618 --debug-no-path-validation to also bypass this basic check.
1620 * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
1622 * call-agent.c (start_agent): Create and pass the list of FD to
1623 keep in the child to assuan.
1624 * call-dirmngr.c (start_dirmngr): Ditto.
1626 2002-06-26 Werner Koch <wk@gnupg.org>
1628 * import.c (gpgsm_import): Print an STATUS_IMPORTED.
1630 * gpgsm.c: --debug-no-path-validation does not take an argument.
1632 2002-06-25 Werner Koch <wk@gnupg.org>
1634 * certdump.c (print_dn_part): Always print a leading slash,
1635 removed NEED_DELIM arg and changed caller.
1637 * export.c (gpgsm_export): Print LFs to FP and not stdout.
1638 (print_short_info): Ditto. Make use of gpgsm_print_name.
1640 * server.c (cmd_export): Use output-fd instead of data lines; this
1641 was actually the specified way.
1643 2002-06-24 Werner Koch <wk@gnupg.org>
1645 * gpgsm.c: Removed duped help entry for --list-keys.
1647 * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
1649 * certpath.c (gpgsm_validate_path): Use it here instead of the
1652 * certpath.c (check_cert_policy): Return No_Policy_Match if the
1653 policy file could not be opened.
1655 2002-06-20 Werner Koch <wk@gnupg.org>
1657 * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
1658 certificate with the required key usage.
1660 * gpgsm.c (main): Fixed a segv when using --outfile without an
1663 * keylist.c (print_capabilities): Also check for non-repudiation
1664 and data encipherment.
1665 * certlist.c (cert_usage_p): Test for signing and encryption was
1666 swapped. Add a case for certification usage, handle
1667 non-repudiation and data encipherment.
1668 (gpgsm_cert_use_cert_p): New.
1669 (gpgsm_add_to_certlist): Added a CTRL argument and changed all
1671 * certpath.c (gpgsm_validate_path): Use it here to print a status
1672 message. Added a CTRL argument and changed all callers to pass it.
1673 * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
1675 * verify.c (gpgsm_verify): Ditto.
1676 * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
1678 2002-06-19 Werner Koch <wk@gnupg.org>
1680 * call-agent.c (learn_cb): Use log_info instead of log_error on
1683 * keydb.c (keydb_set_ephemeral): New.
1684 (keydb_store_cert): New are ephemeral, changed all callers.
1685 * keylist.c (list_external_cb): Store cert as ephemeral.
1686 * export.c (gpgsm_export): Kludge to export epehmeral certificates.
1688 * gpgsm.c (main): New command --list-external-keys.
1690 2002-06-17 Werner Koch <wk@gnupg.org>
1692 * certreqgen.c (read_parameters): Improved error handling.
1693 (gpgsm_genkey): Print error message.
1695 2002-06-13 Werner Koch <wk@gnupg.org>
1697 * gpgsm.c (main): New option --log-file.
1699 2002-06-12 Werner Koch <wk@gnupg.org>
1701 * call-dirmngr.c (lookup_status_cb): New.
1702 (gpgsm_dirmngr_lookup): Use the status CB. Add new arg CTRL and
1703 changed caller to pass it.
1705 * gpgsm.c (open_fwrite): New.
1706 (main): Allow --output for --verify.
1708 * sign.c (hash_and_copy_data): New.
1709 (gpgsm_sign): Implemented normal (non-detached) signatures.
1710 * gpgsm.c (main): Ditto.
1712 * certpath.c (gpgsm_validate_path): Special error handling for
1715 2002-06-10 Werner Koch <wk@gnupg.org>
1717 * server.c (get_status_string): Add STATUS_ERROR.
1719 * certpath.c (gpgsm_validate_path): Tweaked the error checking to
1720 return error codes in a more sensitive way.
1721 * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
1722 CA certificate and when the certificate has been revoked. Issue
1723 TRUST_FULLY even when the cert has expired. Append an error token
1724 to these status lines. Issue the new generic error status when a
1725 cert was not found and when leaving the function.
1727 2002-06-04 Werner Koch <wk@gnupg.org>
1729 * gpgsm.c (main): New command --list-sigs
1730 * keylist.c (list_cert_std): New. Use it whenever colon mode is
1732 (list_cert_chain): New.
1734 2002-05-31 Werner Koch <wk@gnupg.org>
1736 * gpgsm.c (main): Don't print the "go ahead" message for an
1739 2002-05-23 Werner Koch <wk@gnupg.org>
1741 * import.c (gpgsm_import): Add error messages.
1743 2002-05-21 Werner Koch <wk@gnupg.org>
1745 * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
1746 (list_external_keys): New.
1747 (gpgsm_list_keys): Dispatcher for above.
1748 * call-dirmngr.c (lookup_cb,pattern_from_strlist)
1749 (gpgsm_dirmngr_lookup): New.
1750 * server.c (option_handler): Handle new option --list-mode.
1751 (do_listkeys): Handle options and actually use the mode argument.
1752 (get_status_string): New code TRUNCATED.
1754 * import.c (gpgsm_import): Try to identify the type of input and
1755 handle certs-only messages.
1757 2002-05-14 Werner Koch <wk@gnupg.org>
1759 * gpgsm.c: New option --faked-system-time
1760 * sign.c (gpgsm_sign): And use it here.
1761 * certpath.c (gpgsm_validate_path): Ditto.
1763 2002-05-03 Werner Koch <wk@gnupg.org>
1765 * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
1767 * verify.c (gpgsm_verify): Tweaked usage of log_debug and
1768 log_error. Return EXPSIG status and add expiretime to VALIDSIG.
1770 2002-04-26 Werner Koch <wk@gnupg.org>
1772 * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
1775 * call-agent.c (start_agent): Be more silent without -v.
1776 * call-dirmngr.c (start_dirmngr): Ditto.
1778 2002-04-25 Werner Koch <wk@gnupg.org>
1780 * call-agent.c (start_agent): Make copies of old locales and check
1783 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
1785 * call-agent.c (start_agent): Fix error handling logic so the
1786 locale is always correctly reset.
1788 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
1790 * server.c (option_handler): Accept display, ttyname, ttytype,
1791 lc_ctype and lc_messages options.
1792 * gpgsm.c (main): Allocate memory for these options.
1793 * gpgsm.h (struct opt): Make corresponding members non-const.
1795 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
1797 * gpgsm.h (struct opt): New members display, ttyname, ttytype,
1798 lc_ctype, lc_messages.
1799 * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
1800 oTTYname, oTTYtype, oLCctype, oLCmessages.
1801 (opts): New entries for these options.
1802 (main): Handle these new options.
1803 * call-agent.c (start_agent): Set the various display and tty
1804 parameter after resetting.
1806 2002-04-18 Werner Koch <wk@gnupg.org>
1808 * certreqgen.c (gpgsm_genkey): Write status output on success.
1810 2002-04-15 Werner Koch <wk@gnupg.org>
1812 * gpgsm.c (main): Check ksba version.
1814 * certpath.c (find_up): New to use the authorithKeyIdentifier.
1815 Use it in all other functions to locate the signing cert..
1817 2002-04-11 Werner Koch <wk@gnupg.org>
1819 * certlist.c (cert_usable_p): New.
1820 (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
1821 (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
1822 (gpgsm_add_to_certlist): Check the key usage.
1823 * sign.c (gpgsm_sign): Ditto.
1824 * verify.c (gpgsm_verify): Print a message wehn an unsuitable
1825 certificate was used.
1826 * decrypt.c (gpgsm_decrypt): Ditto
1827 * keylist.c (print_capabilities): Determine values from the cert.
1829 2002-03-28 Werner Koch <wk@gnupg.org>
1831 * keylist.c (list_cert_colon): Fixed listing of crt record; the
1832 issuer is not at the right place. Print a chainingID.
1833 * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
1836 2002-03-21 Werner Koch <wk@gnupg.org>
1839 * gpgsm.c: Add command --export.
1840 * server.c (cmd_export): New.
1842 2002-03-13 Werner Koch <wk@gnupg.org>
1844 * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
1846 2002-03-12 Werner Koch <wk@gnupg.org>
1848 * certpath.c (check_cert_policy): Print the policy list.
1850 * verify.c (gpgsm_verify): Detect certs-only message.
1852 2002-03-11 Werner Koch <wk@gnupg.org>
1854 * import.c (gpgsm_import): Print a notice about imported certificates
1855 when in verbose mode.
1857 * gpgsm.c (main): Print INV_RECP status.
1858 * server.c (cmd_recipient): Ditto.
1860 * server.c (gpgsm_status2): New. Allows for a list of strings.
1861 (gpgsm_status): Divert to gpgsm_status2.
1863 * encrypt.c (gpgsm_encrypt): Don't use a default key when no
1864 recipients are given. Print a NO_RECP status.
1866 2002-03-06 Werner Koch <wk@gnupg.org>
1868 * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
1869 (do_listkeys): new. Add pattern parsing.
1871 * keylist.c (gpgsm_list_keys): Handle selection pattern.
1873 * gpgsm.c: New command --learn-card
1874 * call-agent.c (learn_cb,gpgsm_agent_learn): New.
1876 * gpgsm.c (main): Print error messages for non-implemented commands.
1878 * base64.c (base64_reader_cb): Use case insensitive compare of the
1879 Content-Type string to detect plain base-64.
1881 2002-03-05 Werner Koch <wk@gnupg.org>
1883 * gpgsm.c, gpgsm.h: Add local_user.
1884 * sign.c (gpgsm_get_default_cert): New.
1885 (get_default_signer): Use the new function if local_user is not
1886 set otherwise used that value.
1887 * encrypt.c (get_default_recipient): Removed.
1888 (gpgsm_encrypt): Use gpgsm_get_default_cert.
1890 * verify.c (gpgsm_verify): Better error text for a bad signature
1891 found by comparing the hashs.
1893 2002-02-27 Werner Koch <wk@gnupg.org>
1895 * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
1898 2002-02-25 Werner Koch <wk@gnupg.org>
1900 * server.c (option_handler): Allow to use -2 for "send all certs
1901 except the root cert".
1902 * sign.c (add_certificate_list): Implement it here.
1903 * certpath.c (gpgsm_is_root_cert): New.
1905 2002-02-19 Werner Koch <wk@gnupg.org>
1907 * certpath.c (check_cert_policy): New.
1908 (gpgsm_validate_path): And call it from here.
1909 * gpgsm.c (main): New options --policy-file,
1910 --disable-policy-checks and --enable-policy-checks.
1911 * gpgsm.h (opt): Added policy_file, no_policy_checks.
1913 2002-02-18 Werner Koch <wk@gnupg.org>
1915 * certpath.c (gpgsm_validate_path): Ask the agent to add the
1916 certificate into the trusted list.
1917 * call-agent.c (gpgsm_agent_marktrusted): New.
1919 2002-02-07 Werner Koch <wk@gnupg.org>
1921 * certlist.c (gpgsm_add_to_certlist): Check that the specified
1922 name identifies a certificate unambiguously.
1923 (gpgsm_find_cert): Ditto.
1925 * server.c (cmd_listkeys): Check that the data stream is available.
1926 (cmd_listsecretkeys): Ditto.
1928 (cmd_sign): Fix ambiguousity in option recognition.
1930 * gpgsm.c (main): Enable --logger-fd.
1932 * encrypt.c (gpgsm_encrypt): Increased buffer size for better
1935 * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
1938 * keylist.c (list_cert_colon): Filter out control characters.
1940 2002-02-06 Werner Koch <wk@gnupg.org>
1942 * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
1944 * server.c (reset_notify): Close input and output FDs.
1945 (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
1946 (cmd_genkey): Close the FDs and release the recipient list even in
1949 2002-02-01 Marcus Brinkmann <marcus@g10code.de>
1951 * sign.c (gpgsm_sign): Do not release certificate twice.
1953 2002-01-29 Werner Koch <wk@gnupg.org>
1955 * call-agent.c (gpgsm_agent_havekey): New.
1956 * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
1957 when we know that the secret key is available.
1958 (gpgsm_list_keys): New arg MODE, check whether a secret key is
1959 available. Changed all callers.
1960 * gpgsm.c (main): New command --list-secret-keys.
1961 * server.c (cmd_listsecretkeys): New.
1962 (cmd_listkeys): Return secret keys with "crs" record.
1964 2002-01-28 Werner Koch <wk@gnupg.org>
1966 * certreqgen.c (create_request): Store the email address in the req.
1968 2002-01-25 Werner Koch <wk@gnupg.org>
1970 * gpgsm.c (main): Disable core dumps.
1972 * sign.c (add_certificate_list): New.
1973 (gpgsm_sign): Add the certificates to the CMS object.
1974 * certpath.c (gpgsm_walk_cert_chain): New.
1975 * gpgsm.h (server_control_s): Add included_certs.
1976 * gpgsm.c: Add option --include-certs.
1977 (gpgsm_init_default_ctrl): New.
1979 * server.c (gpgsm_server): Ditto.
1980 (option_handler): Support --include-certs.
1982 2002-01-23 Werner Koch <wk@gnupg.org>
1984 * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
1985 * certdump.c (gpgsm_dump_string): New.
1986 (print_dn): Replaced by above.
1988 2002-01-22 Werner Koch <wk@gnupg.org>
1990 * certpath.c (unknown_criticals): New.
1992 (gpgsm_validate_path): Check validity, CA attribute, path length
1993 and unknown critical extensions.
1995 2002-01-21 Werner Koch <wk@gnupg.org>
1997 * gpgsm.c: Add option --enable-crl-checks.
1999 * call-agent.c (start_agent): Implemented socket based access.
2000 * call-dirmngr.c (start_dirmngr): Ditto.
2002 2002-01-20 Werner Koch <wk@gnupg.org>
2004 * server.c (option_handler): New.
2005 (gpgsm_server): Register it with assuan.
2007 2002-01-19 Werner Koch <wk@gnupg.org>
2009 * server.c (gpgsm_server): Use assuan_deinit_server and setup
2010 assuan logging if enabled.
2011 * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2014 * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2016 2002-01-15 Werner Koch <wk@gnupg.org>
2018 * import.c (gpgsm_import): Just do a basic cert check before
2020 * certpath.c (gpgsm_basic_cert_check): New.
2022 * keydb.c (keydb_store_cert): New.
2023 * import.c (store_cert): Removed and change all caller to use
2025 * verify.c (store_cert): Ditto.
2027 * certlist.c (gpgsm_add_to_certlist): Validate the path
2029 * certpath.c (gpgsm_validate_path): Check the trust list.
2030 * call-agent.c (gpgsm_agent_istrusted): New.
2032 2002-01-14 Werner Koch <wk@gnupg.org>
2034 * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2035 * certlist.c (gpgsm_find_cert): New.
2037 2002-01-13 Werner Koch <wk@gnupg.org>
2039 * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2042 2002-01-11 Werner Koch <wk@gnupg.org>
2044 * call-dirmngr.c: New.
2045 * certpath.c (gpgsm_validate_path): Check the CRL here.
2046 * fingerprint.c (gpgsm_get_certid): New.
2047 * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2049 2002-01-10 Werner Koch <wk@gnupg.org>
2051 * base64.c (gpgsm_create_writer): Allow to set the object name
2053 2002-01-08 Werner Koch <wk@gnupg.org>
2055 * keydb.c (spacep): Removed because it is now in util.c
2057 * server.c (cmd_genkey): New.
2058 * certreqgen.c: New. The parameter handling code has been taken
2059 from gnupg/g10/keygen.c version 1.0.6.
2060 * call-agent.c (gpgsm_agent_genkey): New.
2062 2002-01-02 Werner Koch <wk@gnupg.org>
2064 * server.c (rc_to_assuan_status): Removed and changed all callers
2065 to use map_to_assuan_status.
2067 2001-12-20 Werner Koch <wk@gnupg.org>
2069 * verify.c (gpgsm_verify): Implemented non-detached signature
2070 verification. Add OUT_FP arg, initialize a writer and changed all
2072 * server.c (cmd_verify): Pass an out_fp if one has been set.
2074 * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2076 * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2078 (print_time): Renamed to gpgsm_dump_time, made global.
2079 (gpgsm_dump_serial): Take a real S-Expression as argument and
2080 print the first item.
2081 * keylist.c (list_cert_colon): Ditto.
2082 * keydb.c (keydb_search_issuer_sn): Ditto.
2083 * decrypt.c (print_integer_sexp): Removed and made callers
2084 use gpgsm_dump_serial.
2085 * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2087 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2089 * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2091 2001-12-18 Werner Koch <wk@gnupg.org>
2093 * verify.c (print_integer_sexp): Renamed from print_integer and
2094 print the serial number according to the S-Exp rules.
2095 * decrypt.c (print_integer_sexp): Ditto.
2097 2001-12-17 Werner Koch <wk@gnupg.org>
2099 * keylist.c (list_cert_colon): Changed for new return value of
2101 * keydb.c (keydb_search_issuer_sn): Ditto.
2102 * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2103 returingin functions.
2104 * fingerprint.c (gpgsm_get_keygrip): Ditto.
2105 * encrypt.c (encrypt_dek): Ditto
2106 * certcheck.c (gpgsm_check_cms_signature): Ditto
2107 * decrypt.c (prepare_decryption): Ditto.
2108 * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2109 use KsbaSexp type and calculate the length.
2111 * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2113 * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2115 * fingerprint.c (gpgsm_get_keygrip): Use the new
2116 gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2117 therefore the grip values changed.
2119 2001-12-15 Werner Koch <wk@gnupg.org>
2121 * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2123 (gpgsm_create_cms_signature): Removed the commented fake key
2124 code. This makes the function pretty simple.
2126 * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2128 * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2129 * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2131 2001-12-14 Werner Koch <wk@gnupg.org>
2133 * keylist.c (list_cert_colon): Kludge to show an email address
2134 encoded in the subject's DN.
2136 * verify.c (gpgsm_verify): Add hash debug helpers
2137 * sign.c (gpgsm_sign): Ditto.
2139 * base64.c (base64_reader_cb): Reset the linelen when we need to
2140 skip the line and adjusted test; I somehow forgot about DeMorgan.
2142 * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify)
2143 (cmd_import): Close the FDs on success.
2144 (close_message_fd): New.
2145 (input_notify): Setting autodetect_encoding to 0 after initializing
2146 it to 0 is pretty pointless. Easy to fix.
2148 * gpgsm.c (main): New option --debug-wait n, so that it is
2149 possible to attach gdb when used in server mode.
2151 * sign.c (get_default_signer): Use keydb_classify_name here.
2153 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2155 * call-agent.c (LINELENGTH): Removed.
2156 (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2157 (gpgsm_agent_pkdecrypt): Likewise.
2159 2001-12-13 Werner Koch <wk@gnupg.org>
2161 * keylist.c (list_cert_colon): Print alternative names of subject
2162 and a few other values.
2164 2001-12-12 Werner Koch <wk@gnupg.org>
2166 * gpgsm.c (main): New options --assume-{armor,base64,binary}.
2167 * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2169 2001-12-04 Werner Koch <wk@gnupg.org>
2171 * call-agent.c (read_from_agent): Check for inquire responses.
2172 (request_reply): Handle them using a new callback arg, changed all
2174 (gpgsm_agent_pkdecrypt): New.
2176 2001-11-27 Werner Koch <wk@gnupg.org>
2178 * base64.c: New. Changed all other functions to use this instead
2179 of direct creation of ksba_reader/writer.
2180 * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2182 2001-11-26 Werner Koch <wk@gnupg.org>
2184 * gpgsm.c: New option --agent-program
2185 * call-agent.c (start_agent): Allow to override the default path
2188 * keydb.c (keydb_add_resource): Create keybox
2190 * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2192 * server.c (rc_to_assuan_status): New. Use it for all commands.
2195 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
2196 2007, 2008 Free Software Foundation, Inc.
2198 This file is free software; as a special exception the author gives
2199 unlimited permission to copy and/or distribute it, with or without
2200 modifications, as long as this notice is preserved.
2202 This file is distributed in the hope that it will be useful, but
2203 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2204 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.