Allow deletion of ephemeral keys.
[gnupg.git] / sm / ChangeLog
bloba98ce4d86eea123fff2816174af6d62e7f3f2d01
1 2009-03-23  Werner Koch  <wk@g10code.com>
3         * delete.c (delete_one): Also delete ephemeral certificates if
4         specified uniquely.
6 2009-03-20  Werner Koch  <wk@g10code.com>
8         * keylist.c (list_internal_keys): Set released cert to NULL.
10         * call-agent.c (learn_status_cb): New.
11         (gpgsm_agent_learn): Use it.
12         (learn_cb): Send a progress for every certificate.
14 2009-03-18  Werner Koch  <wk@g10code.com>
16         * gpgsm.h (struct opt): Move field WITH_EPHEMERAL_KEYS to struct
17         server_control_s.
18         * gpgsm.c (main): Change accordingly.
19         * keylist.c (list_internal_keys): Ditto.
20         * server.c (option_handler): Add "with-ephemeral-keys".
22 2009-03-12  Werner Koch  <wk@g10code.com>
24         * certdump.c (gpgsm_dump_time): Remove.
25         * certdump.c, verify.c, certchain.c
26         * gpgsm.c: s/gpgsm_dump_time/dump_isotime/.
28 2009-03-06  Werner Koch  <wk@g10code.com>
30         * call-agent.c (gpgsm_agent_keyinfo, keyinfo_status_cb): New.
31         * keylist.c (list_cert_colon): Print card S/N.
33         * keylist.c (list_internal_keys): Always list ephemeral keys if
34         specified by keygrip or fingerprint.
35         (list_cert_raw): Always show ephemeral flag.
36         * export.c (gpgsm_export): Export ephemeral keys if specified by
37         keygrip.
39 2009-02-09  Werner Koch  <wk@g10code.com>
41         * gpgsm.c (main): Change default cipher back to 3DES.
43 2009-01-12  Werner Koch  <wk@g10code.com>
45         * keylist.c (print_utf8_extn_raw): Cast printf precision argument.
47 2009-01-08  Werner Koch  <wk@g10code.com>
49         * fingerprint.c (gpgsm_get_keygrip_hexstring): Add error detection.
51 2008-12-10  Werner Koch  <wk@g10code.com>
53         * gpgsm.c (our_cipher_test_algo): Use the GCRY constants as we now
54         require 1.4.
55         (our_md_test_algo): Ditto.  Add SHA224.
56         (main) <aGpgConfList>: Update default cipher algo.
58 2008-12-09  Werner Koch  <wk@g10code.com>
60         * gpgsm.c (main): Call i18n_init before init_common_subsystems.
62 2008-12-05  Werner Koch  <wk@g10code.com>
64         * certreqgen.c (create_request): Provide a custom prompt for the
65         signing.
67         * certdump.c (gpgsm_format_keydesc): Remove debug output.
68         (gpgsm_format_keydesc): Remove saving of errno as xfree is
69         supposed not to change it.  Use the new percent_plus_escape
70         function which also fixes the issue that we did not escaped a
71         percent in the past.
73 2008-11-18  Werner Koch  <wk@g10code.com>
75         * gpgsm.c (make_libversion): New.
76         (my_strusage): Use new function.
77         (build_lib_list): Remove.
79 2008-11-13  Werner Koch  <wk@g10code.com>
81         * gpgsm.c: Remove all unused options. Use ARGPARSE macros.
83 2008-10-28  Werner Koch  <wk@g10code.com>
85         * certdump.c (gpgsm_format_keydesc): Use xtryasprintf and xfree.
86         (gpgsm_es_print_name): Factor code out to ...
87         (gpgsm_es_print_name2): New function.
88         (gpgsm_format_name2, format_name_writer): Use estream so that it
89         works on all platforms.
90         (format_name_writer): Fix reallocation bug.
92 2008-10-23  Werner Koch  <wk@g10code.com>
94         * import.c (popen_protect_tool): Add arg CTRL and assure that the
95         agent is running.  Pass a value for CTRL from all caller.
96         * export.c (popen_protect_tool): Ditto.
98 2008-10-21  Werner Koch  <wk@g10code.com>
100         * call-dirmngr.c (inq_certificate_parm_s): Add field CTRL.
101         (gpgsm_dirmngr_isvalid): Supply a value for that field.
102         (inq_certificate): Add inquiry ISTRUSTED.
104         * call-agent.c (gpgsm_agent_istrusted): Add new optional arg
105         HEXFPR.  Changed all callers.
107 2008-10-20  Werner Koch  <wk@g10code.com>
109         * keydb.c (keydb_locate_writable): Mark unused arg.
110         (keydb_search_kid): Ditto.
111         (keydb_clear_some_cert_flags): Ditto.
112         * server.c (cmd_encrypt): Ditto.
113         (cmd_decrypt, cmd_verify, cmd_import, cmd_genkey): Ditto.
114         * call-agent.c (gpgsm_scd_pksign): Ditto.
115         * call-dirmngr.c (release_dirmngr, release_dirmngr2) 
116         (run_command_cb): Ditto.
117         * certlist.c (gpgsm_add_cert_to_certlist): Ditto.
118         * certchain.c (find_up_dirmngr): Ditto.
119         * keylist.c (print_key_data): Ditto.
120         (list_cert_raw, list_cert_std): Ditto.
121         * qualified.c (gpgsm_is_in_qualified_list): Ditto.
123         * gpgsm.c (set_binary) [!W32]: Mark unused arg.
125 2008-10-17  Werner Koch  <wk@g10code.com>
127         * call-dirmngr.c (start_dirmngr, start_dirmngr2): Reset the lock
128         flag on error.
129         (release_dirmngr, release_dirmngr2): Replace asserts by error messages.
130         (gpgsm_dirmngr_lookup): Replace assert by fatal error message.
132 2008-10-13  Werner Koch  <wk@g10code.com>
134         * gpgsm.c: Add alias --delete-keys.
136 2008-09-30  Werner Koch  <wk@g10code.com>
138         * server.c (cmd_getinfo): New subcommand agent-check.
139         * call-agent.c (gpgsm_agent_send_nop): New.
141 2008-09-29  Werner Koch  <wk@g10code.com>
143         * certcheck.c (MY_GCRY_PK_ECDSA): Remove.  Change users to
144         GCRY_PK_ECDSA.
145         * gpgsm.c (MY_GCRY_PK_ECDSA): Ditto.
146         * sign.c (MY_GCRY_MD_SHA224): Remove change users to GCRY_MD_SHA224.
148 2008-09-04  Werner Koch  <wk@g10code.com>
150         * certdump.c (gpgsm_format_keydesc): Work around a mingw32 bug.
152 2008-09-03  Werner Koch  <wk@g10code.com>
154         * sign.c (MY_GCRY_MD_SHA224): New, so that we don't need libgcrypt
155         1.2. 
157 2008-08-13  Werner Koch  <wk@g10code.com>
159         * keylist.c (list_cert_colon): Print 'f' for validated certs.
161 2008-08-08  Marcus Brinkmann  <marcus@g10code.de>
163         * gpgsm.h (struct server_control_s): Remove member dirmngr_seen.
164         * call-dirmngr.c (dirmngr2_ctx, dirmngr_ctx_locked)
165         (dirmngr2_ctx_locked): New global variables.
166         (prepare_dirmngr): Don't check dirmngr_seen anymore.
167         (start_dirmngr): Move bunch of code to ...
168         (start_dirmngr_ext): ... this new function.
169         (release_dirmngr, start_dirmngr2, release_dirmngr2): New
170         functions.
171         (gpgsm_dirmngr_isvalid): Call release_dirmngr.
172         (gpgsm_dirmngr_lookup): Call release_dirmngr.  If dirmngr_ctx is
173         locked, use dirmngr2_locked.
174         (gpgsm_dirmngr_run_command): Call release_dirmngr.
176 2008-06-25  Werner Koch  <wk@g10code.com>
178         * sign.c (gpgsm_sign): Revamp the hash algorithm selection.
179         * gpgsm.h (struct certlist_s): Add field HASH_ALGO and HASH_ALGO_OID.
181         * qualified.c (gpgsm_qualified_consent): Fix double free.
183         * gpgsm.c (main): Change default cipher algo to AES.
185         * keylist.c (print_utf8_extn_raw, print_utf8_extn): New.
186         (list_cert_raw, list_cert_std): Print the TeleSec restriction
187         extension.
189 2008-06-23  Werner Koch  <wk@g10code.com>
191         * encrypt.c (encode_session_key): Replace xmalloc by xtrymalloc.
192         Use bin2hex instead of open coding the conversion.
193         (encrypt_dek): Init S_DATA.
195 2008-06-13  Marcus Brinkmann  <marcus@ulysses.g10code.com>
197         * call-dirmngr.c (prepare_dirmngr): Fix error code to ignore.
199 2008-06-12  Marcus Brinkmann  <marcus@g10code.de>
201         * gpgsm.h (struct keyserver_spec): New struct.
202         (opt): Add member keyserver.
203         * gpgsm.c (keyserver_list_free, parse_keyserver_line): New functions.
204         (main): Implement --keyserver option.
205         * call-dirmngr.c (prepare_dirmngr): Send LDAPSERVER commands.
207 2008-05-20  Werner Koch  <wk@g10code.com>
209         * gpgsm.c (main) <aExportSecretKeyP12>: Pass FP and not stdout to
210         the export function.  Reported by Marc Mutz.
212 2008-05-06  Werner Koch  <wk@g10code.com>
214         * keylist.c (list_external_keys): Ignore NOT FOUND error code.
215         This is bug#907.
217 2008-04-23  Werner Koch  <wk@g10code.com>
219         * certchain.c (find_up): Make correct C89 code.  Declare variable
220         at the top of the block.  Reported by Alain Guibert.
222 2008-04-09  Werner Koch  <wk@g10code.com>
224         * verify.c (gpgsm_verify): Print the message hash values on error.
226 2008-03-31  Werner Koch  <wk@g10code.com>
228         * call-dirmngr.c (start_dirmngr): Use log_info instead of
229         log_error when falling back to start dirmngr.
231 2008-03-20  Werner Koch  <wk@g10code.com>
233         * certlist.c (gpgsm_add_to_certlist): Always save the first
234         subject and issuer.  Initialize issuer with issuer and not with
235         subject.
236         (same_subject_issuer): Set issuer2 to issuer and not to subject.
238 2008-03-17  Werner Koch  <wk@g10code.com>
240         * certdump.c (my_funopen_hook_size_t): New.
241         (format_name_writer): Use it.
243 2008-03-13  Werner Koch  <wk@g10code.com>
245         * certdump.c (gpgsm_fpr_and_name_for_status): Fix signed/unsigned
246         char issue.
247         (gpgsm_format_keydesc): Remove superfluous test.  Add expire date
248         to the prompt.
250 2008-02-18  Werner Koch  <wk@g10code.com>
252         * certchain.c (gpgsm_is_root_cert): Factor code out to ...
253         (is_root_cert): New.  Extend test for self-issued certificates
254         signed by other CAs.
255         (do_validate_chain, gpgsm_basic_cert_check)
256         (gpgsm_walk_cert_chain): Use it here.
258         * gpgsm.c: Add option --no-common-certs-import.
259         
260         * certchain.c (find_up_dirmngr, find_up, do_validate_chain)
261         (check_cert_policy): Be more silent with --quiet.
263         * gpgsm.c: Add option --disable-dirmngr.
264         * gpgsm.h (opt): Add field DISABLE_DIRMNGR.
265         * call-dirmngr.c (start_dirmngr): Implement option.
267 2008-02-14  Werner Koch  <wk@g10code.com>
269         * server.c (option_handler): Add option allow-pinentry-notify.
270         (gpgsm_proxy_pinentry_notify): New.
271         * call-agent.c (default_inq_cb): New.
272         (gpgsm_agent_pksign, gpgsm_scd_pksign, gpgsm_agent_readkey) 
273         (gpgsm_agent_istrusted, gpgsm_agent_marktrusted) 
274         (gpgsm_agent_passwd, gpgsm_agent_get_confirmation): Call it.
275         (struct cipher_parm_s, struct genkey_parm_s): Add field CTRL.
276         (inq_ciphertext_cb): Test keyword and fallback to default_inq_cb.
277         (inq_genkey_parms): Ditto.
278         (start_agent): Tell agent to send us the pinentry notifications.
280 2008-02-13  Werner Koch  <wk@g10code.com>
282         * call-dirmngr.c (gpgsm_dirmngr_lookup): Add arg CACHE_ONLY.
283         * keylist.c (list_external_keys): Pass false for new arg.
284         * certchain.c (find_up_dirmngr): New.
285         (find_up): Also try to read from the dirmngr cache.
286         (find_up, find_up_external, gpgsm_walk_cert_chain)
287         (gpgsm_basic_cert_check, allowed_ca): Add arg CTRL and changed all
288         callers.
289         * call-agent.c (struct learn_parm_s): Add field CTRL.
290         (gpgsm_agent_learn): Set it.
292 2008-02-11  Werner Koch  <wk@g10code.com>
294         * server.c (cmd_getinfo): New.
295         (gpgsm_server): Register GETINFO.
297 2008-01-29  Marcus Brinkmann  <marcus@g10code.de>
299         * keylist.c (list_internal_keys): New variable lastcert.  Use it
300         to suppress duplicates which immediately follow each other.
302 2008-01-27  Werner Koch  <wk@g10code.com>
304         * import.c (popen_protect_tool): Set bit 7 in the flags for
305         gnupg_spawn_process so that under W32 no window appears.
306         * export.c (popen_protect_tool): Ditto.
308 2007-12-13  Werner Koch  <wk@g10code.com>
310         * gpgsm.c (main): Add option --extra-digest-algo.
311         * gpgsm.h (struct): Add EXTRA_DIGEST_ALGO.
312         * verify.c (gpgsm_verify): Use it.  Use the hash algorithm from
313         the signature value.
315 2007-12-11  Werner Koch  <wk@g10code.com>
317         * certchain.c (do_validate_chain): Log AUDIT_ROOT_TRUSTED.
319         * server.c (cmd_sign, cmd_decrypt, cmd_encrypt): Start audit log.
320         (cmd_recipient): Start audit session.
322         * gpgsm.c (main): Revamp creation of the audit log.
324         * gpgsm.h (struct server_control_s): Add AGENT_SEEN and DIRMNGR_SEEN.
325         * call-agent.c (start_agent): Record an audit event.
326         * call-dirmngr.c (start_dirmngr): Ditto. Add new arg CTRL and pass
327         it from all callers.
328         (prepare_dirmngr): New helper for start_dirmngr.
330         * encrypt.c (gpgsm_encrypt): Add calls to audit_log.
332 2007-12-03  Werner Koch  <wk@g10code.com>
334         * gpgsm.c (main): Call gnupg_reopen_std.
336 h2007-11-22  Werner Koch  <wk@g10code.com>
338         * server.c (cmd_getauditlog): New.
339         (register_commands): Register GETAUDITLOG.
341 2007-11-19  Werner Koch  <wk@g10code.com>
343         * server.c (cmd_recipient, cmd_signer): Add error reason 11.
345         * gpgsm.c (main): Print a warning if --audit-log is used.
347 2007-11-15  Werner Koch  <wk@g10code.com>
349         * gpgsm.h (struct): Add XAUTHORITY and PINENTRY_USER_DATA.
350         * misc.c (setup_pinentry_env): Add XAUTHORITY and PINENTRY_USER_DATA.
351         * gpgsm.c (main): New option --xauthority.
352         * call-agent.c (start_agent): Adjust for changed start_new_gpg_agent.
353         * server.c (option_handler): Ad the new options.
355 2007-11-07  Werner Koch  <wk@g10code.com>
357         * gpgsm.c (main): New option --audit-log.
358         * server.c (option_handler): New option enable-audit-log.
359         (start_audit_session): New.
360         (cmd_verify): Create audit context.
361         (gpgsm_server): Release the context.
363         * gpgsm.h (struct server_control_s): Add member AUDIT, include
364         audit.h.
365         * certdump.c (gpgsm_format_sn_issuer): New.
366         * verify.c (hash_data): Return an error code.
367         (gpgsm_verify): Add calls to audit_log.
369         * gpgsm.c (get_status_string): Remove.
370         * gpgsm.h: Include status.h instead of errors.h.
371         
372 2007-10-19  Werner Koch  <wk@g10code.com>
374         * qualified.c (gpgsm_qualified_consent): Use i18N-swicth functions.
375         (gpgsm_not_qualified_warning): Ditto.
376         * certdump.c (gpgsm_format_keydesc): Ditto.
378 2007-09-14  Werner Koch  <wk@g10code.com>
380         * gpgsm.c (build_lib_list): New.
381         (my_strusage): Print lib info.
383 2007-08-24  Werner Koch  <wk@g10code.com>
385         * Makefile.am (common_libs): Swap libkeybox and jnlib. 
387 2007-08-23  Werner Koch  <wk@g10code.com>
389         * certlist.c (gpgsm_certs_identical_p): New.
390         (gpgsm_add_to_certlist): Ignore duplicate certificates in
391         ambigious name detection.
392         (gpgsm_find_cert): Ditto.
393         * export.c (gpgsm_p12_export): Ditto.
395 2007-08-22  Werner Koch  <wk@g10code.com>
397         * certreqgen.c (create_request): Replace open coding by bin2hex.
399         * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_fopenmem.
401 2007-08-21  Werner Koch  <wk@g10code.com>
403         * import.c (parse_p12): Use gnupg_tmpfile.
404         * export.c (export_p12): Ditto.
405         
406 2007-08-20  Werner Koch  <wk@g10code.com>
408         * certreqgen.c (read_parameters): Change FP to an estream_t.
409         (gpgsm_genkey): Replace in_fd and in_stream by a estream_t.
410         * server.c (cmd_genkey): Adjust for that.
411         * certreqgen-ui.c (gpgsm_gencertreq_tty): Use es_open_memstream
412         instead of a temporary file.
414 2007-08-14  Werner Koch  <wk@g10code.com>
416         * call-dirmngr.c (start_dirmngr): Use dirmngr_socket_name.  change
417         the way infostr is xstrdupped.
419         * gpgsm.c (main) [W32]: Make --prefer-system-dirmngr a dummy under
420         Windows.
422 2007-08-13  Werner Koch  <wk@g10code.com>
424         * gpgsm.c (do_add_recipient): Add RECP_REQUIRED and make error
425         message depend on that.
426         (main): Add avriable RECP_REQUIRED, set ift for encryption
427         commands and pass it to do_add_recipient.
428         (our_pk_test_algo, our_cipher_test_algo, our_md_test_algo): Implement.
430 2007-08-09  Werner Koch  <wk@g10code.com>
432         * gpgsm.c (main) [W32]: Enable CRL check by default.
433         (main): Update the default control structure after reading the
434         options.
435         (gpgsm_parse_validation_model, parse_validation_model): New.
436         (main): New option --validation-model.
437         * certchain.c (gpgsm_validate_chain): Implement this option.
438         * server.c (option_handler): Ditto.
440         * certchain.c (is_cert_still_valid): Reformatted.  Add arg
441         FORCE_OCSP.  Changed callers to set this flag when using the chain
442         model.
444 2007-08-08  Werner Koch  <wk@g10code.com>
446         * certdump.c (gpgsm_print_serial): Fixed brown paper bag style bugs
447         which prefixed the output with a 3A and cut it off at a 00.
449         * keylist.c (list_cert_raw): Print the certificate ID first and
450         rename "Serial number" to "S/N".
451         (list_cert_std): Ditto.
453 2007-08-07  Werner Koch  <wk@g10code.com>
455         * gpgsm.c (main): Allow a string for --faked-system-time.
457 2007-08-06  Werner Koch  <wk@g10code.com>
459         Implementation of the chain model.
460         
461         * gpgsm.h (struct rootca_flags_s): Define new members VALID and
462         CHAIN_MODEL.
463         * call-agent.c (gpgsm_agent_istrusted): Mark ROOTCA_FLAGS valid.
464         (istrusted_status_cb): Set CHAIN_MODEL.
465         * certchain.c (gpgsm_validate_chain): Replace LM alias by LISTMODE
466         and FP by LISTFP.
467         (gpgsm_validate_chain): Factor some code out to ...
468         (check_validity_period, ask_marktrusted): .. new.
469         (check_validity_cm_basic, check_validity_cm_main): New.
470         (do_validate_chain): New with all code from gpgsm_validate_chain.
471         New arg ROOTCA_FLAGS.
472         (gpgsm_validate_chain): Provide ROOTCA_FLAGS and fallback to chain
473         model.  Add RETFLAGS arg and changed all callers to pass NULL. Add
474         CHECKTIME arg and changed all callers to pass a nil value.
475         (has_validity_model_chain): New.
476         * verify.c (gpgsm_verify): Check for chain model and return as
477         part of the trust status.
479         * gpgsm.h (VALIDATE_FLAG_NO_DIRMNGR): New.
480         (VALIDATE_FLAG_NO_DIRMNGR): New.
481         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use constant here.
483 2007-08-03  Werner Koch  <wk@g10code.com>
485         * keylist.c (list_cert_colon): Avoid duplicate listing of kludge
486         uids.
488         * verify.c (gpgsm_verify): Make STATUS_VERIFY return the hash and
489         pk algo.
490         * certcheck.c (gpgsm_check_cms_signature): Add arg R_PKALGO.
492 2007-08-02  Werner Koch  <wk@g10code.com>
494         * gpgsm.c (main): Factored GC_OPT_FLAGS out to gc-opt-flags.h.
496 2007-07-17  Werner Koch  <wk@g10code.com>
498         * gpgsm.c (main): Implement --default-key.
499         (main) <gpgconf-list>: Declare --default-key and --encrypt-to.
501 2007-07-16  Werner Koch  <wk@g10code.com>
503         * server.c (cmd_message): Use gnupg_fd_t to avoid dependecy on
504         newer assuan versions.
506 2007-07-12  Werner Koch  <wk@g10code.com>
508         * gpgsm.c (check_special_filename): Use translate_sys2libc_fd_int
509         when passing an int value.
510         * server.c (cmd_encrypt, cmd_decrypt, cmd_verify, cmd_import)
511         (cmd_export, cmd_message, cmd_genkey):  Translate file descriptors.
512         
513 2007-07-05  Werner Koch  <wk@g10code.com>
515         * Makefile.am (common_libs): Changed order of libs.
517 2007-07-04  Werner Koch  <wk@g10code.com>
519         * certchain.c (check_cert_policy): Remove extra checks for
520         GPG_ERR_NO_VALUE.  They are not needed since libksba 1.0.1.
521         * keylist.c (print_capabilities, list_cert_raw, list_cert_std): Ditto.
522         * certlist.c (cert_usage_p, cert_usage_p): Ditto.
524 2007-06-26  Werner Koch  <wk@g10code.com>
526         * gpgsm.c (main): Call gnupg_rl_initialize.
527         * Makefile.am (gpgsm_LDADD): Add LIBREADLINE and libgpgrl.a.
529 2007-06-25  Werner Koch  <wk@g10code.com>
531         * gpgsm.c (check_special_filename): Use translate_sys2libc_fd and
532         add new arg FOR_WRITE.  Change callers to pass new arg.
534 2007-06-24  Werner Koch  <wk@g10code.com>
536         * gpgsm.c (open_es_fwrite): Avoid the dup by using the new
537         es_fdopen_nc().  
539 2007-06-21  Werner Koch  <wk@g10code.com>
541         * certreqgen-ui.c: New.
542         * gpgsm.c (main): Let --gen-key call it.
543         * certreqgen.c (gpgsm_genkey): Add optional IN_STREAM arg and
544         adjusted caller.
546         * gpgsm.h (ctrl_t): Remove.  It is now declared in ../common/util.h.
548         * call-agent.c (start_agent): Factored almost all code out to
549         ../common/asshelp.c.
551 2007-06-20  Werner Koch  <wk@g10code.com>
553         * call-agent.c (start_agent) [W32]: Start the agent on the fly.
555 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
557         * gpgsm.c (main): Percent escape output of --gpgconf-list.
559 2007-06-14  Werner Koch  <wk@g10code.com>
561         * call-agent.c (start_agent): Use gnupg_module_name.
562         * call-dirmngr.c (start_dirmngr): Ditto.
563         * export.c (export_p12): Ditto.
564         * import.c (parse_p12): Ditto.
565         * gpgsm.c (run_protect_tool): Ditto.
567 2007-06-12  Werner Koch  <wk@g10code.com>
569         * gpgsm.c (main): Replace some calls by init_common_subsystems.
570         (main): Use gnupg_datadir.
571         * qualified.c (read_list): Use gnupg-datadir.
573 2007-06-11  Werner Koch  <wk@g10code.com>
575         * Makefile.am (common_libs): Use libcommaonstd macr.
577         * gpgsm.c (main) [W32]: Call pth_init.
579 2007-06-06  Werner Koch  <wk@g10code.com>
581         * qualified.c (gpgsm_not_qualified_warning) [!ENABLE_NLS]: Do not
582         define orig_codeset.
583         * certdump.c (gpgsm_format_keydesc) [!ENABLE_NLS]: Do not define
584         orig_codeset.
585         (format_name_writer): Define only if funopen et al is available.
587         * gpgsm.c (i18n_init): Remove.
589 2007-05-29  Werner Koch  <wk@g10code.com>
591         * export.c (gpgsm_p12_export): Print passphrase encoding info only
592         in PEM mode.
594 2007-05-18  Marcus Brinkmann  <marcus@g10code.de>
596         * qualified.c (gpgsm_qualified_consent,
597         gpgsm_not_qualified_warning): Free ORIG_CODESET on error.
598         * certdump.c (gpgsm_format_keydesc): Likewise.
600 2007-05-07  Werner Koch  <wk@g10code.com>
602         * certcheck.c (MY_GCRY_PK_ECDSA): New.
604 2007-04-20  Werner Koch  <wk@g10code.com>
606         * gpgsm.c (main): Parameterize failed versions check messages.
608 2007-04-19  Werner Koch  <wk@g10code.com>
610         * certcheck.c (do_encode_md): Add arg PKEY.  Add support for DSA2
611         and all ECDSA sizes.
612         (get_dsa_qbits): New.
613         (pk_algo_from_sexp): A key will never contain ecdsa as algorithm,
614         so remove that.
616 2007-04-18  Werner Koch  <wk@g10code.com>
618         * certcheck.c (do_encode_md): Support 160 bit ECDSA.
620 2007-04-13  Werner Koch  <wk@g10code.com>
622         * call-agent.c (start_agent): Don't use log_error when using the
623         fallback hack to start the agent.  This is bug 782.
625 2007-03-20  Werner Koch  <wk@g10code.com>
627         * fingerprint.c (gpgsm_get_fingerprint): Add caching.
628         (gpgsm_get_fingerprint_string): Use bin2hexcolon().
629         (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only
630         as much memory as required.
631         (gpgsm_get_keygrip_hexstring): Use bin2hex.
633         * certchain.c (gpgsm_validate_chain): Keep track of the
634         certificate chain and reset the ephemeral flags.
635         * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK.
636         Changed caller to use a mask of ~0.  Return a proper error code if
637         the certificate is not available.
639         * gpgsm.c: Add option --p12-charset.
640         * gpgsm.h (struct opt): Add p12_charset. 
641         * export.c (popen_protect_tool): Use new option.
643 2007-03-19  Werner Koch  <wk@g10code.com>
645         Changes to let export and key listing use estream to help systems
646         without funopen.
647         
648         * keylist.c: Use estream in place of stdio functions.
649         * gpgsm.c (open_es_fwrite): New.
650         (main): Use it for the list commands.
651         * server.c (data_line_cookie_functions): New.
652         (data_line_cookie_write, data_line_cookie_close): New.
653         (do_listkeys): Use estream.
655         * certdump.c (gpgsm_print_serial): Changed to use estream.
656         (gpgsm_print_time): Ditto.
657         (pretty_es_print_sexp): New.
658         (gpgsm_es_print_name): New.
659         (print_dn_part): New arg STREAM.  Changed all callers.
660         (print_dn_parts): Ditto.
661         * certchain.c (gpgsm_validate_chain): Changed FP to type
662         estream_t.
663         (do_list, unknown_criticals, allowed_ca, check_cert_policy) 
664         (is_cert_still_valid): Ditto.
666         * export.c (gpgsm_export): New arg STREAM.
667         (do_putc, do_fputs): New.
668         (print_short_info): Allow printing to optional STREAM.
669         * server.c (cmd_export): Use stream.
670         * base64.c (do_putc, do_fputs): New.
671         (base64_writer_cb, base64_finish_write): Let them cope with an
672         alternate output function.
673         (plain_writer_cb): New.
674         (gpgsm_create_writer): New arg STREAM and call plain_writer_cb for
675         binary output to an estream.  Changed call callers.
677 2007-01-31  Werner Koch  <wk@g10code.com>
679         * gpgsm.c (main): Let --gen-key print a more informative error
680         message.
682 2007-01-25  Werner Koch  <wk@g10code.com>
684         * Makefile.am (gpgsm_LDADD): Add LIBICONV.  Noted by Billy Halsey.
686 2007-01-05  Werner Koch  <wk@g10code.com>
688         * certchain.c (unknown_criticals): Add subjectAltName.
690 2006-12-21  Werner Koch  <wk@g10code.com>
692         * gpgsm.c: Comment mtrace feature.
694 2006-12-21  Marcus Brinkmann  <marcus@g10code.de>
696         * certchain.c (gpgsm_basic_cert_check): Release SUBJECT.
698         * encrypt.c (encrypt_dek): Release S_CIPH.
700 2006-12-20  Marcus Brinkmann  <marcus@g10code.de>
702         * server.c (gpgsm_server): Release CTRL->server_local.
704         * base64.c: Add new members READER and WRITER in union U2.
705         (gpgsm_create_reader): Initialise CTX->u2.reader.
706         (gpgsm_destroy_reader): Invoke ksba_reader_release.  Return early
707         if CTX is NULL.
708         (gpgsm_create_writer): Initialise CTX->u2.writer.
709         (gpgsm_destroy_writer): Invoke ksba_writer_release.  Return early
710         if CTX is NULL.
712 2006-12-18  Marcus Brinkmann  <marcus@g10code.de>
714         * fingerprint.c (gpgsm_get_fingerprint): Close MD.
716 2006-11-24  Werner Koch  <wk@g10code.com>
718         * certdump.c (parse_dn_part): Take '#' as a special character only
719         at the beginning of a string.
721 2006-11-21  Werner Koch  <wk@g10code.com>
723         * certdump.c (my_funopen_hook_ret_t): New.
724         (format_name_writer): Use it for the return value.
726 2006-11-14  Werner Koch  <wk@g10code.com>
728         * server.c (skip_options): Skip leading spaces.
729         (has_option): Honor "--".
730         (cmd_export): Add option --data to do an inline export.  Skip all
731         options.
733         * certdump.c (gpgsm_fpr_and_name_for_status): New.
734         * verify.c (gpgsm_verify): Use it to print correct status messages.
736 2006-11-11  Werner Koch  <wk@g10code.com>
738         * server.c (skip_options): New.
740 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
742         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
744 2006-10-23  Werner Koch  <wk@g10code.com>
746         * gpgsm.c (main): Remap common cipher algo names to their OIDs.
747         (main): New command --gpgconf-test.
749 2006-10-20  Werner Koch  <wk@g10code.com>
751         * keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
753 2006-10-18  Werner Koch  <wk@g10code.com>
755         * keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
756         testing for GPG_ERR_NO_DATA.
757         * certlist.c (cert_usage_p, gpgsm_find_cert): Ditto.
758         * certchain.c (check_cert_policy): Ditto.
760         * keylist.c (list_cert_std, list_cert_raw): Print "none" for no
761         chain length available.
763 2006-10-17  Werner Koch  <wk@g10code.com>
765         * gpgsm.c: No need for pth.h.  
766         (main): or to init it. It used to be hack for W32.
768         * sign.c (gpgsm_get_default_cert): Changed to return only
769         certificates usable for signing.
771 2006-10-16  Werner Koch  <wk@g10code.com>
773         * certchain.c (already_asked_marktrusted) 
774         (set_already_asked_marktrusted): New.
775         (gpgsm_validate_chain) <not trusted>: Keep track of certificates
776         we already asked for.
778 2006-10-11  Werner Koch  <wk@g10code.com>
780         * certreqgen.c (proc_parameters, create_request): Allow for
781         creation directly from a card.
782         * call-agent.c (gpgsm_agent_readkey): New arg FROMCARD.
783         (gpgsm_scd_pksign): New.
785 2006-10-06  Werner Koch  <wk@g10code.com>
787         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
788         (gpgsm_LDADD): Ditto.
790 2006-10-05  Werner Koch  <wk@g10code.com>
792         * certcheck.c (do_encode_md): Check that the has algo is valid.
794 2006-10-02  Marcus Brinkmann  <marcus@g10code.de>
796         * server.c (register_commands): New commands DUMPKEYS and
797         DUMPSECRETKEYS.
798         (cmd_dumpkeys, cmd_dumpsecretkeys): New functions.
799         (option_handler): Support with-key-data option.
801 2006-09-26  Werner Koch  <wk@g10code.com>
803         * certchain.c (gpgsm_validate_chain): More changes for the relax
804         feature.  Use certificate reference counting instead of the old
805         explicit tests. Added a missing free. 
807 2006-09-25  Werner Koch  <wk@g10code.com>
809         * gpgsm.h (struct rootca_flags_s): New.
810         * call-agent.c (istrusted_status_cb): New.
811         (gpgsm_agent_istrusted): New arg ROOTCA_FLAGS.
812         * keylist.c (list_cert_colon): Use dummy for new arg.
813         * certchain.c (gpgsm_validate_chain): Make use of the relax flag
814         for root certificates.
815         (unknown_criticals): Ignore a GPG_ERR_NO_VALUE.
817 2006-09-20  Werner Koch  <wk@g10code.com>
819         * gpgsm.c: Add alias command --dump-cert.
821         * Makefile.am:  Changes to allow parallel make runs.
823 2006-09-18  Werner Koch  <wk@g10code.com>
825         * gpgsm.c (main): Use this to import standard certificates.
826         * keydb.c (keydb_add_resource): New arg AUTO_CREATED.
828 2006-09-14  Werner Koch  <wk@g10code.com>
830         Replaced all call gpg_error_from_errno(errno) by
831         gpg_error_from_syserror().
833 2006-09-13  Werner Koch  <wk@g10code.com>
835         * keylist.c (list_internal_keys): Print marker line to FP and not
836         to stdout.
838         * gpgsm.c (main): All list key list commands now make ose of
839         --output. Cleaned up calls to list modes.  New command
840         --dump-chain.  Renamed --list-sigs to --list-chain and added an
841         alias for the old one.
843         * server.c (cmd_message): Changed to use assuan_command_parse_fd.
844         (option_handler): New option list-to-output.
845         (do_listkeys): Use it.
847 2006-09-06  Werner Koch  <wk@g10code.com>
849         * gpgsm.h (OUT_OF_CORE): Removed and changed all callers to
850         out_of_core.
851         (CTRL): Removed and changed everywhere to ctrl_t.
852         (CERTLIST): Ditto.
854         Replaced all Assuan error codes by libgpg-error codes.  Removed
855         all map_to_assuan_status and map_assuan_err.
856         
857         * gpgsm.c (main): Call assuan_set_assuan_err_source to have Assuan
858         switch to gpg-error codes.  
859         * server.c (set_error): Adjusted.
861 2006-08-29  Werner Koch  <wk@g10code.com>
863         * call-agent.c (gpgsm_agent_pkdecrypt): Allow decryption using
864         complete S-expressions as implemented by the current gpg-agent.
866         * gpgsm.c (main): Implement --output for encrypt, decrypt, sign
867         and export.
869 2006-07-03  Werner Koch  <wk@g10code.com>
871         * certreqgen.c (proc_parameters): Print the component label of a
872         faulty DN.
874 2006-06-26  Werner Koch  <wk@g10code.com>
876         * certdump.c (gpgsm_cert_log_name): New.
877         * certchain.c (is_cert_still_valid): Log the name of the certificate.
879 2006-06-20  Werner Koch  <wk@g10code.com>
881         * gpgsm.c (gpgsm_init_default_ctrl): Take care of the command line
882         option --include-certs.
884         * keylist.c (list_cert_raw): Print the certid.
886 2006-05-23  Werner Koch  <wk@g10code.com>
888         * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
890         * Makefile.am (gpgsm_LDADD): Include ZLIBS.
892 2006-05-19  Marcus Brinkmann  <marcus@g10code.de>
894         * keydb.c (keydb_insert_cert): Do not lock here, but only check if
895         it is locked.
896         (keydb_store_cert): Lock here.
898         * keydb.h (keydb_delete): Accept new argument UNLOCK.
899         * keydb.c (keydb_delete): Likewise.  Only unlock if this is set.
900         * delete.c (delete_one): Add new argument to invocation of
901         keydb_delete.
902         
903 2006-05-15  Werner Koch  <wk@g10code.com>
905         * keylist.c (print_names_raw): Sanitize URI.
907 2006-03-21  Werner Koch  <wk@g10code.com>
909         * certchain.c (get_regtp_ca_info): New.
910         (allowed_ca): Use it.
912 2006-03-20  Werner Koch  <wk@g10code.com>
914         * qualified.c (gpgsm_is_in_qualified_list): New optional arg COUNTRY.
916 2006-02-17  Werner Koch  <wk@g10code.com>
918         * call-dirmngr.c (start_dirmngr): Print name of dirmngr to be started.
920 2005-11-23  Werner Koch  <wk@g10code.com>
922         * gpgsm.h: New member QUALSIG_APPROVAL.
923         * sign.c (gpgsm_sign): Print a warning if a certificate is not
924         qualified.
925         * qualified.c (gpgsm_qualified_consent): Include a note that this
926         is not approved software.
927         (gpgsm_not_qualified_warning): New.
928         * gpgsm.c (main): Prepared to print a note whether the software
929         has been approved.
931 2005-11-13  Werner Koch  <wk@g10code.com>
933         * call-agent.c (gpgsm_agent_get_confirmation): New.
935         * keylist.c (list_cert_std): Print qualified status.
936         * qualified.c: New.
937         * certchain.c (gpgsm_validate_chain): Check for qualified
938         certificates.
940         * certchain.c (gpgsm_basic_cert_check): Release keydb handle when
941         no-chain-validation is used.
943 2005-11-11  Werner Koch  <wk@g10code.com>
945         * keylist.c (print_capabilities): Print is_qualified status.
947 2005-10-28  Werner Koch  <wk@g10code.com>
949         * certdump.c (pretty_print_sexp): New.
950         (gpgsm_print_name2): Use it here.  This allows proper printing of
951         DNS names as used with server certificates.
953 2005-10-10  Werner Koch  <wk@g10code.com>
955         * keylist.c: Add pkaAdress OID as reference.
957 2005-10-08  Marcus Brinkmann  <marcus@g10code.de>
959         * Makefile.am (gpgsm_LDADD): Add ../gl/libgnu.a after
960         ../common/libcommon.a.
962 2005-09-13  Werner Koch  <wk@g10code.com>
964         * verify.c (gpgsm_verify): Print a note if the unknown algorithm
965         is MD2.
966         * sign.c (gpgsm_sign): Ditto.
967         * certcheck.c (gpgsm_check_cert_sig): Ditto.
969 2005-09-08  Werner Koch  <wk@g10code.com>
971         * export.c (popen_protect_tool): Add option --have-cert.  We
972         probably lost this option with 1.9.14 due to restructuring of
973         export.c.
975 2005-07-21  Werner Koch  <wk@g10code.com>
977         * gpgsm.c (main): New options --no-log-file and --debug-none.
979         * certreqgen.c (get_parameter, get_parameter_value): Add SEQ arg
980         to allow enumeration.  Changed all callers.
981         (create_request): Process DNS and URI parameters.
983 2005-07-20  Werner Koch  <wk@g10code.com>
985         * keylist.c (email_kludge): Reworked.
987         * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf
988         arg to unsigned.
989         * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
991 2005-07-19  Werner Koch  <wk@g10code.com>
993         * fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
994         Bug accidently introduced while solving the #$%^& gcc
995         signed/unsigned char* warnings.
997 2005-06-15  Werner Koch  <wk@g10code.com>
999         * delete.c (delete_one): Changed FPR to unsigned.
1000         * encrypt.c (encrypt_dek): Made ENCVAL unsigned.
1001         (gpgsm_encrypt): Ditto.
1002         * sign.c (gpgsm_sign): Made SIGVAL unsigned.
1003         * base64.c (base64_reader_cb): Need to use some casting to get
1004         around signed/unsigned char* warnings.
1005         * certcheck.c (gpgsm_check_cms_signature): Ditto.
1006         (gpgsm_create_cms_signature): Changed arg R_SIGVAL to unsigned char*.
1007         (do_encode_md): Made NFRAME a size_t.
1008         * certdump.c (gpgsm_print_serial): Fixed signed/unsigned warning.
1009         (gpgsm_dump_serial): Ditto.
1010         (gpgsm_format_serial): Ditto.
1011         (gpgsm_dump_string): Ditto.
1012         (gpgsm_dump_cert): Ditto.
1013         (parse_dn_part): Ditto.
1014         (gpgsm_print_name2): Ditto.
1015         * keylist.c (email_kludge): Ditto.
1016         * certreqgen.c (proc_parameters, create_request): Ditto.
1017         (create_request): Ditto.
1018         * call-agent.c (gpgsm_agent_pksign): Made arg R_BUF unsigned.
1019         (struct cipher_parm_s): Made CIPHERTEXT unsigned.
1020         (struct genkey_parm_s): Ditto.
1021         * server.c (strcpy_escaped_plus): Made arg S signed char*.
1022         * fingerprint.c (gpgsm_get_fingerprint): Made ARRAY unsigned.
1023         (gpgsm_get_keygrip): Ditto.
1024         * keydb.c (keydb_insert_cert): Made DIGEST unsigned.
1025         (keydb_update_cert): Ditto.
1026         (classify_user_id): Apply cast to signed/unsigned assignment.
1027         (hextobyte): Ditto.
1029 2005-06-01  Werner Koch  <wk@g10code.com>
1031         * misc.c: Include setenv.h.
1033 2005-04-21  Werner Koch  <wk@g10code.com>
1035         * gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check.
1036         * certchain.c (gpgsm_validate_chain): Make use of it.
1038         * certchain.c (gpgsm_validate_chain): Check revocations even for
1039         expired certificates.  This is required because on signature
1040         verification an expired key is fine whereas a revoked one is not.
1042 2005-04-20  Werner Koch  <wk@g10code.com>
1044         * Makefile.am (AM_CFLAGS): Add PTH_CFLAGS as noted by several folks.
1046 2005-04-19  Werner Koch  <wk@g10code.com>
1048         * certchain.c (check_cert_policy): Print the diagnostic for a open
1049         failure of policies.txt only in verbose mode or when it is not
1050         ENOENT.
1052 2005-04-17  Werner Koch  <wk@g10code.com>
1054         * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
1055         * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
1056         this filter.  Changed all callers.
1058         * certchain.c (find_up_search_by_keyid): New helper.
1059         (find_up): Also try using the AKI.keyIdentifier.
1060         (find_up_external): Ditto.
1062 2005-04-15  Werner Koch  <wk@g10code.com>
1064         * keylist.c (list_cert_raw): Print the subjectKeyIdentifier as
1065         well as the keyIdentifier part of the authorityKeyIdentifier.
1067 2005-03-31  Werner Koch  <wk@g10code.com>
1069         * call-dirmngr.c (start_dirmngr): Use PATHSEP_C instead of ':'.
1070         * call-agent.c (start_agent): Ditto.
1072 2005-03-17  Werner Koch  <wk@g10code.com>
1074         * certcheck.c: Fixed use of DBG_CRYPTO and DBG_X509.
1076         * certchain.c (gpgsm_basic_cert_check): Dump certificates after a
1077         failed gcry_pk_verify.
1078         (find_up): Do an external lookup also for an authorityKeyIdentifier
1079         lookup. Factored external lookup code out to ..
1080         (find_up_external): .. new.
1082 2005-03-03  Werner Koch  <wk@g10code.com>
1084         * Makefile.am (gpgsm_LDADD): Added PTH_LIBS.  Noted by Kazu Yamamoto.
1086 2005-01-13  Werner Koch  <wk@g10code.com>
1088         * certreqgen.c (proc_parameters): Cast printf arg.
1090 2004-12-22  Werner Koch  <wk@g10code.com>
1092         * gpgsm.c (set_binary): New.
1093         (main, open_read, open_fwrite): Use it.
1095 2004-12-21  Werner Koch  <wk@g10code.com>
1097         * gpgsm.c (main): Use default_homedir().
1098         (main) [W32]: Default to disabled CRL checks.
1100 2004-12-20  Werner Koch  <wk@g10code.com>
1102         * call-agent.c (start_agent): Before starting a pipe server start
1103         to connect to a server on the standard socket.  Use PATHSEP
1104         * call-dirmngr.c (start_dirmngr): Use PATHSEP.
1106         * import.c: Include unistd.h for dup and close.
1108 2004-12-18  Werner Koch  <wk@g10code.com>
1110         * gpgsm.h (map_assuan_err): Define in terms of
1111         map_assuan_err_with_source.
1112         * call-agent.c (start_agent): Pass error source to
1113         send_pinentry_environment.
1115 2004-12-17  Werner Koch  <wk@g10code.com>
1117         * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)
1118         (run_command_status_cb): Return cancel status if gpgsm_status
1119         returned an error.
1121         * server.c (gpgsm_status, gpgsm_status2) 
1122         (gpgsm_status_with_err_code): Return an error code.
1123         (gpgsm_status2): Always call va_end().
1125 2004-12-15  Werner Koch  <wk@g10code.com>
1127         * call-dirmngr.c (lookup_status_cb): Send progress messages
1128         upstream.
1129         (isvalid_status_cb): Ditto.
1130         (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters.
1131         (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to
1132         status callback and handle PROGRESS.
1134         * misc.c (setup_pinentry_env) [W32]: Don't use it.
1136         * gpgsm.c (main) [W32]: Init Pth because we need it for the socket
1137         operations and to resolve libassuan symbols.
1138         (run_protect_tool) [W32]: Disable it.
1140         * Makefile.am (gpgsm_LDADD): Move LIBASSUAN_LIBS more to the end.
1142 2004-12-07  Werner Koch  <wk@g10code.com>
1144         * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
1145         under W32 we need the w32 pth code from jnlib.
1147         * misc.c (setup_pinentry_env) [W32]: Disabled.
1149 2004-12-06  Werner Koch  <wk@g10code.com>
1151         * gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
1153         * import.c (popen_protect_tool): Simplified by making use of
1154         gnupg_spawn_process.
1155         (parse_p12): Likewise, using gnupg_wait_process.
1156         * export.c (popen_protect_tool): Ditto.
1157         (export_p12): Ditto.
1159         * keydb.c: Don't define DIRSEP_S here.
1161 2004-12-02  Werner Koch  <wk@g10code.com>
1163         * certchain.c (gpgsm_basic_cert_check): Dump certs with bad
1164         signature for debugging.
1165         (gpgsm_validate_chain): Ditto.
1167 2004-11-29  Werner Koch  <wk@g10code.com>
1169         * gpgsm.c (set_debug): Changed to use a globals DEBUG_LEVEL and
1170         DEBUG_VALUE.
1171         (main): Made DEBUG_LEVEL global and introduced DEBUG_VALUE.  This
1172         now allows to add debug flags on top of a debug-level setting.
1174 2004-11-23  Werner Koch  <wk@g10code.com>
1176         * gpgsm.c: New option --prefer-system-dirmngr.
1177         * call-dirmngr.c (start_dirmngr): Implement this option.
1179 2004-10-22  Werner Koch  <wk@g10code.com>
1181         * certreqgen.c (gpgsm_genkey): Remove the NEW from the certificate
1182         request PEM header.  This is according to the Sphinx standard.
1184 2004-10-08  Moritz Schulte  <moritz@g10code.com>
1186         * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
1187         case the no_chain_validation-return-short-cut is used (fixes
1188         memory leak).
1190 2004-10-04  Werner Koch  <wk@g10code.com>
1192         * misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
1194 2004-09-30  Werner Koch  <wk@g10code.com>
1196         * gpgsm.c (i18n_init): Always use LC_ALL.
1198         * certdump.c (gpgsm_format_name): Factored code out to ..
1199         (gpgsm_format_name2): .. new.
1200         (gpgsm_print_name): Factored code out to ..
1201         (gpgsm_print_name2): .. new.
1202         (print_dn_part): New arg TRANSLATE.  Changed all callers.
1203         (print_dn_parts): Ditto.
1204         (gpgsm_format_keydesc): Do not translate the SUBJECT; we require
1205         it to stay UTF-8 but we still want to filter out bad control
1206         characters.
1208         * Makefile.am: Adjusted for gettext 0.14.
1210         * keylist.c (list_cert_colon): Make sure that the expired flag has
1211         a higher precedence than the invalid flag. 
1213 2004-09-29  Werner Koch  <wk@g10code.com>
1215         * import.c (parse_p12): Write an error status line for bad
1216         passphrases. Add new arg CTRL and changed caller.
1217         * export.c (export_p12): Likewise.
1219 2004-09-14  Werner Koch  <wk@g10code.com>
1221         * certchain.c (gpgsm_validate_chain): Give expired certificates a
1222         higher error precedence and don't bother to check any CRL in that
1223         case.
1225 2004-08-24  Werner Koch  <wk@g10code.de>
1227         * certlist.c: Fixed typo in ocsp OID.
1229 2004-08-18  Werner Koch  <wk@g10code.de>
1231         * certlist.c (gpgsm_cert_use_ocsp_p): New.
1232         (cert_usage_p): Support it here.
1233         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
1235 2004-08-17  Marcus Brinkmann  <marcus@g10code.de>
1237         * import.c: Fix typo in last change.
1239 2004-08-17  Werner Koch  <wk@g10code.de>
1241         * import.c (check_and_store): Do a full validation if
1242         --with-validation is set.
1244         * certchain.c (gpgsm_basic_cert_check): Print more detailed error
1245         messages.
1246         
1247         * certcheck.c (do_encode_md): Partly support DSA.  Add new arg
1248         PKALGO. Changed all callers to pass it.
1249         (pk_algo_from_sexp): New.
1251 2004-08-16  Werner Koch  <wk@g10code.de>
1253         * gpgsm.c: New option --fixed-passphrase.
1254         * import.c (popen_protect_tool): Pass it to the protect-tool.
1256         * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
1257         for encrypt-to keys.
1259 2004-08-06  Werner Koch  <wk@g10code.com>
1261         * gpgsm.c: New option --with-ephemeral-keys.
1262         * keylist.c (list_internal_keys): Set it here.
1263         (list_cert_raw): And indicate those keys.  Changed all our callers
1264         to pass the new arg HD through.
1266 2004-07-23  Werner Koch  <wk@g10code.de>
1268         * certreqgen.c (proc_parameters): Do not allow key length below
1269         1024.
1271 2004-07-22  Werner Koch  <wk@g10code.de>
1273         * keylist.c (list_cert_raw): Print the keygrip.
1275 2004-07-20  Werner Koch  <wk@gnupg.org>
1277         * certchain.c (gpgsm_validate_chain): The trust check didn't
1278         worked anymore, probably due to the changes at 2003-03-04.  Fixed.
1280 2004-06-06  Werner Koch  <wk@gnupg.org>
1282         * certreqgen.c (get_parameter_uint, create_request): Create
1283         an extension for key usage when requested. 
1285 2004-05-12  Werner Koch  <wk@gnupg.org>
1287         * gpgsm.c (main): Install emergency_cleanup also as an atexit
1288         handler.
1290         * verify.c (gpgsm_verify): Removed the separate error code
1291         handling for KSBA.  We use shared error codes anyway.
1293         * export.c (export_p12): Removed debugging code.
1295         * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
1297 2004-05-11  Werner Koch  <wk@gnupg.org>
1299         * sign.c (gpgsm_sign): Include the error source in the final error
1300         message.
1301         * decrypt.c (gpgsm_decrypt): Ditto.
1303         * fingerprint.c (gpgsm_get_key_algo_info): New.
1304         * sign.c (gpgsm_sign): Don't assume RSA in the status line.
1305         * keylist.c (list_cert_colon): Really print the algorithm and key
1306         length.
1307         (list_cert_raw, list_cert_std): Ditto.
1308         (list_cert_colon): Reorganized to be able to tell whether a root
1309         certificate is trusted.
1311         * gpgsm.c: New option --debug-allow-core-dump.
1313         * gpgsm.h (opt): Add member CONFIG_FILENAME.
1314         * gpgsm.c (main): Use it here instead of the local var.
1316         * server.c (gpgsm_server): Print some additional information with
1317         the hello in verbose mode.
1319 2004-04-30  Werner Koch  <wk@gnupg.org>
1321         * import.c (check_and_store): Do not update the stats for hidden
1322         imports of issuer certs.
1323         (popen_protect_tool): Request statusmessages from the protect-tool.
1324         (parse_p12): Detect status messages. Add new arg STATS and update them.
1325         (print_imported_summary): Include secret key stats.
1327 2004-04-28  Werner Koch  <wk@gnupg.org>
1329         * gpgsm.c: New command --keydb-clear-some-cert-flags.
1330         * keydb.c (keydb_clear_some_cert_flags): New.
1331         (keydb_update_keyblock, keydb_set_flags): Change error code
1332         CONFLICT to NOT_LOCKED.
1334 2004-04-26  Werner Koch  <wk@gnupg.org>
1336         * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config
1337         filename.
1339         * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt) 
1340         (gpgsm_agent_genkey, gpgsm_agent_istrusted) 
1341         (gpgsm_agent_marktrusted, gpgsm_agent_havekey) 
1342         (gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
1343         (start_agent): New arg CTRL.  Send progress item when starting a
1344         new agent.
1345         * sign.c (gpgsm_get_default_cert, get_default_signer): New arg
1346         CTRL to be passed down to the agent function.
1347         * decrypt.c (prepare_decryption): Ditto.
1348         * certreqgen.c (proc_parameters, read_parameters): Ditto.
1349         * certcheck.c (gpgsm_create_cms_signature): Ditto.
1351 2004-04-23  Werner Koch  <wk@gnupg.org>
1353         * keydb.c (keydb_add_resource): Try to compress the file on init.
1355         * keylist.c (oidtranstbl): New.  OIDs collected from several sources.
1356         (print_name_raw, print_names_raw, list_cert_raw): New.
1357         (gpgsm_list_keys): Check the dump mode and pass it down as
1358         necessary.
1360 2004-04-22  Werner Koch  <wk@gnupg.org>
1362         * gpgsm.c (main): New commands --dump-keys, --dump-external-keys,
1363         --dump-secret-keys.
1365 2004-04-13  Werner Koch  <wk@gnupg.org>
1367         * misc.c (setup_pinentry_env): New.
1368         * import.c (popen_protect_tool): Call it.
1369         * export.c (popen_protect_tool): Call it.
1371 2004-04-08  Werner Koch  <wk@gnupg.org>
1373         * decrypt.c (gpgsm_decrypt): Return GPG_ERR_NO_DATA if it is not a 
1374         encrypted message.
1376 2004-04-07  Werner Koch  <wk@gnupg.org>
1378         * gpgsm.c: New option --force-crl-refresh.
1379         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Pass option to dirmngr.
1381 2004-04-05  Werner Koch  <wk@gnupg.org>
1383         * server.c (get_status_string): Add STATUS_NEWSIG.
1384         * verify.c (gpgsm_verify): Print STATUS_NEWSIG for each signature.
1386         * certchain.c (gpgsm_validate_chain) <gpgsm_cert_use_cer_p>: Do
1387         not just warn if a cert is not suitable; bail out immediately.
1389 2004-04-01  Werner Koch  <wk@gnupg.org>
1391         * call-dirmngr.c (isvalid_status_cb): New.
1392         (unhexify_fpr): New. Taken from ../g10/call-agent.c
1393         (gpgsm_dirmngr_isvalid): Add new arg CTRL, changed caller to pass
1394         it thru.  Detect need to check the respondert cert and do that.
1395         * certchain.c (gpgsm_validate_chain): Add new arg FLAGS.  Changed
1396         all callers.
1398 2004-03-24  Werner Koch  <wk@gnupg.org>
1400         * sign.c (gpgsm_sign): Include a short list of capabilities.
1402 2004-03-17  Werner Koch  <wk@gnupg.org>
1404         * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
1406 2004-03-16  Werner Koch  <wk@gnupg.org>
1408         * gpgsm.c (main): Implemented --gpgconf-list.
1410 2004-03-15  Werner Koch  <wk@gnupg.org>
1412         * keylist.c (list_cert_colon): Hack to set the expired flag.
1414 2004-03-09  Werner Koch  <wk@gnupg.org>
1416         * gpgsm.c (main): Correctly intitialze USE_OCSP flag.
1418         * keydb.c (keydb_delete): s/GPG_ERR_CONFLICT/GPG_ERR_NOT_LOCKED/
1420 2004-03-04  Werner Koch  <wk@gnupg.org>
1422         * call-dirmngr.c (gpgsm_dirmngr_isvalid): New arg ISSUER_CERT.
1424         * certchain.c (is_cert_still_valid): New.  Code moved from ...
1425         (gpgsm_validate_chain): ... here because we now need to check at
1426         two places and at a later stage, so that we can pass the issuer
1427         cert down to the dirmngr.
1429 2004-03-03  Werner Koch  <wk@gnupg.org>
1431         * call-agent.c (start_agent): Replaced pinentry setup code by a
1432         call to a new common function.
1434         * certdump.c (gpgsm_format_keydesc): Make sure the string is
1435         returned as utf-8.
1437         * export.c (gpgsm_export): Make sure that we don't export more
1438         than one certificate.
1440 2004-03-02  Werner Koch  <wk@gnupg.org>
1442         * export.c (create_duptable, destroy_duptable)
1443         (insert_duptable): New.
1444         (gpgsm_export): Avoid duplicates.
1446 2004-02-26  Werner Koch  <wk@gnupg.org>
1448         * certchain.c (compare_certs): New.
1449         (gpgsm_validate_chain): Fixed infinite certificate checks after
1450         bad signatures.
1452 2004-02-24  Werner Koch  <wk@gnupg.org>
1454         * keylist.c (list_cert_colon): Print the fingerprint as the
1455         cert-id for root certificates.
1457 2004-02-21  Werner Koch  <wk@gnupg.org>
1459         * keylist.c (list_internal_keys): Return error codes.
1460         (list_external_keys, gpgsm_list_keys): Ditto.
1461         * server.c (do_listkeys): Ditto.
1463         * gpgsm.c (main): Display a key description for --passwd.
1464         * call-agent.c (gpgsm_agent_passwd): New arg DESC.
1466 2004-02-20  Werner Koch  <wk@gnupg.org>
1468         * gpgsm.c (main): New option --debug-ignore-expiration.
1469         * certchain.c (gpgsm_validate_chain): Use it here.
1471         * certlist.c (cert_usage_p): Apply extKeyUsage.
1473 2004-02-19  Werner Koch  <wk@gnupg.org>
1475         * export.c (export_p12, popen_protect_tool)
1476         (gpgsm_p12_export): New.
1477         * gpgsm.c (main): New command --export-secret-key-p12. 
1479 2004-02-18  Werner Koch  <wk@gnupg.org>
1481         * gpgsm.c (set_debug): Set the new --debug-level flags.
1482         (main): New option --gpgconf-list.  
1483         (main): Do not setup -u and -r keys when not required.
1484         (main): Setup the used character set.
1486         * keydb.c (keydb_add_resource): Print a hint to start the
1487         gpg-agent.
1489 2004-02-17  Werner Koch  <wk@gnupg.org>
1491         * gpgsm.c: Fixed value parsing for --with-validation.
1492         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1493         * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
1495         * gpgsm.c: New option --with-md5-fingerprint.
1496         * keylist.c (list_cert_std): Print MD5 fpr.
1498         * gpgsm.c: New options --with-validation.
1499         * server.c (option_handler): New option "with-validation".
1500         * keylist.c (list_cert_std, list_internal_keys): New args CTRL and
1501         WITH_VALIDATION. Changed callers to set it.
1502         (list_external_cb, list_external_keys): Pass CTRL to the callback.
1503         (list_cert_colon): Add arg CTRL.  Check validation if requested.
1504         * certchain.c (unknown_criticals, allowed_ca, check_cert_policy) 
1505         (gpgsm_validate_chain): New args LISTMODE and FP.
1506         (do_list): New helper for info output.
1507         (find_up): New arg FIND_NEXT.
1508         (gpgsm_validate_chain): After a bad signature try again with other
1509         CA certificates.
1511         * import.c (print_imported_status): New arg NEW_CERT. Print
1512         additional STATUS_IMPORT_OK becuase that is what gpgme expects.
1513         (check_and_store): Always call above function after import.
1514         * server.c (get_status_string): Added STATUS_IMPORT_OK.
1516 2004-02-13  Werner Koch  <wk@gnupg.org>
1518         * certcheck.c (gpgsm_create_cms_signature): Format a description
1519         for use by the pinentry.
1520         * decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
1521         * certdump.c (format_name_cookie, format_name_writer) 
1522         (gpgsm_format_name): New.
1523         (gpgsm_format_serial): New.
1524         (gpgsm_format_keydesc): New.
1525         * call-agent.c (gpgsm_agent_pksign): New arg DESC.
1526         (gpgsm_agent_pkdecrypt): Ditto.
1528         * encrypt.c (init_dek): Check for too weak algorithms.
1530         * import.c (parse_p12, popen_protect_tool): New.
1532         * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
1533         Changed all callers.
1534         (base64_reader_cb): Handle it here.
1535         (gpgsm_reader_eof_seen): New.
1536         (base64_reader_cb): Set a flag for EOF.
1537         (simple_reader_cb): Ditto.
1539 2004-02-12  Werner Koch  <wk@gnupg.org>
1541         * gpgsm.h, gpgsm.c: New option --protect-tool-program.
1542         * gpgsm.c (run_protect_tool): Use it.
1544 2004-02-11  Werner Koch  <wk@gnupg.org>
1546         * Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
1547         will allow to override directory names at make time.
1549 2004-02-02  Werner Koch  <wk@gnupg.org>
1551         * import.c (check_and_store): Import certificates even with
1552         missing issuer's cert.  Fixed an "depending on the verbose
1553         setting" bug.
1555         * certchain.c (gpgsm_validate_chain): Mark revoked certs in the
1556         keybox.
1558         * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
1559         revoked flag.
1560         (list_internal_keys): Retrieve validity flag.
1561         (list_external_cb): Pass 0 as validity flag.
1562         * keydb.c (keydb_get_flags, keydb_set_flags): New.
1563         (keydb_set_cert_flags): New.
1564         (lock_all): Return a proper error code.
1565         (keydb_lock): New.
1566         (keydb_delete): Don't lock but check that it has been locked.
1567         (keydb_update_keyblock): Ditto.
1568         * delete.c (delete_one): Take a lock.
1570 2004-01-30  Werner Koch  <wk@gnupg.org>
1572         * certchain.c (check_cert_policy): Fixed read error checking.
1573         (check_cert_policy): With no critical policies issue only a
1574         warning if the policy file does not exists.
1576         * sign.c (add_certificate_list): Decrement N for the first cert.
1578 2004-01-29  Werner Koch  <wk@gnupg.org>
1580         * certdump.c (parse_dn_part): Map common OIDs to human readable
1581         labels.  Make sure that a value won't get truncated if it includes
1582         a Nul.
1584 2004-01-28  Werner Koch  <wk@gnupg.org>
1586         * certchain.c (gpgsm_validate_chain): Changed the message printed
1587         for an untrusted root certificate.
1589 2004-01-27  Werner Koch  <wk@gnupg.org>
1591         * certdump.c (parse_dn_part): Pretty print the nameDistinguisher OID.
1592         (print_dn_part): Do not delimit multiple RDN by " + ".  Handle
1593         multi-valued RDNs in a special way, i.e. in the order specified by
1594         the certificate.
1595         (print_dn_parts): Simplified. 
1597 2004-01-16  Werner Koch  <wk@gnupg.org>
1599         * sign.c (gpgsm_sign): Print an error message on all failures.
1600         * decrypt.c (gpgsm_decrypt): Ditto.
1602 2003-12-17  Werner Koch  <wk@gnupg.org>
1604         * server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
1605         (cmd_encrypt): Add all enrypt-to marked certs to the list.
1606         * encrypt.c (gpgsm_encrypt): Check that real recipients are
1607         available.
1608         * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
1609         options work.  Pass the list of recients to gpgsm_server.
1610         * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
1611         (opt): Add NO_ENCRYPT_TO.
1612         * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
1613         Changed all callers and ignore duplicate entries.
1614         (is_cert_in_certlist): New.
1615         (gpgsm_add_cert_to_certlist): New.
1617         * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
1618         (gpgsm_dump_serial): Ditto.
1620         * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
1622 2003-12-16  Werner Koch  <wk@gnupg.org>
1624         * gpgsm.c (main): Set the prefixes for assuan logging.
1626         * sign.c (gpgsm_sign): Add validation checks for the default
1627         certificate.
1629         * gpgsm.c: Add -k as alias for --list-keys and -K for
1630         --list-secret-keys.
1632 2003-12-15  Werner Koch  <wk@gnupg.org>
1634         * encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
1635         not need for real strong random here and it even better protect
1636         the random bits used for the key.
1638 2003-12-01  Werner Koch  <wk@gnupg.org>
1640         * gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
1641         (gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
1642         * certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
1643         * call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
1644         proceed accordingly.
1646 2003-11-19  Werner Koch  <wk@gnupg.org>
1648         * verify.c (gpgsm_verify): Use "0" instead of an empty string for
1649         the VALIDSIG status.
1651 2003-11-18  Werner Koch  <wk@gnupg.org>
1653         * verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
1655         * certchain.c (unknown_criticals): Fixed an error code test.
1657 2003-11-12  Werner Koch  <wk@gnupg.org>
1659         Adjusted for API changes in Libksba.
1661 2003-10-31  Werner Koch  <wk@gnupg.org>
1663         * certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
1664         * verify.c (strtimestamp_r, gpgsm_verify): Ditto.
1665         * sign.c (gpgsm_sign): Ditto.
1666         * keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
1667         * certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
1668         Ditto.
1670 2003-10-25  Werner Koch  <wk@gnupg.org>
1672         * certreqgen.c (read_parameters): Fixed faulty of !spacep().
1674 2003-08-20  Marcus Brinkmann  <marcus@g10code.de>
1676         * encrypt.c (encode_session_key): Allocate enough space.  Cast key
1677         byte to unsigned char to prevent sign extension.
1678         (encrypt_dek): Check return value before error.
1680 2003-08-14  Timo Schulz  <twoaday@freakmail.de>
1682         * encrypt.c (encode_session_key): Use new Libgcrypt interface.
1683         
1684 2003-07-31  Werner Koch  <wk@gnupg.org>
1686         * Makefile.am (gpgsm_LDADD): Added INTLLIBS.
1688 2003-07-29  Werner Koch  <wk@gnupg.org>
1690         * gpgsm.c (main): Add secmem features and set the random seed file.
1691         (gpgsm_exit): Update the random seed file and enable debug output.
1693 2003-07-27  Werner Koch  <wk@gnupg.org>
1695         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1697 2003-06-24  Werner Koch  <wk@gnupg.org>
1699         * server.c (gpgsm_status_with_err_code): New.
1700         * verify.c (gpgsm_verify): Use it here instead of the old
1701         tokenizing version.
1703         * verify.c (strtimestamp): Renamed to strtimestamp_r
1705         Adjusted for changes in the libgcrypt API. Some more fixes for the
1706         libgpg-error stuff.  
1708 2003-06-04  Werner Koch  <wk@gnupg.org>
1710         * call-agent.c (init_membuf,put_membuf,get_membuf): Removed.
1711         Include new membuf header and changed used type.
1713         Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1715 2003-06-03  Werner Koch  <wk@gnupg.org>
1717         Changed all error codes in all files to the new libgpg-error scheme.
1719         * gpgsm.h: Include gpg-error.h .
1720         * Makefile.am: Link with libgpg-error.
1722 2003-04-29  Werner Koch  <wk@gnupg.org>
1724         * Makefile.am: Use libassuan.  Don't override LDFLAGS anymore.
1725         * server.c (register_commands): Adjust for new Assuan semantics.
1727 2002-12-03  Werner Koch  <wk@gnupg.org>
1729         * call-agent.c (gpgsm_agent_passwd): New.
1730         * gpgsm.c (main): New command --passwd and --call-protect-tool
1731         (run_protect_tool): New.
1733 2002-11-25  Werner Koch  <wk@gnupg.org>
1735         * verify.c (gpgsm_verify): Handle content-type attribute. 
1737 2002-11-13  Werner Koch  <wk@gnupg.org>
1739         * call-agent.c (start_agent): Try to use $GPG_TTY instead of
1740         ttyname.  Changed ttyname to test stdin becuase it can be assumed
1741         that output redirection is more common that input redirection.
1743 2002-11-12  Werner Koch  <wk@gnupg.org>
1745         * gpgsm.c: New command --call-dirmngr. 
1746         * call-dirmngr.c (gpgsm_dirmngr_run_command)
1747         (run_command_inq_cb,run_command_cb)
1748         (run_command_status_cb): New.
1750 2002-11-11  Werner Koch  <wk@gnupg.org>
1752         * certcheck.c (gpgsm_check_cms_signature): Don't double free
1753         s_sig but free s_pkey at leave.
1755 2002-11-10  Werner Koch  <wk@gnupg.org>
1757         * gpgsm.c: Removed duplicate --list-secret-key entry.
1759 2002-09-19  Werner Koch  <wk@gnupg.org>
1761         * certcheck.c (gpgsm_check_cert_sig): Add cert hash debugging.
1763         * certchain.c (find_up): Print info when the cert was not found 
1764         by the autorithyKeyIdentifier.
1766 2002-09-03  Werner Koch  <wk@gnupg.org>
1768         * gpgsm.c (main): Disable the internal libgcrypt locking.
1770 2002-08-21  Werner Koch  <wk@gnupg.org>
1772         * import.c (print_imported_summary): Cleaned up.  Print new
1773         not_imported value.
1774         (check_and_store): Update non_imported counter.
1775         (print_import_problem): New.
1776         (check_and_store): Print error status message.
1777         * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
1779 2002-08-20  Werner Koch  <wk@gnupg.org>
1781         * gpgsm.c (main): Use the log file only in server mode.
1783         * import.c (print_imported_summary): New.
1784         (check_and_store): Update the counters, take new argument.
1785         (import_one): Factored out core of gpgsm_import.
1786         (gpgsm_import): Print counters.
1787         (gpgsm_import_files): New.
1788         * gpgsm.c (main): Use the new function for import.
1790 2002-08-19  Werner Koch  <wk@gnupg.org>
1792         * decrypt.c (gpgsm_decrypt): Return a better error status token.
1793         * verify.c (gpgsm_verify): Don't error on messages with no signing
1794         time or no message digest.  This is only the case for messages
1795         without any signed attributes.
1797 2002-08-16  Werner Koch  <wk@gnupg.org>
1799         * certpath.c: Renamed to ..
1800         * certchain.c: this. Renamed all all other usages of "path" in the
1801         context of certificates to "chain".
1803         * call-agent.c (learn_cb): Special treatment when the issuer
1804         certificate is missing.
1806 2002-08-10  Werner Koch  <wk@gnupg.org>
1808         * Makefile.am (INCLUDES): Add definition for localedir.
1810         * keylist.c (list_cert_colon): Print the short fingerprint in the
1811         key ID field.
1812         * fingerprint.c (gpgsm_get_short_fingerprint): New.
1813         * verify.c (gpgsm_verify): Print more verbose info for a good
1814         signature.
1816 2002-08-09  Werner Koch  <wk@gnupg.org>
1818         * decrypt.c (prepare_decryption): Hack to detected already
1819         unpkcsedone keys.
1821         * gpgsm.c (emergency_cleanup): New.
1822         (main): Initialize the signal handler.
1824         * sign.c (gpgsm_sign): Reset the hash context for subsequent
1825         signers and release it at the end.
1827 2002-08-05  Werner Koch  <wk@gnupg.org>
1829         * server.c (cmd_signer): New command "SIGNER"
1830         (register_commands): Register it.
1831         (cmd_sign): Pass the signer list to gpgsm_sign.
1832         * certlist.c (gpgsm_add_to_certlist): Add SECRET argument, check
1833         for secret key if set and changed all callers.
1834         * sign.c (gpgsm_sign): New argument SIGNERLIST and implemt
1835         multiple signers.
1836         * gpgsm.c (main): Support more than one -u.
1837         
1838         * server.c (cmd_recipient): Return reason code 1 for No_Public_Key
1839         which is actually what gets returned from add_to_certlist.
1840         
1841 2002-07-26  Werner Koch  <wk@gnupg.org>
1843         * certcheck.c (gpgsm_check_cert_sig): Implement proper cleanup.
1844         (gpgsm_check_cms_signature): Ditto.
1846 2002-07-22  Werner Koch  <wk@gnupg.org>
1848         * keydb.c (keydb_add_resource): Register a lock file.
1849         (lock_all, unlock_all): Implemented.
1851         * delete.c: New.
1852         * gpgsm.c: Made --delete-key work.
1853         * server.c (cmd_delkeys): New.
1854         (register_commands): New command DELKEYS.
1856         * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is
1857         used and a STATUS_ERROR with the algorithm oid.
1859 2002-07-03  Werner Koch  <wk@gnupg.org>
1861         * server.c (gpgsm_status2): Insert a blank between all optional
1862         arguments when using assuan.
1863         * server.c (cmd_recipient): No more need for extra blank in constants.
1864         * import.c (print_imported_status): Ditto.
1865         * gpgsm.c (main): Ditto.
1867 2002-07-02  Werner Koch  <wk@gnupg.org>
1869         * verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
1870         the fingerprint.
1872         * certpath.c (check_cert_policy): Don't use log_error to print a
1873         warning.
1875         * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
1876         all callers.
1877         * call-agent.c (learn_cb): Print info message only for real imports.
1879         * import.c (gpgsm_import): Moved duplicated code to ...
1880         (check_and_store): new function.  Added magic to import the entire
1881         chain. Print status only for real imports and moved printing code
1882         to ..
1883         (print_imported_status): New.
1885         * call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
1886         call in very verbose mode.
1888         * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
1889         with the server mode.
1891 2002-06-29  Werner Koch  <wk@gnupg.org>
1893         * gpgsm.c: New option --auto-issuer-key-retrieve.
1894         * certpath.c (find_up): Try to retrieve an issuer key from an
1895         external source and from the ephemeral key DB.
1896         (find_up_store_certs_cb): New.
1898         * keydb.c (keydb_set_ephemeral): Does now return the old
1899         state.  Call the backend only when required.
1901         * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
1902         (lookup_status_cb): Issue status only when CTRL is not NULL.
1903         (gpgsm_dirmngr_lookup): Document that CTRL is optional.
1905         * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
1907 2002-06-28  Werner Koch  <wk@gnupg.org>
1909         * server.c (cmd_recipient): Add more reason codes.
1911 2002-06-27  Werner Koch  <wk@gnupg.org>
1913         * certpath.c (gpgsm_basic_cert_check): Use
1914         --debug-no-path-validation to also bypass this basic check.
1916         * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
1918         * call-agent.c (start_agent): Create and pass the list of FD to
1919         keep in the child to assuan.
1920         * call-dirmngr.c (start_dirmngr): Ditto.
1922 2002-06-26  Werner Koch  <wk@gnupg.org>
1924         * import.c (gpgsm_import): Print an STATUS_IMPORTED.
1926         * gpgsm.c: --debug-no-path-validation does not take an argument.
1928 2002-06-25  Werner Koch  <wk@gnupg.org>
1930         * certdump.c (print_dn_part): Always print a leading slash,
1931         removed NEED_DELIM arg and changed caller.
1933         * export.c (gpgsm_export): Print LFs to FP and not stdout.
1934         (print_short_info): Ditto.  Make use of gpgsm_print_name.
1936         * server.c (cmd_export): Use output-fd instead of data lines; this
1937         was actually the specified way.
1939 2002-06-24  Werner Koch  <wk@gnupg.org>
1941         * gpgsm.c: Removed duped help entry for --list-keys.
1942         
1943         * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
1945         * certpath.c (gpgsm_validate_path): Use it here instead of the
1946         debug flag hack.
1948         * certpath.c (check_cert_policy): Return No_Policy_Match if the
1949         policy file could not be opened.
1951 2002-06-20  Werner Koch  <wk@gnupg.org>
1953         * certlist.c (gpgsm_add_to_certlist): Fixed locating of a
1954         certificate with the required key usage.
1956         * gpgsm.c (main): Fixed a segv when using --outfile without an
1957         argument.
1959         * keylist.c (print_capabilities): Also check for non-repudiation
1960         and data encipherment.
1961         * certlist.c (cert_usage_p): Test for signing and encryption was
1962         swapped.  Add a case for certification usage, handle
1963         non-repudiation and data encipherment.
1964         (gpgsm_cert_use_cert_p): New.
1965         (gpgsm_add_to_certlist): Added a CTRL argument and changed all
1966         callers to pass it.
1967         * certpath.c (gpgsm_validate_path): Use it here to print a status
1968         message. Added a CTRL argument and changed all callers to pass it.
1969         * decrypt.c (gpgsm_decrypt): Print a status message for wrong key
1970         usage.
1971         * verify.c (gpgsm_verify): Ditto.
1972         * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
1974 2002-06-19  Werner Koch  <wk@gnupg.org>
1976         * call-agent.c (learn_cb): Use log_info instead of log_error on
1977         successful import.
1979         * keydb.c (keydb_set_ephemeral): New.
1980         (keydb_store_cert): New are ephemeral, changed all callers.
1981         * keylist.c (list_external_cb): Store cert as ephemeral.
1982         * export.c (gpgsm_export): Kludge to export epehmeral certificates.
1984         * gpgsm.c (main): New command --list-external-keys.
1985         
1986 2002-06-17  Werner Koch  <wk@gnupg.org>
1988         * certreqgen.c (read_parameters): Improved error handling.
1989         (gpgsm_genkey): Print error message.
1991 2002-06-13  Werner Koch  <wk@gnupg.org>
1993         * gpgsm.c (main): New option --log-file.
1995 2002-06-12  Werner Koch  <wk@gnupg.org>
1997         * call-dirmngr.c (lookup_status_cb): New.
1998         (gpgsm_dirmngr_lookup): Use the status CB.  Add new arg CTRL and
1999         changed caller to pass it.
2001         * gpgsm.c (open_fwrite): New.
2002         (main): Allow --output for --verify.
2004         * sign.c (hash_and_copy_data): New.
2005         (gpgsm_sign): Implemented normal (non-detached) signatures.
2006         * gpgsm.c (main): Ditto.
2007         
2008         * certpath.c (gpgsm_validate_path): Special error handling for
2009         no policy match.
2011 2002-06-10  Werner Koch  <wk@gnupg.org>
2013         * server.c (get_status_string): Add STATUS_ERROR.
2015         * certpath.c (gpgsm_validate_path): Tweaked the error checking to 
2016         return error codes in a more sensitive way.
2017         * verify.c (gpgsm_verify): Send status TRUST_NEVER also for a bad
2018         CA certificate and when the certificate has been revoked.  Issue
2019         TRUST_FULLY even when the cert has expired.  Append an error token
2020         to these status lines.  Issue the new generic error status when a
2021         cert was not found and when leaving the function.
2023 2002-06-04  Werner Koch  <wk@gnupg.org>
2025         * gpgsm.c (main): New command --list-sigs
2026         * keylist.c (list_cert_std): New.  Use it whenever colon mode is
2027         not used.
2028         (list_cert_chain): New.
2030 2002-05-31  Werner Koch  <wk@gnupg.org>
2032         * gpgsm.c (main): Don't print the "go ahead" message for an
2033         invalid command.
2035 2002-05-23  Werner Koch  <wk@gnupg.org>
2037         * import.c (gpgsm_import): Add error messages.
2039 2002-05-21  Werner Koch  <wk@gnupg.org>
2041         * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
2042         (list_external_keys): New.
2043         (gpgsm_list_keys): Dispatcher for above.
2044         * call-dirmngr.c (lookup_cb,pattern_from_strlist)
2045         (gpgsm_dirmngr_lookup): New.
2046         * server.c (option_handler): Handle new option --list-mode.
2047         (do_listkeys): Handle options and actually use the mode argument.
2048         (get_status_string): New code TRUNCATED.
2050         * import.c (gpgsm_import): Try to identify the type of input and
2051         handle certs-only messages.
2053 2002-05-14  Werner Koch  <wk@gnupg.org>
2055         * gpgsm.c: New option --faked-system-time
2056         * sign.c (gpgsm_sign): And use it here.
2057         * certpath.c (gpgsm_validate_path): Ditto.
2059 2002-05-03  Werner Koch  <wk@gnupg.org>
2061         * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
2062         all callers.
2063         * verify.c (gpgsm_verify): Tweaked usage of log_debug and
2064         log_error.  Return EXPSIG status and add expiretime to VALIDSIG.
2066 2002-04-26  Werner Koch  <wk@gnupg.org>
2068         * gpgsm.h (DBG_AGENT,DBG_AGENT_VALUE): Replaced by DBG_ASSUAN_*.
2069         Changed all users.
2071         * call-agent.c (start_agent): Be more silent without -v.
2072         * call-dirmngr.c (start_dirmngr): Ditto.
2074 2002-04-25  Werner Koch  <wk@gnupg.org>
2076         * call-agent.c (start_agent): Make copies of old locales and check
2077         for setlocale.
2079 2002-04-25  Marcus Brinkmann  <marcus@g10code.de>
2081         * call-agent.c (start_agent): Fix error handling logic so the
2082         locale is always correctly reset.
2084 2002-04-25  Marcus Brinkmann  <marcus@g10code.de>
2086         * server.c (option_handler): Accept display, ttyname, ttytype,
2087         lc_ctype and lc_messages options.
2088         * gpgsm.c (main): Allocate memory for these options.
2089         * gpgsm.h (struct opt): Make corresponding members non-const.
2091 2002-04-24  Marcus Brinkmann  <marcus@g10code.de>
2093         * gpgsm.h (struct opt): New members display, ttyname, ttytype,
2094         lc_ctype, lc_messages.
2095         * gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
2096         oTTYname, oTTYtype, oLCctype, oLCmessages.
2097         (opts): New entries for these options.
2098         (main): Handle these new options.
2099         * call-agent.c (start_agent): Set the various display and tty
2100         parameter after resetting.
2102 2002-04-18  Werner Koch  <wk@gnupg.org>
2104         * certreqgen.c (gpgsm_genkey): Write status output on success.
2106 2002-04-15  Werner Koch  <wk@gnupg.org>
2108         * gpgsm.c (main): Check ksba version.
2110         * certpath.c (find_up): New to use the authorithKeyIdentifier.
2111         Use it in all other functions to locate the signing cert..
2113 2002-04-11  Werner Koch  <wk@gnupg.org>
2115         * certlist.c (cert_usable_p): New.
2116         (gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
2117         (gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
2118         (gpgsm_add_to_certlist): Check the key usage.
2119         * sign.c (gpgsm_sign): Ditto.
2120         * verify.c (gpgsm_verify): Print a message wehn an unsuitable
2121         certificate was used.
2122         * decrypt.c (gpgsm_decrypt): Ditto
2123         * keylist.c (print_capabilities): Determine values from the cert.
2125 2002-03-28  Werner Koch  <wk@gnupg.org>
2127         * keylist.c (list_cert_colon): Fixed listing of crt record; the
2128         issuer is not at the right place.  Print a chainingID.
2129         * certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
2130         common errors.
2132 2002-03-21  Werner Koch  <wk@gnupg.org>
2134         * export.c: New.
2135         * gpgsm.c: Add command --export.
2136         * server.c (cmd_export): New.
2137         
2138 2002-03-13  Werner Koch  <wk@gnupg.org>
2140         * decrypt.c (gpgsm_decrypt): Allow multiple recipients.
2142 2002-03-12  Werner Koch  <wk@gnupg.org>
2144         * certpath.c (check_cert_policy): Print the policy list.
2146         * verify.c (gpgsm_verify): Detect certs-only message.
2148 2002-03-11  Werner Koch  <wk@gnupg.org>
2150         * import.c (gpgsm_import): Print a notice about imported certificates
2151         when in verbose mode.
2153         * gpgsm.c (main): Print INV_RECP status.
2154         * server.c (cmd_recipient): Ditto.
2156         * server.c (gpgsm_status2): New.  Allows for a list of strings.
2157         (gpgsm_status): Divert to gpgsm_status2.
2159         * encrypt.c (gpgsm_encrypt): Don't use a default key when no
2160         recipients are given.  Print a NO_RECP status.
2162 2002-03-06  Werner Koch  <wk@gnupg.org>
2164         * server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
2165         (do_listkeys): new.  Add pattern parsing.
2167         * keylist.c (gpgsm_list_keys): Handle selection pattern.
2169         * gpgsm.c: New command --learn-card
2170         * call-agent.c (learn_cb,gpgsm_agent_learn): New.
2172         * gpgsm.c (main): Print error messages for non-implemented commands.
2174         * base64.c (base64_reader_cb): Use case insensitive compare of the
2175         Content-Type string to detect plain base-64.
2177 2002-03-05  Werner Koch  <wk@gnupg.org>
2179         * gpgsm.c, gpgsm.h: Add local_user.
2180         * sign.c (gpgsm_get_default_cert): New.
2181         (get_default_signer): Use the new function if local_user is not
2182         set otherwise used that value.
2183         * encrypt.c (get_default_recipient): Removed.
2184         (gpgsm_encrypt): Use gpgsm_get_default_cert.
2186         * verify.c (gpgsm_verify): Better error text for a bad signature
2187         found by comparing the hashs.
2189 2002-02-27  Werner Koch  <wk@gnupg.org>
2191         * call-dirmngr.c, call-agent.c: Add 2 more arguments to all uses
2192         of assuan_transact.
2194 2002-02-25  Werner Koch  <wk@gnupg.org>
2196         * server.c (option_handler): Allow to use -2 for "send all certs
2197         except the root cert".
2198         * sign.c (add_certificate_list): Implement it here.
2199         * certpath.c (gpgsm_is_root_cert): New.
2201 2002-02-19  Werner Koch  <wk@gnupg.org>
2203         * certpath.c (check_cert_policy): New.
2204         (gpgsm_validate_path): And call it from here.
2205         * gpgsm.c (main): New options --policy-file,
2206         --disable-policy-checks and --enable-policy-checks.
2207         * gpgsm.h (opt): Added policy_file, no_policy_checks.
2209 2002-02-18  Werner Koch  <wk@gnupg.org>
2211         * certpath.c (gpgsm_validate_path): Ask the agent to add the
2212         certificate into the trusted list.
2213         * call-agent.c (gpgsm_agent_marktrusted): New.
2215 2002-02-07  Werner Koch  <wk@gnupg.org>
2217         * certlist.c (gpgsm_add_to_certlist): Check that the specified
2218         name identifies a certificate unambiguously.
2219         (gpgsm_find_cert): Ditto.
2221         * server.c (cmd_listkeys): Check that the data stream is available.
2222         (cmd_listsecretkeys): Ditto.
2223         (has_option): New.
2224         (cmd_sign): Fix ambiguousity in option recognition.
2226         * gpgsm.c (main): Enable --logger-fd.
2228         * encrypt.c (gpgsm_encrypt): Increased buffer size for better
2229         performance.
2231         * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
2232         the agent.
2234         * keylist.c (list_cert_colon): Filter out control characters.
2236 2002-02-06  Werner Koch  <wk@gnupg.org>
2238         * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
2240         * server.c (reset_notify): Close input and output FDs.
2241         (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
2242         (cmd_genkey): Close the FDs and release the recipient list even in
2243         the error case.
2245 2002-02-01  Marcus Brinkmann  <marcus@g10code.de>
2247         * sign.c (gpgsm_sign): Do not release certificate twice.
2249 2002-01-29  Werner Koch  <wk@gnupg.org>
2251         * call-agent.c (gpgsm_agent_havekey): New.
2252         * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
2253         when we know that the secret key is available.
2254         (gpgsm_list_keys): New arg MODE, check whether a secret key is
2255         available.  Changed all callers.
2256         * gpgsm.c (main): New command --list-secret-keys.
2257         * server.c (cmd_listsecretkeys): New.
2258         (cmd_listkeys): Return secret keys with "crs" record.
2260 2002-01-28  Werner Koch  <wk@gnupg.org>
2262         * certreqgen.c (create_request): Store the email address in the req.
2264 2002-01-25  Werner Koch  <wk@gnupg.org>
2266         * gpgsm.c (main): Disable core dumps.
2268         * sign.c (add_certificate_list): New.
2269         (gpgsm_sign): Add the certificates to the CMS object.
2270         * certpath.c (gpgsm_walk_cert_chain): New.
2271         * gpgsm.h (server_control_s): Add included_certs.
2272         * gpgsm.c: Add option --include-certs.
2273         (gpgsm_init_default_ctrl): New.
2274         (main): Call it.
2275         * server.c (gpgsm_server): Ditto.
2276         (option_handler): Support --include-certs.
2278 2002-01-23  Werner Koch  <wk@gnupg.org>
2280         * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
2281         * certdump.c (gpgsm_dump_string): New.
2282         (print_dn): Replaced by above.
2284 2002-01-22  Werner Koch  <wk@gnupg.org>
2286         * certpath.c (unknown_criticals): New.
2287         (allowed_ca): New.
2288         (gpgsm_validate_path): Check validity, CA attribute, path length
2289         and unknown critical extensions.
2291 2002-01-21  Werner Koch  <wk@gnupg.org>
2293         * gpgsm.c: Add option --enable-crl-checks.
2295         * call-agent.c (start_agent): Implemented socket based access.
2296         * call-dirmngr.c (start_dirmngr): Ditto.
2298 2002-01-20  Werner Koch  <wk@gnupg.org>
2300         * server.c (option_handler): New.
2301         (gpgsm_server): Register it with assuan.
2303 2002-01-19  Werner Koch  <wk@gnupg.org>
2305         * server.c (gpgsm_server): Use assuan_deinit_server and setup
2306         assuan logging if enabled.
2307         * call-agent.c (inq_ciphertext_cb): Don't show the session key in
2308         an Assuan log file.
2310         * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2312 2002-01-15  Werner Koch  <wk@gnupg.org>
2314         * import.c (gpgsm_import): Just do a basic cert check before
2315         storing it.
2316         * certpath.c (gpgsm_basic_cert_check): New.
2318         * keydb.c (keydb_store_cert): New.
2319         * import.c (store_cert): Removed and change all caller to use
2320         the new function.
2321         * verify.c (store_cert): Ditto.
2323         * certlist.c (gpgsm_add_to_certlist): Validate the path
2325         * certpath.c (gpgsm_validate_path): Check the trust list.
2326         * call-agent.c (gpgsm_agent_istrusted): New.
2328 2002-01-14  Werner Koch  <wk@gnupg.org>
2330         * call-dirmngr.c (inq_certificate): Changed for new interface semantic.
2331         * certlist.c (gpgsm_find_cert): New.
2333 2002-01-13  Werner Koch  <wk@gnupg.org>
2335         * fingerprint.c (gpgsm_get_certid): Print the serial and not the
2336         hash after the dot.
2338 2002-01-11  Werner Koch  <wk@gnupg.org>
2340         * call-dirmngr.c: New.
2341         * certpath.c (gpgsm_validate_path): Check the CRL here.
2342         * fingerprint.c (gpgsm_get_certid): New.
2343         * gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2345 2002-01-10  Werner Koch  <wk@gnupg.org>
2347         * base64.c (gpgsm_create_writer): Allow to set the object name
2349 2002-01-08  Werner Koch  <wk@gnupg.org>
2351         * keydb.c (spacep): Removed because it is now in util.c
2353         * server.c (cmd_genkey): New.
2354         * certreqgen.c: New.  The parameter handling code has been taken
2355         from gnupg/g10/keygen.c version 1.0.6.
2356         * call-agent.c (gpgsm_agent_genkey): New.
2358 2002-01-02  Werner Koch  <wk@gnupg.org>
2360         * server.c (rc_to_assuan_status): Removed and changed all callers
2361         to use map_to_assuan_status.
2363 2001-12-20  Werner Koch  <wk@gnupg.org>
2365         * verify.c (gpgsm_verify): Implemented non-detached signature
2366         verification.  Add OUT_FP arg, initialize a writer and changed all
2367         callers.
2368         * server.c (cmd_verify): Pass an out_fp if one has been set.
2370         * base64.c (base64_reader_cb): Try to detect an S/MIME body part.
2372         * certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
2373         global.
2374         (print_time): Renamed to gpgsm_dump_time, made global.
2375         (gpgsm_dump_serial): Take a real S-Expression as argument and
2376         print the first item.
2377         * keylist.c (list_cert_colon): Ditto.
2378         * keydb.c (keydb_search_issuer_sn): Ditto.
2379         * decrypt.c (print_integer_sexp): Removed and made callers 
2380         use gpgsm_dump_serial.
2381         * verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2382         
2383 2001-12-19  Marcus Brinkmann  <marcus@g10code.de>
2385         * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2387 2001-12-18  Werner Koch  <wk@gnupg.org>
2389         * verify.c (print_integer_sexp): Renamed from print_integer and
2390         print the serial number according to the S-Exp rules.
2391         * decrypt.c (print_integer_sexp): Ditto.
2393 2001-12-17  Werner Koch  <wk@gnupg.org>
2395         * keylist.c (list_cert_colon): Changed for new return value of
2396         get_serial.
2397         * keydb.c (keydb_search_issuer_sn): Ditto.
2398         * certcheck.c (gpgsm_check_cert_sig): Likewise for other S-Exp
2399         returingin functions.
2400         * fingerprint.c (gpgsm_get_keygrip): Ditto.
2401         * encrypt.c (encrypt_dek): Ditto
2402         * certcheck.c (gpgsm_check_cms_signature): Ditto
2403         * decrypt.c (prepare_decryption): Ditto.
2404         * call-agent.c (gpgsm_agent_pkdecrypt): Removed arg ciphertextlen,
2405         use KsbaSexp type and calculate the length.
2407         * certdump.c (print_sexp): Remaned from print_integer, changed caller.
2409         * Makefile.am: Use the LIBGCRYPT and LIBKSBA variables.
2411         * fingerprint.c (gpgsm_get_keygrip): Use the new
2412         gcry_pk_get_keygrip to calculate the grip - note the algorithm and
2413         therefore the grip values changed.
2415 2001-12-15  Werner Koch  <wk@gnupg.org>
2417         * certcheck.c (gpgsm_check_cms_signature): Removed the faked-key
2418         kludge.
2419         (gpgsm_create_cms_signature): Removed the commented fake key
2420         code.  This makes the function pretty simple.
2422         * gpgsm.c (main): Renamed the default key database to "keyring.kbx".
2424         * decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
2425         * sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2427 2001-12-14  Werner Koch  <wk@gnupg.org>
2429         * keylist.c (list_cert_colon): Kludge to show an email address
2430         encoded in the subject's DN.
2432         * verify.c (gpgsm_verify): Add hash debug helpers
2433         * sign.c (gpgsm_sign): Ditto.
2435         * base64.c (base64_reader_cb): Reset the linelen when we need to
2436         skip the line and adjusted test; I somehow forgot about DeMorgan.
2438         * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify) 
2439         (cmd_import): Close the FDs on success.
2440         (close_message_fd): New.
2441         (input_notify): Setting autodetect_encoding to 0 after initializing
2442         it to 0 is pretty pointless.  Easy to fix.
2444         * gpgsm.c (main): New option --debug-wait n, so that it is
2445         possible to attach gdb when used in server mode.
2447         * sign.c (get_default_signer): Use keydb_classify_name here.
2449 2001-12-14  Marcus Brinkmann  <marcus@g10code.de>
2451         * call-agent.c (LINELENGTH): Removed.
2452         (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
2453         (gpgsm_agent_pkdecrypt): Likewise.
2455 2001-12-13  Werner Koch  <wk@gnupg.org>
2457         * keylist.c (list_cert_colon): Print alternative names of subject
2458         and a few other values.
2460 2001-12-12  Werner Koch  <wk@gnupg.org>
2462         * gpgsm.c (main): New options --assume-{armor,base64,binary}. 
2463         * base64.c (base64_reader_cb): Fixed non-autodetection mode.
2465 2001-12-04  Werner Koch  <wk@gnupg.org>
2467         * call-agent.c (read_from_agent): Check for inquire responses.
2468         (request_reply): Handle them using a new callback arg, changed all
2469         callers.
2470         (gpgsm_agent_pkdecrypt): New.
2472 2001-11-27  Werner Koch  <wk@gnupg.org>
2474         * base64.c: New.  Changed all other functions to use this instead
2475         of direct creation of ksba_reader/writer.
2476         * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used.
2478 2001-11-26  Werner Koch  <wk@gnupg.org>
2480         * gpgsm.c: New option --agent-program
2481         * call-agent.c (start_agent): Allow to override the default path
2482         to the agent.
2484         * keydb.c (keydb_add_resource): Create keybox
2486         * keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
2488         * server.c (rc_to_assuan_status): New.  Use it for all commands.
2490         
2491  Copyright 2001, 2002, 2003, 2004, 2005, 2006,
2492            2007, 2008, 2009 Free Software Foundation, Inc.
2494  This file is free software; as a special exception the author gives
2495  unlimited permission to copy and/or distribute it, with or without
2496  modifications, as long as this notice is preserved.
2498  This file is distributed in the hope that it will be useful, but
2499  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2500  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.