Fix for bug#1066.
[gnupg.git] / sm / ChangeLog
blobc59ef06ead9b5651875d13727ca59f0d67da6b29
1 2009-05-27  Werner Koch  <wk@g10code.com>
3         * encrypt.c (encrypt_dek): Make use of make_canon_sexp.
5 2009-05-18  Werner Koch  <wk@g10code.com>
7         * server.c (option_handler): New option "no-encrypt-to".
8         (cmd_encrypt): Make use of it.
10         * gpgsm.c: Remove not implemented --verify-files.
12 2009-04-02  Werner Koch  <wk@g10code.com>
14         * keylist.c (list_cert_std): Print card serial number.
16 2009-04-01  Werner Koch  <wk@g10code.com>
18         * export.c (popen_protect_tool): Add command line option
19         --agent-program and pass flag bit 6.
20         * import.c (popen_protect_tool): Ditto.
22 2009-03-26  Werner Koch  <wk@g10code.com>
24         * gpgsm.c (main): s/def_digest_string/forced_digest_algo/ and
25         activate the --digest-algo option.
26         * gpgsm.h (struct opt): s/def_digest_algo/forced_digest_algo/.
27         * sign.c (gpgsm_sign): Implement --digest-algo.
29         * sign.c (MAX_DIGEST_LEN): Change to 64.
31         * call-agent.c (gpgsm_agent_marktrusted): Format the issuer name.
33 2009-03-25  Werner Koch  <wk@g10code.com>
35         * decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY stati.
36         Fixes bug#1020.
37         * fingerprint.c (gpgsm_get_short_fingerprint): Add arg R_HIGH and
38         change all callers.
40 2009-03-23  Werner Koch  <wk@g10code.com>
42         * delete.c (delete_one): Also delete ephemeral certificates if
43         specified uniquely.
45 2009-03-20  Werner Koch  <wk@g10code.com>
47         * keylist.c (list_internal_keys): Set released cert to NULL.
49         * call-agent.c (learn_status_cb): New.
50         (gpgsm_agent_learn): Use it.
51         (learn_cb): Send a progress for every certificate.
53 2009-03-18  Werner Koch  <wk@g10code.com>
55         * gpgsm.h (struct opt): Move field WITH_EPHEMERAL_KEYS to struct
56         server_control_s.
57         * gpgsm.c (main): Change accordingly.
58         * keylist.c (list_internal_keys): Ditto.
59         * server.c (option_handler): Add "with-ephemeral-keys".
61 2009-03-12  Werner Koch  <wk@g10code.com>
63         * certdump.c (gpgsm_dump_time): Remove.
64         * certdump.c, verify.c, certchain.c
65         * gpgsm.c: s/gpgsm_dump_time/dump_isotime/.
67 2009-03-06  Werner Koch  <wk@g10code.com>
69         * call-agent.c (gpgsm_agent_keyinfo, keyinfo_status_cb): New.
70         * keylist.c (list_cert_colon): Print card S/N.
72         * keylist.c (list_internal_keys): Always list ephemeral keys if
73         specified by keygrip or fingerprint.
74         (list_cert_raw): Always show ephemeral flag.
75         * export.c (gpgsm_export): Export ephemeral keys if specified by
76         keygrip.
78 2009-02-09  Werner Koch  <wk@g10code.com>
80         * gpgsm.c (main): Change default cipher back to 3DES.
82 2009-01-12  Werner Koch  <wk@g10code.com>
84         * keylist.c (print_utf8_extn_raw): Cast printf precision argument.
86 2009-01-08  Werner Koch  <wk@g10code.com>
88         * fingerprint.c (gpgsm_get_keygrip_hexstring): Add error detection.
90 2008-12-10  Werner Koch  <wk@g10code.com>
92         * gpgsm.c (our_cipher_test_algo): Use the GCRY constants as we now
93         require 1.4.
94         (our_md_test_algo): Ditto.  Add SHA224.
95         (main) <aGpgConfList>: Update default cipher algo.
97 2008-12-09  Werner Koch  <wk@g10code.com>
99         * gpgsm.c (main): Call i18n_init before init_common_subsystems.
101 2008-12-05  Werner Koch  <wk@g10code.com>
103         * certreqgen.c (create_request): Provide a custom prompt for the
104         signing.
106         * certdump.c (gpgsm_format_keydesc): Remove debug output.
107         (gpgsm_format_keydesc): Remove saving of errno as xfree is
108         supposed not to change it.  Use the new percent_plus_escape
109         function which also fixes the issue that we did not escaped a
110         percent in the past.
112 2008-11-18  Werner Koch  <wk@g10code.com>
114         * gpgsm.c (make_libversion): New.
115         (my_strusage): Use new function.
116         (build_lib_list): Remove.
118 2008-11-13  Werner Koch  <wk@g10code.com>
120         * gpgsm.c: Remove all unused options. Use ARGPARSE macros.
122 2008-10-28  Werner Koch  <wk@g10code.com>
124         * certdump.c (gpgsm_format_keydesc): Use xtryasprintf and xfree.
125         (gpgsm_es_print_name): Factor code out to ...
126         (gpgsm_es_print_name2): New function.
127         (gpgsm_format_name2, format_name_writer): Use estream so that it
128         works on all platforms.
129         (format_name_writer): Fix reallocation bug.
131 2008-10-23  Werner Koch  <wk@g10code.com>
133         * import.c (popen_protect_tool): Add arg CTRL and assure that the
134         agent is running.  Pass a value for CTRL from all caller.
135         * export.c (popen_protect_tool): Ditto.
137 2008-10-21  Werner Koch  <wk@g10code.com>
139         * call-dirmngr.c (inq_certificate_parm_s): Add field CTRL.
140         (gpgsm_dirmngr_isvalid): Supply a value for that field.
141         (inq_certificate): Add inquiry ISTRUSTED.
143         * call-agent.c (gpgsm_agent_istrusted): Add new optional arg
144         HEXFPR.  Changed all callers.
146 2008-10-20  Werner Koch  <wk@g10code.com>
148         * keydb.c (keydb_locate_writable): Mark unused arg.
149         (keydb_search_kid): Ditto.
150         (keydb_clear_some_cert_flags): Ditto.
151         * server.c (cmd_encrypt): Ditto.
152         (cmd_decrypt, cmd_verify, cmd_import, cmd_genkey): Ditto.
153         * call-agent.c (gpgsm_scd_pksign): Ditto.
154         * call-dirmngr.c (release_dirmngr, release_dirmngr2) 
155         (run_command_cb): Ditto.
156         * certlist.c (gpgsm_add_cert_to_certlist): Ditto.
157         * certchain.c (find_up_dirmngr): Ditto.
158         * keylist.c (print_key_data): Ditto.
159         (list_cert_raw, list_cert_std): Ditto.
160         * qualified.c (gpgsm_is_in_qualified_list): Ditto.
162         * gpgsm.c (set_binary) [!W32]: Mark unused arg.
164 2008-10-17  Werner Koch  <wk@g10code.com>
166         * call-dirmngr.c (start_dirmngr, start_dirmngr2): Reset the lock
167         flag on error.
168         (release_dirmngr, release_dirmngr2): Replace asserts by error messages.
169         (gpgsm_dirmngr_lookup): Replace assert by fatal error message.
171 2008-10-13  Werner Koch  <wk@g10code.com>
173         * gpgsm.c: Add alias --delete-keys.
175 2008-09-30  Werner Koch  <wk@g10code.com>
177         * server.c (cmd_getinfo): New subcommand agent-check.
178         * call-agent.c (gpgsm_agent_send_nop): New.
180 2008-09-29  Werner Koch  <wk@g10code.com>
182         * certcheck.c (MY_GCRY_PK_ECDSA): Remove.  Change users to
183         GCRY_PK_ECDSA.
184         * gpgsm.c (MY_GCRY_PK_ECDSA): Ditto.
185         * sign.c (MY_GCRY_MD_SHA224): Remove change users to GCRY_MD_SHA224.
187 2008-09-04  Werner Koch  <wk@g10code.com>
189         * certdump.c (gpgsm_format_keydesc): Work around a mingw32 bug.
191 2008-09-03  Werner Koch  <wk@g10code.com>
193         * sign.c (MY_GCRY_MD_SHA224): New, so that we don't need libgcrypt
194         1.2. 
196 2008-08-13  Werner Koch  <wk@g10code.com>
198         * keylist.c (list_cert_colon): Print 'f' for validated certs.
200 2008-08-08  Marcus Brinkmann  <marcus@g10code.de>
202         * gpgsm.h (struct server_control_s): Remove member dirmngr_seen.
203         * call-dirmngr.c (dirmngr2_ctx, dirmngr_ctx_locked)
204         (dirmngr2_ctx_locked): New global variables.
205         (prepare_dirmngr): Don't check dirmngr_seen anymore.
206         (start_dirmngr): Move bunch of code to ...
207         (start_dirmngr_ext): ... this new function.
208         (release_dirmngr, start_dirmngr2, release_dirmngr2): New
209         functions.
210         (gpgsm_dirmngr_isvalid): Call release_dirmngr.
211         (gpgsm_dirmngr_lookup): Call release_dirmngr.  If dirmngr_ctx is
212         locked, use dirmngr2_locked.
213         (gpgsm_dirmngr_run_command): Call release_dirmngr.
215 2008-06-25  Werner Koch  <wk@g10code.com>
217         * sign.c (gpgsm_sign): Revamp the hash algorithm selection.
218         * gpgsm.h (struct certlist_s): Add field HASH_ALGO and HASH_ALGO_OID.
220         * qualified.c (gpgsm_qualified_consent): Fix double free.
222         * gpgsm.c (main): Change default cipher algo to AES.
224         * keylist.c (print_utf8_extn_raw, print_utf8_extn): New.
225         (list_cert_raw, list_cert_std): Print the TeleSec restriction
226         extension.
228 2008-06-23  Werner Koch  <wk@g10code.com>
230         * encrypt.c (encode_session_key): Replace xmalloc by xtrymalloc.
231         Use bin2hex instead of open coding the conversion.
232         (encrypt_dek): Init S_DATA.
234 2008-06-13  Marcus Brinkmann  <marcus@ulysses.g10code.com>
236         * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
238 2008-06-12  Marcus Brinkmann  <marcus@g10code.de>
240         * gpgsm.h (struct keyserver_spec): New struct.
241         (opt): Add member keyserver.
242         * gpgsm.c (keyserver_list_free, parse_keyserver_line): New functions.
243         (main): Implement --keyserver option.
244         * call-dirmngr.c (prepare_dirmngr): Send LDAPSERVER commands.
246 2008-05-20  Werner Koch  <wk@g10code.com>
248         * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
249         the export function.  Reported by Marc Mutz.
251 2008-05-06  Werner Koch  <wk@g10code.com>
253         * keylist.c (list_external_keys): Ignore NOT FOUND error code.
254         This is bug#907.
256 2008-04-23  Werner Koch  <wk@g10code.com>
258         * certchain.c (find_up): Make correct C89 code.  Declare variable
259         at the top of the block.  Reported by Alain Guibert.
261 2008-04-09  Werner Koch  <wk@g10code.com>
263         * verify.c (gpgsm_verify): Print the message hash values on error.
265 2008-03-31  Werner Koch  <wk@g10code.com>
267         * call-dirmngr.c (start_dirmngr): Use log_info instead of
268         log_error when falling back to start dirmngr.
270 2008-03-20  Werner Koch  <wk@g10code.com>
272         * certlist.c (gpgsm_add_to_certlist): Always save the first
273         subject and issuer.  Initialize issuer with issuer and not with
274         subject.
275         (same_subject_issuer): Set issuer2 to issuer and not to subject.
277 2008-03-17  Werner Koch  <wk@g10code.com>
279         * certdump.c (my_funopen_hook_size_t): New.
280         (format_name_writer): Use it.
282 2008-03-13  Werner Koch  <wk@g10code.com>
284         * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
285         char issue.
286         (gpgsm_format_keydesc): Remove superfluous test.  Add expire date
287         to the prompt.
289 2008-02-18  Werner Koch  <wk@g10code.com>
291         * certchain.c (gpgsm_is_root_cert): Factor code out to ...
292         (is_root_cert): New.  Extend test for self-issued certificates
293         signed by other CAs.
294         (do_validate_chain, gpgsm_basic_cert_check)
295         (gpgsm_walk_cert_chain): Use it here.
297         * gpgsm.c: Add option --no-common-certs-import.
298         
299         * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
300         (check_cert_policy): Be more silent with --quiet.
302         * gpgsm.c: Add option --disable-dirmngr.
303         * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
304         * call-dirmngr.c (start_dirmngr): Implement option.
306 2008-02-14  Werner Koch  <wk@g10code.com>
308         * server.c (option_handler): Add option allow-pinentry-notify.
309         (gpgsm_proxy_pinentry_notify): New.
310         * call-agent.c (default_inq_cb): New.
311         (gpgsm_agent_pksign, gpgsm_scd_pksign, gpgsm_agent_readkey) 
312         (gpgsm_agent_istrusted, gpgsm_agent_marktrusted) 
313         (gpgsm_agent_passwd, gpgsm_agent_get_confirmation): Call it.
314         (struct cipher_parm_s, struct genkey_parm_s): Add field CTRL.
315         (inq_ciphertext_cb): Test keyword and fallback to default_inq_cb.
316         (inq_genkey_parms): Ditto.
317         (start_agent): Tell agent to send us the pinentry notifications.
319 2008-02-13  Werner Koch  <wk@g10code.com>
321         * call-dirmngr.c (gpgsm_dirmngr_lookup): Add arg CACHE_ONLY.
322         * keylist.c (list_external_keys): Pass false for new arg.
323         * certchain.c (find_up_dirmngr): New.
324         (find_up): Also try to read from the dirmngr cache.
325         (find_up, find_up_external, gpgsm_walk_cert_chain)
326         (gpgsm_basic_cert_check, allowed_ca): Add arg CTRL and changed all
327         callers.
328         * call-agent.c (struct learn_parm_s): Add field CTRL.
329         (gpgsm_agent_learn): Set it.
331 2008-02-11  Werner Koch  <wk@g10code.com>
333         * server.c (cmd_getinfo): New.
334         (gpgsm_server): Register GETINFO.
336 2008-01-29  Marcus Brinkmann  <marcus@g10code.de>
338         * keylist.c (list_internal_keys): New variable lastcert.  Use it
339         to suppress duplicates which immediately follow each other.
341 2008-01-27  Werner Koch  <wk@g10code.com>
343         * import.c (popen_protect_tool): Set bit 7 in the flags for
344         gnupg_spawn_process so that under W32 no window appears.
345         * export.c (popen_protect_tool): Ditto.
347 2007-12-13  Werner Koch  <wk@g10code.com>
349         * gpgsm.c (main): Add option --extra-digest-algo.
350         * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
351         * verify.c (gpgsm_verify): Use it.  Use the hash algorithm from
352         the signature value.
354 2007-12-11  Werner Koch  <wk@g10code.com>
356         * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
358         * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
359         (cmd_recipient): Start audit session.
361         * gpgsm.c (main): Revamp creation of the audit log.
363         * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
364         * call-agent.c (start_agent): Record an audit event.
365         * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
366         it from all callers.
367         (prepare_dirmngr): New helper for start_dirmngr.
369         * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
371 2007-12-03  Werner Koch  <wk@g10code.com>
373         * gpgsm.c (main): Call gnupg_reopen_std.
375 h2007-11-22  Werner Koch  <wk@g10code.com>
377         * server.c (cmd_getauditlog): New.
378         (register_commands): Register GETAUDITLOG.
380 2007-11-19  Werner Koch  <wk@g10code.com>
382         * server.c (cmd_recipient, cmd_signer): Add error reason 11.
384         * gpgsm.c (main): Print a warning if --audit-log is used.
386 2007-11-15  Werner Koch  <wk@g10code.com>
388         * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
389         * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
390         * gpgsm.c (main): New option --xauthority.
391         * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
392         * server.c (option_handler): Ad the new options.
394 2007-11-07  Werner Koch  <wk@g10code.com>
396         * gpgsm.c (main): New option --audit-log.
397         * server.c (option_handler): New option enable-audit-log.
398         (start_audit_session): New.
399         (cmd_verify): Create audit context.
400         (gpgsm_server): Release the context.
402         * gpgsm.h (struct server_control_s): Add member AUDIT, include
403         audit.h.
404         * certdump.c (gpgsm_format_sn_issuer): New.
405         * verify.c (hash_data): Return an error code.
406         (gpgsm_verify): Add calls to audit_log.
408         * gpgsm.c (get_status_string): Remove.
409         * gpgsm.h: Include status.h instead of errors.h.
410         
411 2007-10-19  Werner Koch  <wk@g10code.com>
413         * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
414         (gpgsm_not_qualified_warning): Ditto.
415         * certdump.c (gpgsm_format_keydesc): Ditto.
417 2007-09-14  Werner Koch  <wk@g10code.com>
419         * gpgsm.c (build_lib_list): New.
420         (my_strusage): Print lib info.
422 2007-08-24  Werner Koch  <wk@g10code.com>
424         * Makefile.am (common_libs): Swap libkeybox and jnlib. 
426 2007-08-23  Werner Koch  <wk@g10code.com>
428         * certlist.c (gpgsm_certs_identical_p): New.
429         (gpgsm_add_to_certlist): Ignore duplicate certificates in
430         ambigious name detection.
431         (gpgsm_find_cert): Ditto.
432         * export.c (gpgsm_p12_export): Ditto.
434 2007-08-22  Werner Koch  <wk@g10code.com>
436         * certreqgen.c (create_request): Replace open coding by bin2hex.
438         * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
440 2007-08-21  Werner Koch  <wk@g10code.com>
442         * import.c (parse_p12): Use gnupg_tmpfile.
443         * export.c (export_p12): Ditto.
444         
445 2007-08-20  Werner Koch  <wk@g10code.com>
447         * certreqgen.c (read_parameters): Change FP to an estream_t.
448         (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
449         * server.c (cmd_genkey): Adjust for that.
450         * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
451         instead of a temporary file.
453 2007-08-14  Werner Koch  <wk@g10code.com>
455         * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name.  change
456         the way infostr is xstrdupped.
458         * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
459         Windows.
461 2007-08-13  Werner Koch  <wk@g10code.com>
463         * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
464         message depend on that.
465         (main): Add avriable RECP_REQUIRED, set ift for encryption
466         commands and pass it to do_add_recipient.
467         (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
469 2007-08-09  Werner Koch  <wk@g10code.com>
471         * gpgsm.c (main) [W32]: Enable CRL check by default.
472         (main): Update the default control structure after reading the
473         options.
474         (gpgsm_parse_validation_model, parse_validation_model): New.
475         (main): New option --validation-model.
476         * certchain.c (gpgsm_validate_chain): Implement this option.
477         * server.c (option_handler): Ditto.
479         * certchain.c (is_cert_still_valid): Reformatted.  Add arg
480         FORCE_OCSP.  Changed callers to set this flag when using the chain
481         model.
483 2007-08-08  Werner Koch  <wk@g10code.com>
485         * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
486         which prefixed the output with a 3A and cut it off at a 00.
488         * keylist.c (list_cert_raw): Print the certificate ID first and
489         rename "Serial number" to "S/N".
490         (list_cert_std): Ditto.
492 2007-08-07  Werner Koch  <wk@g10code.com>
494         * gpgsm.c (main): Allow a string for --faked-system-time.
496 2007-08-06  Werner Koch  <wk@g10code.com>
498         Implementation of the chain model.
499         
500         * gpgsm.h (struct rootca_flags_s): Define new members VALID and
501         CHAIN_MODEL.
502         * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
503         (istrusted_status_cb): Set CHAIN_MODEL.
504         * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
505         and FP by LISTFP.
506         (gpgsm_validate_chain): Factor some code out to ...
507         (check_validity_period, ask_marktrusted): .. new.
508         (check_validity_cm_basic, check_validity_cm_main): New.
509         (do_validate_chain): New with all code from gpgsm_validate_chain.
510         New arg ROOTCA_FLAGS.
511         (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
512         model.  Add RETFLAGS arg and changed all callers to pass NULL. Add
513         CHECKTIME arg and changed all callers to pass a nil value.
514         (has_validity_model_chain): New.
515         * verify.c (gpgsm_verify): Check for chain model and return as
516         part of the trust status.
518         * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
519         (VALIDATE_FLAG_NO_DIRMNGR): New.
520         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
522 2007-08-03  Werner Koch  <wk@g10code.com>
524         * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
525         uids.
527         * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
528         pk algo.
529         * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
531 2007-08-02  Werner Koch  <wk@g10code.com>
533         * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
535 2007-07-17  Werner Koch  <wk@g10code.com>
537         * gpgsm.c (main): Implement --default-key.
538         (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
540 2007-07-16  Werner Koch  <wk@g10code.com>
542         * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
543         newer assuan versions.
545 2007-07-12  Werner Koch  <wk@g10code.com>
547         * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
548         when passing an int value.
549         * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
550         (cmd_export, cmd_message, cmd_genkey):  Translate file descriptors.
551         
552 2007-07-05  Werner Koch  <wk@g10code.com>
554         * Makefile.am (common_libs): Changed order of libs.
556 2007-07-04  Werner Koch  <wk@g10code.com>
558         * certchain.c (check_cert_policy): Remove extra checks for
559         GPG_ERR_NO_VALUE.  They are not needed since libksba 1.0.1.
560         * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
561         * certlist.c (cert_usage_p, cert_usage_p): Ditto.
563 2007-06-26  Werner Koch  <wk@g10code.com>
565         * gpgsm.c (main): Call gnupg_rl_initialize.
566         * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
568 2007-06-25  Werner Koch  <wk@g10code.com>
570         * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
571         add new arg FOR_WRITE.  Change callers to pass new arg.
573 2007-06-24  Werner Koch  <wk@g10code.com>
575         * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
576         es_fdopen_nc().  
578 2007-06-21  Werner Koch  <wk@g10code.com>
580         * certreqgen-ui.c: New.
581         * gpgsm.c (main): Let --gen-key call it.
582         * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
583         adjusted caller.
585         * gpgsm.h (ctrl_t): Remove.  It is now declared in ../common/util.h.
587         * call-agent.c (start_agent): Factored almost all code out to
588         ../common/asshelp.c.
590 2007-06-20  Werner Koch  <wk@g10code.com>
592         * call-agent.c (start_agent) [W32]: Start the agent on the fly.
594 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
596         * gpgsm.c (main): Percent escape output of --gpgconf-list.
598 2007-06-14  Werner Koch  <wk@g10code.com>
600         * call-agent.c (start_agent): Use gnupg_module_name.
601         * call-dirmngr.c (start_dirmngr): Ditto.
602         * export.c (export_p12): Ditto.
603         * import.c (parse_p12): Ditto.
604         * gpgsm.c (run_protect_tool): Ditto.
606 2007-06-12  Werner Koch  <wk@g10code.com>
608         * gpgsm.c (main): Replace some calls by init_common_subsystems.
609         (main): Use gnupg_datadir.
610         * qualified.c (read_list): Use gnupg-datadir.
612 2007-06-11  Werner Koch  <wk@g10code.com>
614         * Makefile.am (common_libs): Use libcommaonstd macr.
616         * gpgsm.c (main) [W32]: Call pth_init.
618 2007-06-06  Werner Koch  <wk@g10code.com>
620         * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
621         define orig_codeset.
622         * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
623         orig_codeset.
624         (format_name_writer): Define only if funopen et al is available.
626         * gpgsm.c (i18n_init): Remove.
628 2007-05-29  Werner Koch  <wk@g10code.com>
630         * export.c (gpgsm_p12_export): Print passphrase encoding info only
631         in PEM mode.
633 2007-05-18  Marcus Brinkmann  <marcus@g10code.de>
635         * qualified.c (gpgsm_qualified_consent,
636         gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
637         * certdump.c (gpgsm_format_keydesc): Likewise.
639 2007-05-07  Werner Koch  <wk@g10code.com>
641         * certcheck.c (MY_GCRY_PK_ECDSA): New.
643 2007-04-20  Werner Koch  <wk@g10code.com>
645         * gpgsm.c (main): Parameterize failed versions check messages.
647 2007-04-19  Werner Koch  <wk@g10code.com>
649         * certcheck.c (do_encode_md): Add arg PKEY.  Add support for DSA2
650         and all ECDSA sizes.
651         (get_dsa_qbits): New.
652         (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
653         so remove that.
655 2007-04-18  Werner Koch  <wk@g10code.com>
657         * certcheck.c (do_encode_md): Support 160 bit ECDSA.
659 2007-04-13  Werner Koch  <wk@g10code.com>
661         * call-agent.c (start_agent): Don't use log_error when using the
662         fallback hack to start the agent.  This is bug 782.
664 2007-03-20  Werner Koch  <wk@g10code.com>
666         * fingerprint.c (gpgsm_get_fingerprint): Add caching.
667         (gpgsm_get_fingerprint_string): Use bin2hexcolon().
668         (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
669         as much memory as required.
670         (gpgsm_get_keygrip_hexstring): Use bin2hex.
672         * certchain.c (gpgsm_validate_chain): Keep track of the
673         certificate chain and reset the ephemeral flags.
674         * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
675         Changed caller to use a mask of ~0.  Return a proper error code if
676         the certificate is not available.
678         * gpgsm.c: Add option --p12-charset.
679         * gpgsm.h (struct opt): Add p12_charset. 
680         * export.c (popen_protect_tool): Use new option.
682 2007-03-19  Werner Koch  <wk@g10code.com>
684         Changes to let export and key listing use estream to help systems
685         without funopen.
686         
687         * keylist.c: Use estream in place of stdio functions.
688         * gpgsm.c (open_es_fwrite): New.
689         (main): Use it for the list commands.
690         * server.c (data_line_cookie_functions): New.
691         (data_line_cookie_write, data_line_cookie_close): New.
692         (do_listkeys): Use estream.
694         * certdump.c (gpgsm_print_serial): Changed to use estream.
695         (gpgsm_print_time): Ditto.
696         (pretty_es_print_sexp): New.
697         (gpgsm_es_print_name): New.
698         (print_dn_part): New arg STREAM.  Changed all callers.
699         (print_dn_parts): Ditto.
700         * certchain.c (gpgsm_validate_chain): Changed FP to type
701         estream_t.
702         (do_list, unknown_criticals, allowed_ca, check_cert_policy) 
703         (is_cert_still_valid): Ditto.
705         * export.c (gpgsm_export): New arg STREAM.
706         (do_putc, do_fputs): New.
707         (print_short_info): Allow printing to optional STREAM.
708         * server.c (cmd_export): Use stream.
709         * base64.c (do_putc, do_fputs): New.
710         (base64_writer_cb, base64_finish_write): Let them cope with an
711         alternate output function.
712         (plain_writer_cb): New.
713         (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
714         binary output to an estream.  Changed call callers.
716 2007-01-31  Werner Koch  <wk@g10code.com>
718         * gpgsm.c (main): Let --gen-key print a more informative error
719         message.
721 2007-01-25  Werner Koch  <wk@g10code.com>
723         * Makefile.am (gpgsm_LDADD): Add LIBICONV.  Noted by Billy Halsey.
725 2007-01-05  Werner Koch  <wk@g10code.com>
727         * certchain.c (unknown_criticals): Add subjectAltName.
729 2006-12-21  Werner Koch  <wk@g10code.com>
731         * gpgsm.c: Comment mtrace feature.
733 2006-12-21  Marcus Brinkmann  <marcus@g10code.de>
735         * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
737         * encrypt.c (encrypt_dek): Release S_CIPH.
739 2006-12-20  Marcus Brinkmann  <marcus@g10code.de>
741         * server.c (gpgsm_server): Release CTRL->server_local.
743         * base64.c: Add new members READER and WRITER in union U2.
744         (gpgsm_create_reader): Initialise CTX->u2.reader.
745         (gpgsm_destroy_reader): Invoke ksba_reader_release.  Return early
746         if CTX is NULL.
747         (gpgsm_create_writer): Initialise CTX->u2.writer.
748         (gpgsm_destroy_writer): Invoke ksba_writer_release.  Return early
749         if CTX is NULL.
751 2006-12-18  Marcus Brinkmann  <marcus@g10code.de>
753         * fingerprint.c (gpgsm_get_fingerprint): Close MD.
755 2006-11-24  Werner Koch  <wk@g10code.com>
757         * certdump.c (parse_dn_part): Take '#' as a special character only
758         at the beginning of a string.
760 2006-11-21  Werner Koch  <wk@g10code.com>
762         * certdump.c (my_funopen_hook_ret_t): New.
763         (format_name_writer): Use it for the return value.
765 2006-11-14  Werner Koch  <wk@g10code.com>
767         * server.c (skip_options): Skip leading spaces.
768         (has_option): Honor "--".
769         (cmd_export): Add option --data to do an inline export.  Skip all
770         options.
772         * certdump.c (gpgsm_fpr_and_name_for_status): New.
773         * verify.c (gpgsm_verify): Use it to print correct status messages.
775 2006-11-11  Werner Koch  <wk@g10code.com>
777         * server.c (skip_options): New.
779 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
781         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
783 2006-10-23  Werner Koch  <wk@g10code.com>
785         * gpgsm.c (main): Remap common cipher algo names to their OIDs.
786         (main): New command --gpgconf-test.
788 2006-10-20  Werner Koch  <wk@g10code.com>
790         * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
792 2006-10-18  Werner Koch  <wk@g10code.com>
794         * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
795         testing for GPG_ERR_NO_DATA.
796         * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
797         * certchain.c (check_cert_policy): Ditto.
799         * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
800         chain length available.
802 2006-10-17  Werner Koch  <wk@g10code.com>
804         * gpgsm.c: No need for pth.h.  
805         (main): or to init it. It used to be hack for W32.
807         * sign.c (gpgsm_get_default_cert): Changed to return only
808         certificates usable for signing.
810 2006-10-16  Werner Koch  <wk@g10code.com>
812         * certchain.c (already_asked_marktrusted) 
813         (set_already_asked_marktrusted): New.
814         (gpgsm_validate_chain) <not trusted>: Keep track of certificates
815         we already asked for.
817 2006-10-11  Werner Koch  <wk@g10code.com>
819         * certreqgen.c (proc_parameters, create_request): Allow for
820         creation directly from a card.
821         * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
822         (gpgsm_scd_pksign): New.
824 2006-10-06  Werner Koch  <wk@g10code.com>
826         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
827         (gpgsm_LDADD): Ditto.
829 2006-10-05  Werner Koch  <wk@g10code.com>
831         * certcheck.c (do_encode_md): Check that the has algo is valid.
833 2006-10-02  Marcus Brinkmann  <marcus@g10code.de>
835         * server.c (register_commands): New commands DUMPKEYS and
836         DUMPSECRETKEYS.
837         (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
838         (option_handler): Support with-key-data option.
840 2006-09-26  Werner Koch  <wk@g10code.com>
842         * certchain.c (gpgsm_validate_chain): More changes for the relax
843         feature.  Use certificate reference counting instead of the old
844         explicit tests. Added a missing free. 
846 2006-09-25  Werner Koch  <wk@g10code.com>
848         * gpgsm.h (struct rootca_flags_s): New.
849         * call-agent.c (istrusted_status_cb): New.
850         (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
851         * keylist.c (list_cert_colon): Use dummy for new arg.
852         * certchain.c (gpgsm_validate_chain): Make use of the relax flag
853         for root certificates.
854         (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
856 2006-09-20  Werner Koch  <wk@g10code.com>
858         * gpgsm.c: Add alias command --dump-cert.
860         * Makefile.am:  Changes to allow parallel make runs.
862 2006-09-18  Werner Koch  <wk@g10code.com>
864         * gpgsm.c (main): Use this to import standard certificates.
865         * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
867 2006-09-14  Werner Koch  <wk@g10code.com>
869         Replaced all call gpg_error_from_errno(errno) by
870         gpg_error_from_syserror().
872 2006-09-13  Werner Koch  <wk@g10code.com>
874         * keylist.c (list_internal_keys): Print marker line to FP and not
875         to stdout.
877         * gpgsm.c (main): All list key list commands now make ose of
878         --output. Cleaned up calls to list modes.  New command
879         --dump-chain.  Renamed --list-sigs to --list-chain and added an
880         alias for the old one.
882         * server.c (cmd_message): Changed to use assuan_command_parse_fd.
883         (option_handler): New option list-to-output.
884         (do_listkeys): Use it.
886 2006-09-06  Werner Koch  <wk@g10code.com>
888         * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
889         out_of_core.
890         (CTRL): Removed and changed everywhere to ctrl_t.
891         (CERTLIST): Ditto.
893         Replaced all Assuan error codes by libgpg-error codes.  Removed
894         all map_to_assuan_status and map_assuan_err.
895         
896         * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
897         switch to gpg-error codes.  
898         * server.c (set_error): Adjusted.
900 2006-08-29  Werner Koch  <wk@g10code.com>
902         * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
903         complete S-expressions as implemented by the current gpg-agent.
905         * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
906         and export.
908 2006-07-03  Werner Koch  <wk@g10code.com>
910         * certreqgen.c (proc_parameters): Print the component label of a
911         faulty DN.
913 2006-06-26  Werner Koch  <wk@g10code.com>
915         * certdump.c (gpgsm_cert_log_name): New.
916         * certchain.c (is_cert_still_valid): Log the name of the certificate.
918 2006-06-20  Werner Koch  <wk@g10code.com>
920         * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
921         option --include-certs.
923         * keylist.c (list_cert_raw): Print the certid.
925 2006-05-23  Werner Koch  <wk@g10code.com>
927         * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
929         * Makefile.am (gpgsm_LDADD): Include ZLIBS.
931 2006-05-19  Marcus Brinkmann  <marcus@g10code.de>
933         * keydb.c (keydb_insert_cert): Do not lock here, but only check if
934         it is locked.
935         (keydb_store_cert): Lock here.
937         * keydb.h (keydb_delete): Accept new argument UNLOCK.
938         * keydb.c (keydb_delete): Likewise.  Only unlock if this is set.
939         * delete.c (delete_one): Add new argument to invocation of
940         keydb_delete.
941         
942 2006-05-15  Werner Koch  <wk@g10code.com>
944         * keylist.c (print_names_raw): Sanitize URI.
946 2006-03-21  Werner Koch  <wk@g10code.com>
948         * certchain.c (get_regtp_ca_info): New.
949         (allowed_ca): Use it.
951 2006-03-20  Werner Koch  <wk@g10code.com>
953         * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
955 2006-02-17  Werner Koch  <wk@g10code.com>
957         * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
959 2005-11-23  Werner Koch  <wk@g10code.com>
961         * gpgsm.h: New member QUALSIG_APPROVAL.
962         * sign.c (gpgsm_sign): Print a warning if a certificate is not
963         qualified.
964         * qualified.c (gpgsm_qualified_consent): Include a note that this
965         is not approved software.
966         (gpgsm_not_qualified_warning): New.
967         * gpgsm.c (main): Prepared to print a note whether the software
968         has been approved.
970 2005-11-13  Werner Koch  <wk@g10code.com>
972         * call-agent.c (gpgsm_agent_get_confirmation): New.
974         * keylist.c (list_cert_std): Print qualified status.
975         * qualified.c: New.
976         * certchain.c (gpgsm_validate_chain): Check for qualified
977         certificates.
979         * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
980         no-chain-validation is used.
982 2005-11-11  Werner Koch  <wk@g10code.com>
984         * keylist.c (print_capabilities): Print is_qualified status.
986 2005-10-28  Werner Koch  <wk@g10code.com>
988         * certdump.c (pretty_print_sexp): New.
989         (gpgsm_print_name2): Use it here.  This allows proper printing of
990         DNS names as used with server certificates.
992 2005-10-10  Werner Koch  <wk@g10code.com>
994         * keylist.c: Add pkaAdress OID as reference.
996 2005-10-08  Marcus Brinkmann  <marcus@g10code.de>
998         * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
999         ../common/libcommon.a.
1001 2005-09-13  Werner Koch  <wk@g10code.com>
1003         * verify.c (gpgsm_verify): Print a note if the unknown algorithm
1004         is MD2.
1005         * sign.c (gpgsm_sign): Ditto.
1006         * certcheck.c (gpgsm_check_cert_sig): Ditto.
1008 2005-09-08  Werner Koch  <wk@g10code.com>
1010         * export.c (popen_protect_tool): Add option --have-cert.  We
1011         probably lost this option with 1.9.14 due to restructuring of
1012         export.c.
1014 2005-07-21  Werner Koch  <wk@g10code.com>
1016         * gpgsm.c (main): New options --no-log-file and --debug-none.
1018         * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
1019         to allow enumeration.  Changed all callers.
1020         (create_request): Process DNS and URI parameters.
1022 2005-07-20  Werner Koch  <wk@g10code.com>
1024         * keylist.c (email_kludge): Reworked.
1026         * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
1027         arg to unsigned.
1028         * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
1030 2005-07-19  Werner Koch  <wk@g10code.com>
1032         * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
1033         Bug accidently introduced while solving the #$%^& gcc
1034         signed/unsigned char* warnings.
1036 2005-06-15  Werner Koch  <wk@g10code.com>
1038         * delete.c (delete_one): Changed FPR to unsigned.
1039         * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
1040         (gpgsm_encrypt): Ditto.
1041         * sign.c (gpgsm_sign): Made SIGVAL unsigned.
1042         * base64.c (base64_reader_cb): Need to use some casting to get
1043         around signed/unsigned char* warnings.
1044         * certcheck.c (gpgsm_check_cms_signature): Ditto.
1045         (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
1046         (do_encode_md): Made NFRAME a size_t.
1047         * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
1048         (gpgsm_dump_serial): Ditto.
1049         (gpgsm_format_serial): Ditto.
1050         (gpgsm_dump_string): Ditto.
1051         (gpgsm_dump_cert): Ditto.
1052         (parse_dn_part): Ditto.
1053         (gpgsm_print_name2): Ditto.
1054         * keylist.c (email_kludge): Ditto.
1055         * certreqgen.c (proc_parameters, create_request): Ditto.
1056         (create_request): Ditto.
1057         * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
1058         (struct cipher_parm_s): Made CIPHERTEXT unsigned.
1059         (struct genkey_parm_s): Ditto.
1060         * server.c (strcpy_escaped_plus): Made arg S signed char*.
1061         * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
1062         (gpgsm_get_keygrip): Ditto.
1063         * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
1064         (keydb_update_cert): Ditto.
1065         (classify_user_id): Apply cast to signed/unsigned assignment.
1066         (hextobyte): Ditto.
1068 2005-06-01  Werner Koch  <wk@g10code.com>
1070         * misc.c: Include setenv.h.
1072 2005-04-21  Werner Koch  <wk@g10code.com>
1074         * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
1075         * certchain.c (gpgsm_validate_chain): Make use of it.
1077         * certchain.c (gpgsm_validate_chain): Check revocations even for
1078         expired certificates.  This is required because on signature
1079         verification an expired key is fine whereas a revoked one is not.
1081 2005-04-20  Werner Koch  <wk@g10code.com>
1083         * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
1085 2005-04-19  Werner Koch  <wk@g10code.com>
1087         * certchain.c (check_cert_policy): Print the diagnostic for a open
1088         failure of policies.txt only in verbose mode or when it is not
1089         ENOENT.
1091 2005-04-17  Werner Koch  <wk@g10code.com>
1093         * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
1094         * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
1095         this filter.  Changed all callers.
1097         * certchain.c (find_up_search_by_keyid): New helper.
1098         (find_up): Also try using the AKI.keyIdentifier.
1099         (find_up_external): Ditto.
1101 2005-04-15  Werner Koch  <wk@g10code.com>
1103         * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
1104         well as the keyIdentifier part of the authorityKeyIdentifier.
1106 2005-03-31  Werner Koch  <wk@g10code.com>
1108         * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
1109         * call-agent.c (start_agent): Ditto.
1111 2005-03-17  Werner Koch  <wk@g10code.com>
1113         * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
1115         * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
1116         failed gcry_pk_verify.
1117         (find_up): Do an external lookup also for an authorityKeyIdentifier
1118         lookup. Factored external lookup code out to ..
1119         (find_up_external): .. new.
1121 2005-03-03  Werner Koch  <wk@g10code.com>
1123         * Makefile.am (gpgsm_LDADD): Added PTH_LIBS.  Noted by Kazu Yamamoto.
1125 2005-01-13  Werner Koch  <wk@g10code.com>
1127         * certreqgen.c (proc_parameters): Cast printf arg.
1129 2004-12-22  Werner Koch  <wk@g10code.com>
1131         * gpgsm.c (set_binary): New.
1132         (main, open_read, open_fwrite): Use it.
1134 2004-12-21  Werner Koch  <wk@g10code.com>
1136         * gpgsm.c (main): Use default_homedir().
1137         (main) [W32]: Default to disabled CRL checks.
1139 2004-12-20  Werner Koch  <wk@g10code.com>
1141         * call-agent.c (start_agent): Before starting a pipe server start
1142         to connect to a server on the standard socket.  Use PATHSEP
1143         * call-dirmngr.c (start_dirmngr): Use PATHSEP.
1145         * import.c: Include unistd.h for dup and close.
1147 2004-12-18  Werner Koch  <wk@g10code.com>
1149         * gpgsm.h (map_assuan_err): Define in terms of
1150         map_assuan_err_with_source.
1151         * call-agent.c (start_agent): Pass error source to
1152         send_pinentry_environment.
1154 2004-12-17  Werner Koch  <wk@g10code.com>
1156         * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
1157         (run_command_status_cb): Return cancel status if gpgsm_status
1158         returned an error.
1160         * server.c (gpgsm_status, gpgsm_status2) 
1161         (gpgsm_status_with_err_code): Return an error code.
1162         (gpgsm_status2): Always call va_end().
1164 2004-12-15  Werner Koch  <wk@g10code.com>
1166         * call-dirmngr.c (lookup_status_cb): Send progress messages
1167         upstream.
1168         (isvalid_status_cb): Ditto.
1169         (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
1170         (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
1171         status callback and handle PROGRESS.
1173         * misc.c (setup_pinentry_env) [W32]: Don't use it.
1175         * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
1176         operations and to resolve libassuan symbols.
1177         (run_protect_tool) [W32]: Disable it.
1179         * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
1181 2004-12-07  Werner Koch  <wk@g10code.com>
1183         * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
1184         under W32 we need the w32 pth code from jnlib.
1186         * misc.c (setup_pinentry_env) [W32]: Disabled.
1188 2004-12-06  Werner Koch  <wk@g10code.com>
1190         * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
1192         * import.c (popen_protect_tool): Simplified by making use of
1193         gnupg_spawn_process.
1194         (parse_p12): Likewise, using gnupg_wait_process.
1195         * export.c (popen_protect_tool): Ditto.
1196         (export_p12): Ditto.
1198         * keydb.c: Don't define DIRSEP_S here.
1200 2004-12-02  Werner Koch  <wk@g10code.com>
1202         * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
1203         signature for debugging.
1204         (gpgsm_validate_chain): Ditto.
1206 2004-11-29  Werner Koch  <wk@g10code.com>
1208         * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
1209         DEBUG_VALUE.
1210         (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE.  This
1211         now allows to add debug flags on top of a debug-level setting.
1213 2004-11-23  Werner Koch  <wk@g10code.com>
1215         * gpgsm.c: New option --prefer-system-dirmngr.
1216         * call-dirmngr.c (start_dirmngr): Implement this option.
1218 2004-10-22  Werner Koch  <wk@g10code.com>
1220         * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
1221         request PEM header.  This is according to the Sphinx standard.
1223 2004-10-08  Moritz Schulte  <moritz@g10code.com>
1225         * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
1226         case the no_chain_validation-return-short-cut is used (fixes
1227         memory leak).
1229 2004-10-04  Werner Koch  <wk@g10code.com>
1231         * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1233 2004-09-30  Werner Koch  <wk@g10code.com>
1235         * gpgsm.c (i18n_init): Always use LC_ALL.
1237         * certdump.c (gpgsm_format_name): Factored code out to ..
1238         (gpgsm_format_name2): .. new.
1239         (gpgsm_print_name): Factored code out to ..
1240         (gpgsm_print_name2): .. new.
1241         (print_dn_part): New arg TRANSLATE.  Changed all callers.
1242         (print_dn_parts): Ditto.
1243         (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
1244         it to stay UTF-8 but we still want to filter out bad control
1245         characters.
1247         * Makefile.am: Adjusted for gettext 0.14.
1249         * keylist.c (list_cert_colon): Make sure that the expired flag has
1250         a higher precedence than the invalid flag. 
1252 2004-09-29  Werner Koch  <wk@g10code.com>
1254         * import.c (parse_p12): Write an error status line for bad
1255         passphrases. Add new arg CTRL and changed caller.
1256         * export.c (export_p12): Likewise.
1258 2004-09-14  Werner Koch  <wk@g10code.com>
1260         * certchain.c (gpgsm_validate_chain): Give expired certificates a
1261         higher error precedence and don't bother to check any CRL in that
1262         case.
1264 2004-08-24  Werner Koch  <wk@g10code.de>
1266         * certlist.c: Fixed typo in ocsp OID.
1268 2004-08-18  Werner Koch  <wk@g10code.de>
1270         * certlist.c (gpgsm_cert_use_ocsp_p): New.
1271         (cert_usage_p): Support it here.
1272         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
1274 2004-08-17  Marcus Brinkmann  <marcus@g10code.de>
1276         * import.c: Fix typo in last change.
1278 2004-08-17  Werner Koch  <wk@g10code.de>
1280         * import.c (check_and_store): Do a full validation if
1281         --with-validation is set.
1283         * certchain.c (gpgsm_basic_cert_check): Print more detailed error
1284         messages.
1285         
1286         * certcheck.c (do_encode_md): Partly support DSA.  Add new arg
1287         PKALGO. Changed all callers to pass it.
1288         (pk_algo_from_sexp): New.
1290 2004-08-16  Werner Koch  <wk@g10code.de>
1292         * gpgsm.c: New option --fixed-passphrase.
1293         * import.c (popen_protect_tool): Pass it to the protect-tool.
1295         * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1296         for encrypt-to keys.
1298 2004-08-06  Werner Koch  <wk@g10code.com>
1300         * gpgsm.c: New option --with-ephemeral-keys.
1301         * keylist.c (list_internal_keys): Set it here.
1302         (list_cert_raw): And indicate those keys.  Changed all our callers
1303         to pass the new arg HD through.
1305 2004-07-23  Werner Koch  <wk@g10code.de>
1307         * certreqgen.c (proc_parameters): Do not allow key length below
1308         1024.
1310 2004-07-22  Werner Koch  <wk@g10code.de>
1312         * keylist.c (list_cert_raw): Print the keygrip.
1314 2004-07-20  Werner Koch  <wk@gnupg.org>
1316         * certchain.c (gpgsm_validate_chain): The trust check didn't
1317         worked anymore, probably due to the changes at 2003-03-04.  Fixed.
1319 2004-06-06  Werner Koch  <wk@gnupg.org>
1321         * certreqgen.c (get_parameter_uint, create_request): Create
1322         an extension for key usage when requested. 
1324 2004-05-12  Werner Koch  <wk@gnupg.org>
1326         * gpgsm.c (main): Install emergency_cleanup also as an atexit
1327         handler.
1329         * verify.c (gpgsm_verify): Removed the separate error code
1330         handling for KSBA.  We use shared error codes anyway.
1332         * export.c (export_p12): Removed debugging code.
1334         * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1336 2004-05-11  Werner Koch  <wk@gnupg.org>
1338         * sign.c (gpgsm_sign): Include the error source in the final error
1339         message.
1340         * decrypt.c (gpgsm_decrypt): Ditto.
1342         * fingerprint.c (gpgsm_get_key_algo_info): New.
1343         * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1344         * keylist.c (list_cert_colon): Really print the algorithm and key
1345         length.
1346         (list_cert_raw, list_cert_std): Ditto.
1347         (list_cert_colon): Reorganized to be able to tell whether a root
1348         certificate is trusted.
1350         * gpgsm.c: New option --debug-allow-core-dump.
1352         * gpgsm.h (opt): Add member CONFIG_FILENAME.
1353         * gpgsm.c (main): Use it here instead of the local var.
1355         * server.c (gpgsm_server): Print some additional information with
1356         the hello in verbose mode.
1358 2004-04-30  Werner Koch  <wk@gnupg.org>
1360         * import.c (check_and_store): Do not update the stats for hidden
1361         imports of issuer certs.
1362         (popen_protect_tool): Request statusmessages from the protect-tool.
1363         (parse_p12): Detect status messages. Add new arg STATS and update them.
1364         (print_imported_summary): Include secret key stats.
1366 2004-04-28  Werner Koch  <wk@gnupg.org>
1368         * gpgsm.c: New command --keydb-clear-some-cert-flags.
1369         * keydb.c (keydb_clear_some_cert_flags): New.
1370         (keydb_update_keyblock, keydb_set_flags): Change error code
1371         CONFLICT to NOT_LOCKED.
1373 2004-04-26  Werner Koch  <wk@gnupg.org>
1375         * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1376         filename.
1378         * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt) 
1379         (gpgsm_agent_genkey, gpgsm_agent_istrusted) 
1380         (gpgsm_agent_marktrusted, gpgsm_agent_havekey) 
1381         (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1382         (start_agent): New arg CTRL.  Send progress item when starting a
1383         new agent.
1384         * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1385         CTRL to be passed down to the agent function.
1386         * decrypt.c (prepare_decryption): Ditto.
1387         * certreqgen.c (proc_parameters, read_parameters): Ditto.
1388         * certcheck.c (gpgsm_create_cms_signature): Ditto.
1390 2004-04-23  Werner Koch  <wk@gnupg.org>
1392         * keydb.c (keydb_add_resource): Try to compress the file on init.
1394         * keylist.c (oidtranstbl): New.  OIDs collected from several sources.
1395         (print_name_raw, print_names_raw, list_cert_raw): New.
1396         (gpgsm_list_keys): Check the dump mode and pass it down as
1397         necessary.
1399 2004-04-22  Werner Koch  <wk@gnupg.org>
1401         * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1402         --dump-secret-keys.
1404 2004-04-13  Werner Koch  <wk@gnupg.org>
1406         * misc.c (setup_pinentry_env): New.
1407         * import.c (popen_protect_tool): Call it.
1408         * export.c (popen_protect_tool): Call it.
1410 2004-04-08  Werner Koch  <wk@gnupg.org>
1412         * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a 
1413         encrypted message.
1415 2004-04-07  Werner Koch  <wk@gnupg.org>
1417         * gpgsm.c: New option --force-crl-refresh.
1418         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1420 2004-04-05  Werner Koch  <wk@gnupg.org>
1422         * server.c (get_status_string): Add STATUS_NEWSIG.
1423         * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1425         * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1426         not just warn if a cert is not suitable; bail out immediately.
1428 2004-04-01  Werner Koch  <wk@gnupg.org>
1430         * call-dirmngr.c (isvalid_status_cb): New.
1431         (unhexify_fpr): New. Taken from ../g10/call-agent.c
1432         (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1433         it thru.  Detect need to check the respondert cert and do that.
1434         * certchain.c (gpgsm_validate_chain): Add new arg FLAGS.  Changed
1435         all callers.
1437 2004-03-24  Werner Koch  <wk@gnupg.org>
1439         * sign.c (gpgsm_sign): Include a short list of capabilities.
1441 2004-03-17  Werner Koch  <wk@gnupg.org>
1443         * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1445 2004-03-16  Werner Koch  <wk@gnupg.org>
1447         * gpgsm.c (main): Implemented --gpgconf-list.
1449 2004-03-15  Werner Koch  <wk@gnupg.org>
1451         * keylist.c (list_cert_colon): Hack to set the expired flag.
1453 2004-03-09  Werner Koch  <wk@gnupg.org>
1455         * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1457         * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1459 2004-03-04  Werner Koch  <wk@gnupg.org>
1461         * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1463         * certchain.c (is_cert_still_valid): New.  Code moved from ...
1464         (gpgsm_validate_chain): ... here because we now need to check at
1465         two places and at a later stage, so that we can pass the issuer
1466         cert down to the dirmngr.
1468 2004-03-03  Werner Koch  <wk@gnupg.org>
1470         * call-agent.c (start_agent): Replaced pinentry setup code by a
1471         call to a new common function.
1473         * certdump.c (gpgsm_format_keydesc): Make sure the string is
1474         returned as utf-8.
1476         * export.c (gpgsm_export): Make sure that we don't export more
1477         than one certificate.
1479 2004-03-02  Werner Koch  <wk@gnupg.org>
1481         * export.c (create_duptable, destroy_duptable)
1482         (insert_duptable): New.
1483         (gpgsm_export): Avoid duplicates.
1485 2004-02-26  Werner Koch  <wk@gnupg.org>
1487         * certchain.c (compare_certs): New.
1488         (gpgsm_validate_chain): Fixed infinite certificate checks after
1489         bad signatures.
1491 2004-02-24  Werner Koch  <wk@gnupg.org>
1493         * keylist.c (list_cert_colon): Print the fingerprint as the
1494         cert-id for root certificates.
1496 2004-02-21  Werner Koch  <wk@gnupg.org>
1498         * keylist.c (list_internal_keys): Return error codes.
1499         (list_external_keys, gpgsm_list_keys): Ditto.
1500         * server.c (do_listkeys): Ditto.
1502         * gpgsm.c (main): Display a key description for --passwd.
1503         * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1505 2004-02-20  Werner Koch  <wk@gnupg.org>
1507         * gpgsm.c (main): New option --debug-ignore-expiration.
1508         * certchain.c (gpgsm_validate_chain): Use it here.
1510         * certlist.c (cert_usage_p): Apply extKeyUsage.
1512 2004-02-19  Werner Koch  <wk@gnupg.org>
1514         * export.c (export_p12, popen_protect_tool)
1515         (gpgsm_p12_export): New.
1516         * gpgsm.c (main): New command --export-secret-key-p12. 
1518 2004-02-18  Werner Koch  <wk@gnupg.org>
1520         * gpgsm.c (set_debug): Set the new --debug-level flags.
1521         (main): New option --gpgconf-list.  
1522         (main): Do not setup -u and -r keys when not required.
1523         (main): Setup the used character set.
1525         * keydb.c (keydb_add_resource): Print a hint to start the
1526         gpg-agent.
1528 2004-02-17  Werner Koch  <wk@gnupg.org>
1530         * gpgsm.c: Fixed value parsing for --with-validation.
1531         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1532         * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1534         * gpgsm.c: New option --with-md5-fingerprint.
1535         * keylist.c (list_cert_std): Print MD5 fpr.
1537         * gpgsm.c: New options --with-validation.
1538         * server.c (option_handler): New option "with-validation".
1539         * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1540         WITH_VALIDATION. Changed callers to set it.
1541         (list_external_cb, list_external_keys): Pass CTRL to the callback.
1542         (list_cert_colon): Add arg CTRL.  Check validation if requested.
1543         * certchain.c (unknown_criticals, allowed_ca, check_cert_policy) 
1544         (gpgsm_validate_chain): New args LISTMODE and FP.
1545         (do_list): New helper for info output.
1546         (find_up): New arg FIND_NEXT.
1547         (gpgsm_validate_chain): After a bad signature try again with other
1548         CA certificates.
1550         * import.c (print_imported_status): New arg NEW_CERT. Print
1551         additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1552         (check_and_store): Always call above function after import.
1553         * server.c (get_status_string): Added STATUS_IMPORT_OK.
1555 2004-02-13  Werner Koch  <wk@gnupg.org>
1557         * certcheck.c (gpgsm_create_cms_signature): Format a description
1558         for use by the pinentry.
1559         * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1560         * certdump.c (format_name_cookie, format_name_writer) 
1561         (gpgsm_format_name): New.
1562         (gpgsm_format_serial): New.
1563         (gpgsm_format_keydesc): New.
1564         * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1565         (gpgsm_agent_pkdecrypt): Ditto.
1567         * encrypt.c (init_dek): Check for too weak algorithms.
1569         * import.c (parse_p12, popen_protect_tool): New.
1571         * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1572         Changed all callers.
1573         (base64_reader_cb): Handle it here.
1574         (gpgsm_reader_eof_seen): New.
1575         (base64_reader_cb): Set a flag for EOF.
1576         (simple_reader_cb): Ditto.
1578 2004-02-12  Werner Koch  <wk@gnupg.org>
1580         * gpgsm.h, gpgsm.c: New option --protect-tool-program.
1581         * gpgsm.c (run_protect_tool): Use it.
1583 2004-02-11  Werner Koch  <wk@gnupg.org>
1585         * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
1586         will allow to override directory names at make time.
1588 2004-02-02  Werner Koch  <wk@gnupg.org>
1590         * import.c (check_and_store): Import certificates even with
1591         missing issuer's cert.  Fixed an "depending on the verbose
1592         setting" bug.
1594         * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
1595         keybox.
1597         * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
1598         revoked flag.
1599         (list_internal_keys): Retrieve validity flag.
1600         (list_external_cb): Pass 0 as validity flag.
1601         * keydb.c (keydb_get_flags, keydb_set_flags): New.
1602         (keydb_set_cert_flags): New.
1603         (lock_all): Return a proper error code.
1604         (keydb_lock): New.
1605         (keydb_delete): Don't lock but check that it has been locked.
1606         (keydb_update_keyblock): Ditto.
1607         * delete.c (delete_one): Take a lock.
1609 2004-01-30  Werner Koch  <wk@gnupg.org>
1611         * certchain.c (check_cert_policy): Fixed read error checking.
1612         (check_cert_policy): With no critical policies issue only a
1613         warning if the policy file does not exists.
1615         * sign.c (add_certificate_list): Decrement N for the first cert.
1617 2004-01-29  Werner Koch  <wk@gnupg.org>
1619         * certdump.c (parse_dn_part): Map common OIDs to human readable
1620         labels.  Make sure that a value won't get truncated if it includes
1621         a Nul.
1623 2004-01-28  Werner Koch  <wk@gnupg.org>
1625         * certchain.c (gpgsm_validate_chain): Changed the message printed
1626         for an untrusted root certificate.
1628 2004-01-27  Werner Koch  <wk@gnupg.org>
1630         * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
1631         (print_dn_part): Do not delimit multiple RDN by " + ".  Handle
1632         multi-valued RDNs in a special way, i.e. in the order specified by
1633         the certificate.
1634         (print_dn_parts): Simplified. 
1636 2004-01-16  Werner Koch  <wk@gnupg.org>
1638         * sign.c (gpgsm_sign): Print an error message on all failures.
1639         * decrypt.c (gpgsm_decrypt): Ditto.
1641 2003-12-17  Werner Koch  <wk@gnupg.org>
1643         * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
1644         (cmd_encrypt): Add all enrypt-to marked certs to the list.
1645         * encrypt.c (gpgsm_encrypt): Check that real recipients are
1646         available.
1647         * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
1648         options work.  Pass the list of recients to gpgsm_server.
1649         * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
1650         (opt): Add NO_ENCRYPT_TO.
1651         * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
1652         Changed all callers and ignore duplicate entries.
1653         (is_cert_in_certlist): New.
1654         (gpgsm_add_cert_to_certlist): New.
1656         * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
1657         (gpgsm_dump_serial): Ditto.
1659         * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
1661 2003-12-16  Werner Koch  <wk@gnupg.org>
1663         * gpgsm.c (main): Set the prefixes for assuan logging.
1665         * sign.c (gpgsm_sign): Add validation checks for the default
1666         certificate.
1668         * gpgsm.c: Add -k as alias for --list-keys and -K for
1669         --list-secret-keys.
1671 2003-12-15  Werner Koch  <wk@gnupg.org>
1673         * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
1674         not need for real strong random here and it even better protect
1675         the random bits used for the key.
1677 2003-12-01  Werner Koch  <wk@gnupg.org>
1679         * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
1680         (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
1681         * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
1682         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
1683         proceed accordingly.
1685 2003-11-19  Werner Koch  <wk@gnupg.org>
1687         * verify.c (gpgsm_verify): Use "0" instead of an empty string for
1688         the VALIDSIG status.
1690 2003-11-18  Werner Koch  <wk@gnupg.org>
1692         * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
1694         * certchain.c (unknown_criticals): Fixed an error code test.
1696 2003-11-12  Werner Koch  <wk@gnupg.org>
1698         Adjusted for API changes in Libksba.
1700 2003-10-31  Werner Koch  <wk@gnupg.org>
1702         * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
1703         * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
1704         * sign.c (gpgsm_sign): Ditto.
1705         * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
1706         * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
1707         Ditto.
1709 2003-10-25  Werner Koch  <wk@gnupg.org>
1711         * certreqgen.c (read_parameters): Fixed faulty of !spacep().
1713 2003-08-20  Marcus Brinkmann  <marcus@g10code.de>
1715         * encrypt.c (encode_session_key): Allocate enough space.  Cast key
1716         byte to unsigned char to prevent sign extension.
1717         (encrypt_dek): Check return value before error.
1719 2003-08-14  Timo Schulz  <twoaday@freakmail.de>
1721         * encrypt.c (encode_session_key): Use new Libgcrypt interface.
1722         
1723 2003-07-31  Werner Koch  <wk@gnupg.org>
1725         * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
1727 2003-07-29  Werner Koch  <wk@gnupg.org>
1729         * gpgsm.c (main): Add secmem features and set the random seed file.
1730         (gpgsm_exit): Update the random seed file and enable debug output.
1732 2003-07-27  Werner Koch  <wk@gnupg.org>
1734         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1736 2003-06-24  Werner Koch  <wk@gnupg.org>
1738         * server.c (gpgsm_status_with_err_code): New.
1739         * verify.c (gpgsm_verify): Use it here instead of the old
1740         tokenizing version.
1742         * verify.c (strtimestamp): Renamed to strtimestamp_r
1744         Adjusted for changes in the libgcrypt API. Some more fixes for the
1745         libgpg-error stuff.  
1747 2003-06-04  Werner Koch  <wk@gnupg.org>
1749         * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
1750         Include new membuf header and changed used type.
1752         Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1754 2003-06-03  Werner Koch  <wk@gnupg.org>
1756         Changed all error codes in all files to the new libgpg-error scheme.
1758         * gpgsm.h: Include gpg-error.h .
1759         * Makefile.am: Link with libgpg-error.
1761 2003-04-29  Werner Koch  <wk@gnupg.org>
1763         * Makefile.am: Use libassuan.  Don't override LDFLAGS anymore.
1764         * server.c (register_commands): Adjust for new Assuan semantics.
1766 2002-12-03  Werner Koch  <wk@gnupg.org>
1768         * call-agent.c (gpgsm_agent_passwd): New.
1769         * gpgsm.c (main): New command --passwd and --call-protect-tool
1770         (run_protect_tool): New.
1772 2002-11-25  Werner Koch  <wk@gnupg.org>
1774         * verify.c (gpgsm_verify): Handle content-type attribute. 
1776 2002-11-13  Werner Koch  <wk@gnupg.org>
1778         * call-agent.c (start_agent): Try to use $GPG_TTY instead of
1779         ttyname.  Changed ttyname to test stdin becuase it can be assumed
1780         that output redirection is more common that input redirection.
1782 2002-11-12  Werner Koch  <wk@gnupg.org>
1784         * gpgsm.c: New command --call-dirmngr. 
1785         * call-dirmngr.c (gpgsm_dirmngr_run_command)
1786         (run_command_inq_cb,run_command_cb)
1787         (run_command_status_cb): New.
1789 2002-11-11  Werner Koch  <wk@gnupg.org>
1791         * certcheck.c (gpgsm_check_cms_signature): Don't double free
1792         s_sig but free s_pkey at leave.
1794 2002-11-10  Werner Koch  <wk@gnupg.org>
1796         * gpgsm.c: Removed duplicate --list-secret-key entry.
1798 2002-09-19  Werner Koch  <wk@gnupg.org>
1800         * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
1802         * certchain.c (find_up): Print info when the cert was not found 
1803         by the autorithyKeyIdentifier.
1805 2002-09-03  Werner Koch  <wk@gnupg.org>
1807         * gpgsm.c (main): Disable the internal libgcrypt locking.
1809 2002-08-21  Werner Koch  <wk@gnupg.org>
1811         * import.c (print_imported_summary): Cleaned up.  Print new
1812         not_imported value.
1813         (check_and_store): Update non_imported counter.
1814         (print_import_problem): New.
1815         (check_and_store): Print error status message.
1816         * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
1818 2002-08-20  Werner Koch  <wk@gnupg.org>
1820         * gpgsm.c (main): Use the log file only in server mode.
1822         * import.c (print_imported_summary): New.
1823         (check_and_store): Update the counters, take new argument.
1824         (import_one): Factored out core of gpgsm_import.
1825         (gpgsm_import): Print counters.
1826         (gpgsm_import_files): New.
1827         * gpgsm.c (main): Use the new function for import.
1829 2002-08-19  Werner Koch  <wk@gnupg.org>
1831         * decrypt.c (gpgsm_decrypt): Return a better error status token.
1832         * verify.c (gpgsm_verify): Don't error on messages with no signing
1833         time or no message digest.  This is only the case for messages
1834         without any signed attributes.
1836 2002-08-16  Werner Koch  <wk@gnupg.org>
1838         * certpath.c: Renamed to ..
1839         * certchain.c: this. Renamed all all other usages of "path" in the
1840         context of certificates to "chain".
1842         * call-agent.c (learn_cb): Special treatment when the issuer
1843         certificate is missing.
1845 2002-08-10  Werner Koch  <wk@gnupg.org>
1847         * Makefile.am (INCLUDES): Add definition for localedir.
1849         * keylist.c (list_cert_colon): Print the short fingerprint in the
1850         key ID field.
1851         * fingerprint.c (gpgsm_get_short_fingerprint): New.
1852         * verify.c (gpgsm_verify): Print more verbose info for a good
1853         signature.
1855 2002-08-09  Werner Koch  <wk@gnupg.org>
1857         * decrypt.c (prepare_decryption): Hack to detected already
1858         unpkcsedone keys.
1860         * gpgsm.c (emergency_cleanup): New.
1861         (main): Initialize the signal handler.
1863         * sign.c (gpgsm_sign): Reset the hash context for subsequent
1864         signers and release it at the end.
1866 2002-08-05  Werner Koch  <wk@gnupg.org>
1868         * server.c (cmd_signer): New command "SIGNER"
1869         (register_commands): Register it.
1870         (cmd_sign): Pass the signer list to gpgsm_sign.
1871         * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
1872         for secret key if set and changed all callers.
1873         * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
1874         multiple signers.
1875         * gpgsm.c (main): Support more than one -u.
1876         
1877         * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
1878         which is actually what gets returned from add_to_certlist.
1879         
1880 2002-07-26  Werner Koch  <wk@gnupg.org>
1882         * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
1883         (gpgsm_check_cms_signature): Ditto.
1885 2002-07-22  Werner Koch  <wk@gnupg.org>
1887         * keydb.c (keydb_add_resource): Register a lock file.
1888         (lock_all, unlock_all): Implemented.
1890         * delete.c: New.
1891         * gpgsm.c: Made --delete-key work.
1892         * server.c (cmd_delkeys): New.
1893         (register_commands): New command DELKEYS.
1895         * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
1896         used and a STATUS_ERROR with the algorithm oid.
1898 2002-07-03  Werner Koch  <wk@gnupg.org>
1900         * server.c (gpgsm_status2): Insert a blank between all optional
1901         arguments when using assuan.
1902         * server.c (cmd_recipient): No more need for extra blank in constants.
1903         * import.c (print_imported_status): Ditto.
1904         * gpgsm.c (main): Ditto.
1906 2002-07-02  Werner Koch  <wk@gnupg.org>
1908         * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
1909         the fingerprint.
1911         * certpath.c (check_cert_policy): Don't use log_error to print a
1912         warning.
1914         * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
1915         all callers.
1916         * call-agent.c (learn_cb): Print info message only for real imports.
1918         * import.c (gpgsm_import): Moved duplicated code to ...
1919         (check_and_store): new function.  Added magic to import the entire
1920         chain. Print status only for real imports and moved printing code
1921         to ..
1922         (print_imported_status): New.
1924         * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
1925         call in very verbose mode.
1927         * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
1928         with the server mode.
1930 2002-06-29  Werner Koch  <wk@gnupg.org>
1932         * gpgsm.c: New option --auto-issuer-key-retrieve.
1933         * certpath.c (find_up): Try to retrieve an issuer key from an
1934         external source and from the ephemeral key DB.
1935         (find_up_store_certs_cb): New.
1937         * keydb.c (keydb_set_ephemeral): Does now return the old
1938         state.  Call the backend only when required.
1940         * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
1941         (lookup_status_cb): Issue status only when CTRL is not NULL.
1942         (gpgsm_dirmngr_lookup): Document that CTRL is optional.
1944         * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
1946 2002-06-28  Werner Koch  <wk@gnupg.org>
1948         * server.c (cmd_recipient): Add more reason codes.
1950 2002-06-27  Werner Koch  <wk@gnupg.org>
1952         * certpath.c (gpgsm_basic_cert_check): Use
1953         --debug-no-path-validation to also bypass this basic check.
1955         * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
1957         * call-agent.c (start_agent): Create and pass the list of FD to
1958         keep in the child to assuan.
1959         * call-dirmngr.c (start_dirmngr): Ditto.
1961 2002-06-26  Werner Koch  <wk@gnupg.org>
1963         * import.c (gpgsm_import): Print an STATUS_IMPORTED.
1965         * gpgsm.c: --debug-no-path-validation does not take an argument.
1967 2002-06-25  Werner Koch  <wk@gnupg.org>
1969         * certdump.c (print_dn_part): Always print a leading slash,
1970         removed NEED_DELIM arg and changed caller.
1972         * export.c (gpgsm_export): Print LFs to FP and not stdout.
1973         (print_short_info): Ditto.  Make use of gpgsm_print_name.
1975         * server.c (cmd_export): Use output-fd instead of data lines; this
1976         was actually the specified way.
1978 2002-06-24  Werner Koch  <wk@gnupg.org>
1980         * gpgsm.c: Removed duped help entry for --list-keys.
1981         
1982         * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
1984         * certpath.c (gpgsm_validate_path): Use it here instead of the
1985         debug flag hack.
1987         * certpath.c (check_cert_policy): Return No_Policy_Match if the
1988         policy file could not be opened.
1990 2002-06-20  Werner Koch  <wk@gnupg.org>
1992         * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
1993         certificate with the required key usage.
1995         * gpgsm.c (main): Fixed a segv when using --outfile without an
1996         argument.
1998         * keylist.c (print_capabilities): Also check for non-repudiation
1999         and data encipherment.
2000         * certlist.c (cert_usage_p): Test for signing and encryption was
2001         swapped.  Add a case for certification usage, handle
2002         non-repudiation and data encipherment.
2003         (gpgsm_cert_use_cert_p): New.
2004         (gpgsm_add_to_certlist): Added a CTRL argument and changed all
2005         callers to pass it.
2006         * certpath.c (gpgsm_validate_path): Use it here to print a status
2007         message. Added a CTRL argument and changed all callers to pass it.
2008         * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
2009         usage.
2010         * verify.c (gpgsm_verify): Ditto.
2011         * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2013 2002-06-19  Werner Koch  <wk@gnupg.org>
2015         * call-agent.c (learn_cb): Use log_info instead of log_error on
2016         successful import.
2018         * keydb.c (keydb_set_ephemeral): New.
2019         (keydb_store_cert): New are ephemeral, changed all callers.
2020         * keylist.c (list_external_cb): Store cert as ephemeral.
2021         * export.c (gpgsm_export): Kludge to export epehmeral certificates.
2023         * gpgsm.c (main): New command --list-external-keys.
2024         
2025 2002-06-17  Werner Koch  <wk@gnupg.org>
2027         * certreqgen.c (read_parameters): Improved error handling.
2028         (gpgsm_genkey): Print error message.
2030 2002-06-13  Werner Koch  <wk@gnupg.org>
2032         * gpgsm.c (main): New option --log-file.
2034 2002-06-12  Werner Koch  <wk@gnupg.org>
2036         * call-dirmngr.c (lookup_status_cb): New.
2037         (gpgsm_dirmngr_lookup): Use the status CB.  Add new arg CTRL and
2038         changed caller to pass it.
2040         * gpgsm.c (open_fwrite): New.
2041         (main): Allow --output for --verify.
2043         * sign.c (hash_and_copy_data): New.
2044         (gpgsm_sign): Implemented normal (non-detached) signatures.
2045         * gpgsm.c (main): Ditto.
2046         
2047         * certpath.c (gpgsm_validate_path): Special error handling for
2048         no policy match.
2050 2002-06-10  Werner Koch  <wk@gnupg.org>
2052         * server.c (get_status_string): Add STATUS_ERROR.
2054         * certpath.c (gpgsm_validate_path): Tweaked the error checking to 
2055         return error codes in a more sensitive way.
2056         * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
2057         CA certificate and when the certificate has been revoked.  Issue
2058         TRUST_FULLY even when the cert has expired.  Append an error token
2059         to these status lines.  Issue the new generic error status when a
2060         cert was not found and when leaving the function.
2062 2002-06-04  Werner Koch  <wk@gnupg.org>
2064         * gpgsm.c (main): New command --list-sigs
2065         * keylist.c (list_cert_std): New.  Use it whenever colon mode is
2066         not used.
2067         (list_cert_chain): New.
2069 2002-05-31  Werner Koch  <wk@gnupg.org>
2071         * gpgsm.c (main): Don't print the "go ahead" message for an
2072         invalid command.
2074 2002-05-23  Werner Koch  <wk@gnupg.org>
2076         * import.c (gpgsm_import): Add error messages.
2078 2002-05-21  Werner Koch  <wk@gnupg.org>
2080         * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
2081         (list_external_keys): New.
2082         (gpgsm_list_keys): Dispatcher for above.
2083         * call-dirmngr.c (lookup_cb,pattern_from_strlist)
2084         (gpgsm_dirmngr_lookup): New.
2085         * server.c (option_handler): Handle new option --list-mode.
2086         (do_listkeys): Handle options and actually use the mode argument.
2087         (get_status_string): New code TRUNCATED.
2089         * import.c (gpgsm_import): Try to identify the type of input and
2090         handle certs-only messages.
2092 2002-05-14  Werner Koch  <wk@gnupg.org>
2094         * gpgsm.c: New option --faked-system-time
2095         * sign.c (gpgsm_sign): And use it here.
2096         * certpath.c (gpgsm_validate_path): Ditto.
2098 2002-05-03  Werner Koch  <wk@gnupg.org>
2100         * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
2101         all callers.
2102         * verify.c (gpgsm_verify): Tweaked usage of log_debug and
2103         log_error.  Return EXPSIG status and add expiretime to VALIDSIG.
2105 2002-04-26  Werner Koch  <wk@gnupg.org>
2107         * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
2108         Changed all users.
2110         * call-agent.c (start_agent): Be more silent without -v.
2111         * call-dirmngr.c (start_dirmngr): Ditto.
2113 2002-04-25  Werner Koch  <wk@gnupg.org>
2115         * call-agent.c (start_agent): Make copies of old locales and check
2116         for setlocale.
2118 2002-04-25  Marcus Brinkmann  <marcus@g10code.de>
2120         * call-agent.c (start_agent): Fix error handling logic so the
2121         locale is always correctly reset.
2123 2002-04-25  Marcus Brinkmann  <marcus@g10code.de>
2125         * server.c (option_handler): Accept display, ttyname, ttytype,
2126         lc_ctype and lc_messages options.
2127         * gpgsm.c (main): Allocate memory for these options.
2128         * gpgsm.h (struct opt): Make corresponding members non-const.
2130 2002-04-24  Marcus Brinkmann  <marcus@g10code.de>
2132         * gpgsm.h (struct opt): New members display, ttyname, ttytype,
2133         lc_ctype, lc_messages.
2134         * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
2135         oTTYname, oTTYtype, oLCctype, oLCmessages.
2136         (opts): New entries for these options.
2137         (main): Handle these new options.
2138         * call-agent.c (start_agent): Set the various display and tty
2139         parameter after resetting.
2141 2002-04-18  Werner Koch  <wk@gnupg.org>
2143         * certreqgen.c (gpgsm_genkey): Write status output on success.
2145 2002-04-15  Werner Koch  <wk@gnupg.org>
2147         * gpgsm.c (main): Check ksba version.
2149         * certpath.c (find_up): New to use the authorithKeyIdentifier.
2150         Use it in all other functions to locate the signing cert..
2152 2002-04-11  Werner Koch  <wk@gnupg.org>
2154         * certlist.c (cert_usable_p): New.
2155         (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
2156         (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
2157         (gpgsm_add_to_certlist): Check the key usage.
2158         * sign.c (gpgsm_sign): Ditto.
2159         * verify.c (gpgsm_verify): Print a message wehn an unsuitable
2160         certificate was used.
2161         * decrypt.c (gpgsm_decrypt): Ditto
2162         * keylist.c (print_capabilities): Determine values from the cert.
2164 2002-03-28  Werner Koch  <wk@gnupg.org>
2166         * keylist.c (list_cert_colon): Fixed listing of crt record; the
2167         issuer is not at the right place.  Print a chainingID.
2168         * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
2169         common errors.
2171 2002-03-21  Werner Koch  <wk@gnupg.org>
2173         * export.c: New.
2174         * gpgsm.c: Add command --export.
2175         * server.c (cmd_export): New.
2176         
2177 2002-03-13  Werner Koch  <wk@gnupg.org>
2179         * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
2181 2002-03-12  Werner Koch  <wk@gnupg.org>
2183         * certpath.c (check_cert_policy): Print the policy list.
2185         * verify.c (gpgsm_verify): Detect certs-only message.
2187 2002-03-11  Werner Koch  <wk@gnupg.org>
2189         * import.c (gpgsm_import): Print a notice about imported certificates
2190         when in verbose mode.
2192         * gpgsm.c (main): Print INV_RECP status.
2193         * server.c (cmd_recipient): Ditto.
2195         * server.c (gpgsm_status2): New.  Allows for a list of strings.
2196         (gpgsm_status): Divert to gpgsm_status2.
2198         * encrypt.c (gpgsm_encrypt): Don't use a default key when no
2199         recipients are given.  Print a NO_RECP status.
2201 2002-03-06  Werner Koch  <wk@gnupg.org>
2203         * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
2204         (do_listkeys): new.  Add pattern parsing.
2206         * keylist.c (gpgsm_list_keys): Handle selection pattern.
2208         * gpgsm.c: New command --learn-card
2209         * call-agent.c (learn_cb,gpgsm_agent_learn): New.
2211         * gpgsm.c (main): Print error messages for non-implemented commands.
2213         * base64.c (base64_reader_cb): Use case insensitive compare of the
2214         Content-Type string to detect plain base-64.
2216 2002-03-05  Werner Koch  <wk@gnupg.org>
2218         * gpgsm.c, gpgsm.h: Add local_user.
2219         * sign.c (gpgsm_get_default_cert): New.
2220         (get_default_signer): Use the new function if local_user is not
2221         set otherwise used that value.
2222         * encrypt.c (get_default_recipient): Removed.
2223         (gpgsm_encrypt): Use gpgsm_get_default_cert.
2225         * verify.c (gpgsm_verify): Better error text for a bad signature
2226         found by comparing the hashs.
2228 2002-02-27  Werner Koch  <wk@gnupg.org>
2230         * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2231         of assuan_transact.
2233 2002-02-25  Werner Koch  <wk@gnupg.org>
2235         * server.c (option_handler): Allow to use -2 for "send all certs
2236         except the root cert".
2237         * sign.c (add_certificate_list): Implement it here.
2238         * certpath.c (gpgsm_is_root_cert): New.
2240 2002-02-19  Werner Koch  <wk@gnupg.org>
2242         * certpath.c (check_cert_policy): New.
2243         (gpgsm_validate_path): And call it from here.
2244         * gpgsm.c (main): New options --policy-file,
2245         --disable-policy-checks and --enable-policy-checks.
2246         * gpgsm.h (opt): Added policy_file, no_policy_checks.
2248 2002-02-18  Werner Koch  <wk@gnupg.org>
2250         * certpath.c (gpgsm_validate_path): Ask the agent to add the
2251         certificate into the trusted list.
2252         * call-agent.c (gpgsm_agent_marktrusted): New.
2254 2002-02-07  Werner Koch  <wk@gnupg.org>
2256         * certlist.c (gpgsm_add_to_certlist): Check that the specified
2257         name identifies a certificate unambiguously.
2258         (gpgsm_find_cert): Ditto.
2260         * server.c (cmd_listkeys): Check that the data stream is available.
2261         (cmd_listsecretkeys): Ditto.
2262         (has_option): New.
2263         (cmd_sign): Fix ambiguousity in option recognition.
2265         * gpgsm.c (main): Enable --logger-fd.
2267         * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2268         performance.
2270         * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2271         the agent.
2273         * keylist.c (list_cert_colon): Filter out control characters.
2275 2002-02-06  Werner Koch  <wk@gnupg.org>
2277         * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
2279         * server.c (reset_notify): Close input and output FDs.
2280         (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
2281         (cmd_genkey): Close the FDs and release the recipient list even in
2282         the error case.
2284 2002-02-01  Marcus Brinkmann  <marcus@g10code.de>
2286         * sign.c (gpgsm_sign): Do not release certificate twice.
2288 2002-01-29  Werner Koch  <wk@gnupg.org>
2290         * call-agent.c (gpgsm_agent_havekey): New.
2291         * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
2292         when we know that the secret key is available.
2293         (gpgsm_list_keys): New arg MODE, check whether a secret key is
2294         available.  Changed all callers.
2295         * gpgsm.c (main): New command --list-secret-keys.
2296         * server.c (cmd_listsecretkeys): New.
2297         (cmd_listkeys): Return secret keys with "crs" record.
2299 2002-01-28  Werner Koch  <wk@gnupg.org>
2301         * certreqgen.c (create_request): Store the email address in the req.
2303 2002-01-25  Werner Koch  <wk@gnupg.org>
2305         * gpgsm.c (main): Disable core dumps.
2307         * sign.c (add_certificate_list): New.
2308         (gpgsm_sign): Add the certificates to the CMS object.
2309         * certpath.c (gpgsm_walk_cert_chain): New.
2310         * gpgsm.h (server_control_s): Add included_certs.
2311         * gpgsm.c: Add option --include-certs.
2312         (gpgsm_init_default_ctrl): New.
2313         (main): Call it.
2314         * server.c (gpgsm_server): Ditto.
2315         (option_handler): Support --include-certs.
2317 2002-01-23  Werner Koch  <wk@gnupg.org>
2319         * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
2320         * certdump.c (gpgsm_dump_string): New.
2321         (print_dn): Replaced by above.
2323 2002-01-22  Werner Koch  <wk@gnupg.org>
2325         * certpath.c (unknown_criticals): New.
2326         (allowed_ca): New.
2327         (gpgsm_validate_path): Check validity, CA attribute, path length
2328         and unknown critical extensions.
2330 2002-01-21  Werner Koch  <wk@gnupg.org>
2332         * gpgsm.c: Add option --enable-crl-checks.
2334         * call-agent.c (start_agent): Implemented socket based access.
2335         * call-dirmngr.c (start_dirmngr): Ditto.
2337 2002-01-20  Werner Koch  <wk@gnupg.org>
2339         * server.c (option_handler): New.
2340         (gpgsm_server): Register it with assuan.
2342 2002-01-19  Werner Koch  <wk@gnupg.org>
2344         * server.c (gpgsm_server): Use assuan_deinit_server and setup
2345         assuan logging if enabled.
2346         * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2347         an Assuan log file.
2349         * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2351 2002-01-15  Werner Koch  <wk@gnupg.org>
2353         * import.c (gpgsm_import): Just do a basic cert check before
2354         storing it.
2355         * certpath.c (gpgsm_basic_cert_check): New.
2357         * keydb.c (keydb_store_cert): New.
2358         * import.c (store_cert): Removed and change all caller to use
2359         the new function.
2360         * verify.c (store_cert): Ditto.
2362         * certlist.c (gpgsm_add_to_certlist): Validate the path
2364         * certpath.c (gpgsm_validate_path): Check the trust list.
2365         * call-agent.c (gpgsm_agent_istrusted): New.
2367 2002-01-14  Werner Koch  <wk@gnupg.org>
2369         * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2370         * certlist.c (gpgsm_find_cert): New.
2372 2002-01-13  Werner Koch  <wk@gnupg.org>
2374         * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2375         hash after the dot.
2377 2002-01-11  Werner Koch  <wk@gnupg.org>
2379         * call-dirmngr.c: New.
2380         * certpath.c (gpgsm_validate_path): Check the CRL here.
2381         * fingerprint.c (gpgsm_get_certid): New.
2382         * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2384 2002-01-10  Werner Koch  <wk@gnupg.org>
2386         * base64.c (gpgsm_create_writer): Allow to set the object name
2388 2002-01-08  Werner Koch  <wk@gnupg.org>
2390         * keydb.c (spacep): Removed because it is now in util.c
2392         * server.c (cmd_genkey): New.
2393         * certreqgen.c: New.  The parameter handling code has been taken
2394         from gnupg/g10/keygen.c version 1.0.6.
2395         * call-agent.c (gpgsm_agent_genkey): New.
2397 2002-01-02  Werner Koch  <wk@gnupg.org>
2399         * server.c (rc_to_assuan_status): Removed and changed all callers
2400         to use map_to_assuan_status.
2402 2001-12-20  Werner Koch  <wk@gnupg.org>
2404         * verify.c (gpgsm_verify): Implemented non-detached signature
2405         verification.  Add OUT_FP arg, initialize a writer and changed all
2406         callers.
2407         * server.c (cmd_verify): Pass an out_fp if one has been set.
2409         * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2411         * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2412         global.
2413         (print_time): Renamed to gpgsm_dump_time, made global.
2414         (gpgsm_dump_serial): Take a real S-Expression as argument and
2415         print the first item.
2416         * keylist.c (list_cert_colon): Ditto.
2417         * keydb.c (keydb_search_issuer_sn): Ditto.
2418         * decrypt.c (print_integer_sexp): Removed and made callers 
2419         use gpgsm_dump_serial.
2420         * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2421         
2422 2001-12-19  Marcus Brinkmann  <marcus@g10code.de>
2424         * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2426 2001-12-18  Werner Koch  <wk@gnupg.org>
2428         * verify.c (print_integer_sexp): Renamed from print_integer and
2429         print the serial number according to the S-Exp rules.
2430         * decrypt.c (print_integer_sexp): Ditto.
2432 2001-12-17  Werner Koch  <wk@gnupg.org>
2434         * keylist.c (list_cert_colon): Changed for new return value of
2435         get_serial.
2436         * keydb.c (keydb_search_issuer_sn): Ditto.
2437         * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2438         returingin functions.
2439         * fingerprint.c (gpgsm_get_keygrip): Ditto.
2440         * encrypt.c (encrypt_dek): Ditto
2441         * certcheck.c (gpgsm_check_cms_signature): Ditto
2442         * decrypt.c (prepare_decryption): Ditto.
2443         * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2444         use KsbaSexp type and calculate the length.
2446         * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2448         * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2450         * fingerprint.c (gpgsm_get_keygrip): Use the new
2451         gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2452         therefore the grip values changed.
2454 2001-12-15  Werner Koch  <wk@gnupg.org>
2456         * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2457         kludge.
2458         (gpgsm_create_cms_signature): Removed the commented fake key
2459         code.  This makes the function pretty simple.
2461         * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2463         * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2464         * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2466 2001-12-14  Werner Koch  <wk@gnupg.org>
2468         * keylist.c (list_cert_colon): Kludge to show an email address
2469         encoded in the subject's DN.
2471         * verify.c (gpgsm_verify): Add hash debug helpers
2472         * sign.c (gpgsm_sign): Ditto.
2474         * base64.c (base64_reader_cb): Reset the linelen when we need to
2475         skip the line and adjusted test; I somehow forgot about DeMorgan.
2477         * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify) 
2478         (cmd_import): Close the FDs on success.
2479         (close_message_fd): New.
2480         (input_notify): Setting autodetect_encoding to 0 after initializing
2481         it to 0 is pretty pointless.  Easy to fix.
2483         * gpgsm.c (main): New option --debug-wait n, so that it is
2484         possible to attach gdb when used in server mode.
2486         * sign.c (get_default_signer): Use keydb_classify_name here.
2488 2001-12-14  Marcus Brinkmann  <marcus@g10code.de>
2490         * call-agent.c (LINELENGTH): Removed.
2491         (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2492         (gpgsm_agent_pkdecrypt): Likewise.
2494 2001-12-13  Werner Koch  <wk@gnupg.org>
2496         * keylist.c (list_cert_colon): Print alternative names of subject
2497         and a few other values.
2499 2001-12-12  Werner Koch  <wk@gnupg.org>
2501         * gpgsm.c (main): New options --assume-{armor,base64,binary}. 
2502         * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2504 2001-12-04  Werner Koch  <wk@gnupg.org>
2506         * call-agent.c (read_from_agent): Check for inquire responses.
2507         (request_reply): Handle them using a new callback arg, changed all
2508         callers.
2509         (gpgsm_agent_pkdecrypt): New.
2511 2001-11-27  Werner Koch  <wk@gnupg.org>
2513         * base64.c: New.  Changed all other functions to use this instead
2514         of direct creation of ksba_reader/writer.
2515         * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2517 2001-11-26  Werner Koch  <wk@gnupg.org>
2519         * gpgsm.c: New option --agent-program
2520         * call-agent.c (start_agent): Allow to override the default path
2521         to the agent.
2523         * keydb.c (keydb_add_resource): Create keybox
2525         * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2527         * server.c (rc_to_assuan_status): New.  Use it for all commands.
2529         
2530  Copyright 2001, 2002, 2003, 2004, 2005, 2006,
2531            2007, 2008, 2009 Free Software Foundation, Inc.
2533  This file is free software; as a special exception the author gives
2534  unlimited permission to copy and/or distribute it, with or without
2535  modifications, as long as this notice is preserved.
2537  This file is distributed in the hope that it will be useful, but
2538  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2539  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.