1 2009-11-25 Marcus Brinkmann <marcus@g10code.de>
3 * command.c (start_command_handler): Use assuan_fd_t and
6 2009-11-05 Marcus Brinkmann <marcus@g10code.de>
8 * call-pinentry.c (start_pinentry): Call assuan_pipe_connect, not
9 assuan_pipe_connect_ext.
10 * command.c (start_command_handler): Change
11 assuan_init_socket_server_ext into assuan_init_socket_server.
12 * call-scd.c (start_scd): Update use of assuan_socket_connect and
14 * gpg-agent.c (check_own_socket_thread, check_for_running_agent):
15 Update use of assuan_socket_connect.
17 2009-11-04 Werner Koch <wk@g10code.com>
19 * command.c (register_commands): Add help arg to
20 assuan_register_command. Convert all command comments to help
23 2009-11-02 Marcus Brinkmann <marcus@g10code.de>
25 * command.c (reset_notify): Take LINE arg and return error.
26 (register_commands): Use assuan_handler_t type.
28 2009-10-16 Marcus Brinkmann <marcus@g10code.com>
30 * gpg_agent_CFLAGS, gpg_agent_LDADD: Use libassuan instead of
32 * gpg-agent.c: Invoke ASSUAN_SYSTEM_PTH_IMPL.
33 (main): Call assuan_set_system_hooks and assuan_sock_init.
34 Fix invocation of assuan_socket_connect.
36 2009-09-23 Werner Koch <wk@g10code.com>
38 * command.c (register_commands) [HAVE_ASSUAN_SET_IO_MONITOR]:
40 (start_command_handler) [HAVE_ASSUAN_SET_IO_MONITOR]: Ditto.
42 2009-09-23 Marcus Brinkmann <marcus@g10code.de>
44 * gpg-agent.c (parse_rereadable_options): Don't set global assuan
45 log file (there ain't one anymore).
46 (main): Update to new API.
47 (check_own_socket_pid_cb): Return gpg_error_t instead of int.
48 (check_own_socket_thread, check_for_running_agent): Create assuan
49 context before connecting to server.
50 * command.c: Include "scdaemon.h" before <assuan.h> because of
51 GPG_ERR_SOURCE_DEFAULT check.
52 (write_and_clear_outbuf): Use gpg_error_t instead of
54 (cmd_geteventcounter, cmd_istrusted, cmd_listtrusted)
55 (cmd_marktrusted, cmd_havekey, cmd_sigkey, cmd_setkeydesc)
56 (cmd_sethash, cmd_pksign, cmd_pkdecrypt, cmd_genkey, cmd_readkey)
57 (cmd_keyinfo, cmd_get_passphrase, cmd_clear_passphrase)
58 (cmd_get_confirmation, cmd_learn, cmd_passwd)
59 (cmd_preset_passphrase, cmd_scd, cmd_getval, cmd_putval)
60 (cmd_updatestartuptty, cmd_killagent, cmd_reloadagent)
61 (cmd_getinfo, option_handler): Return gpg_error_t instead of int.
62 (post_cmd_notify): Change type of ERR to gpg_error_t from int.
63 (io_monitor): Add hook argument. Use symbols for constants.
64 (register_commands): Change return type of HANDLER to gpg_error_t.
65 (start_command_handler): Allocate assuan context before starting
67 * call-pinentry.c: Include "scdaemon.h" before <assuan.h> because
68 of GPG_ERR_SOURCE_DEFAULT check.
69 (unlock_pinentry): Call assuan_release instead of
71 (getinfo_pid_cb, getpin_cb): Return gpg_error_t instead of int.
72 (start_pinentry): Allocate assuan context before connecting to
74 * call-scd.c (membuf_data_cb, learn_status_cb, get_serialno_cb)
75 (membuf_data_cb, inq_needpin, card_getattr_cb, pass_status_thru)
76 (pass_data_thru): Change return type to gpg_error_t.
77 (start_scd): Allocate assuan context before connecting to server.
79 2009-09-04 Marcus Brinkmann <marcus@g10code.com>
81 * command.c (start_command_handler): Add comment about gap in
82 implementation (in dead code), for future reference.
84 2009-08-11 Werner Koch <wk@g10code.com>
86 * divert-scd.c (ask_for_card): I18n a prompt string.
88 2009-07-06 Werner Koch <wk@g10code.com>
90 * agent.h: Include session-env.h.
91 (opt): Replace most of the startup_xxx fields by a session_env_t.
92 (struct server_control_s): Likewise.
93 * gpg-agent.c (main): Rewrite setting of the startup fields.
94 (handle_connections, main): Allocate SESSION_ENV.
95 (agent_init_default_ctrl, agent_deinit_default_ctrl): Change
97 * command.c (option_handler): Ditto.
98 (cmd_updatestartuptty): Change accordingly. Protect old values
99 from out of core failures.
100 * command-ssh.c (start_command_handler_ssh): Ditto.
101 (start_command_handler_ssh): Replace strdup by xtrystrdup.
102 * call-pinentry.c (atfork_cb): Pass new envrinmnet variables.
103 (start_pinentry): Use session_env stuff.
104 * protect-tool.c (main): Adjust call to gnupg_prepare_get_passphrase.
106 2009-06-24 Werner Koch <wk@g10code.com>
108 * genkey.c (agent_protect_and_store): Return RC and not 0.
109 * protect.c (do_encryption): Fix ignored error code from malloc.
110 Reported by Fabian Keil.
112 2009-06-17 Werner Koch <wk@g10code.com>
114 * call-pinentry.c (agent_get_confirmation): Add arg WITH_CANCEL.
116 * trustlist.c (agent_marktrusted): Use WITH_CANCEL
118 2009-06-09 Werner Koch <wk@g10code.com>
120 * learncard.c (send_cert_back): Ignore certain error codes.
122 2009-06-05 Werner Koch <wk@g10code.com>
124 * protect-tool.c (store_private_key): Fix last change by appending
127 2009-06-03 Werner Koch <wk@g10code.com>
129 * protect-tool.c: Include estream.h.
130 (store_private_key): Replace stdio streams by estream functions
131 for a portable use of the "x" mode.
132 * trustlist.c: Include estream.h.
133 (agent_marktrusted): Replace stdio stream by estream functions.
135 * protect-tool.c (store_private_key): Use bin2hex.
137 2009-06-02 Werner Koch <wk@g10code.com>
139 * gpg-agent.c (main): Run pth_kill after fork. Fixes bug#1066.
141 2009-05-19 Werner Koch <wk@g10code.com>
143 * gpg-agent.c (JNLIB_NEED_AFLOCAL): Define.
144 (create_server_socket): Use SUN_LEN macro.
146 2009-05-15 Werner Koch <wk@g10code.com>
150 * agent.h (lookup_ttl_t): New.
151 * findkey.c (unprotect): Add arg LOOKUP_TTL.
152 (agent_key_from_file): Ditto.
153 * pksign.c (agent_pksign_do): Ditto.
154 * command-ssh.c (ttl_from_sshcontrol): New.
155 (data_sign): Pass new function to agent_pksign_do.
156 (search_control_file): Add new arg R_TTL.
158 2009-05-14 Werner Koch <wk@g10code.com>
160 * command.c (cmd_get_passphrase): Add option --qualitybar.
161 * call-pinentry.c (agent_askpin): Factor some code out to ...
162 (setup_qualitybar): .. new.
163 (agent_get_passphrase): Add arg WITH_QUALITYBAR and implement it.
165 2009-04-14 Marcus Brinkmann <marcus@g10code.de>
167 * call-pinentry.c (agent_get_confirmation): Try SETNOTOK command
170 2009-04-01 Werner Koch <wk@g10code.com>
172 * protect-tool.c (pe_opt): New.
173 (opts): Add option --agent-program. Use ARGPARSE macros.
174 (get_new_passphrase): Remove.
175 (get_passphrase): Use gpg-agent directly. Remove arg OPT_CHECK and
177 * Makefile.am (gpg_protect_tool_LDADD): Replace pwquery_libs by
179 (gpg_protect_tool_CFLAGS): New.
181 * command.c (percent_plus_unescape): Remove.
182 (cmd_putval): Use percent_plus_unescape_inplace.
183 * call-scd.c (unescape_status_string): Remove.
184 (card_getattr_cb): Use percent_plus_unescape.
185 * protect-tool.c (main): Use percent_plus_unescape from common/.
186 (percent_plus_unescape, percent_plus_unescape_string): Remove.
188 2009-03-27 Werner Koch <wk@g10code.com>
190 * learncard.c (agent_handle_learn): Add new certtype 111.
192 2009-03-26 Werner Koch <wk@g10code.com>
194 * agent.h (MAX_DIGEST_LEN): Change to 64.
195 * command.c (cmd_sethash): Allow digest length of 48 and 64.
196 (cmd_sethash): Allow more hash algos.
198 * trustlist.c (reformat_name): New.
199 (agent_marktrusted): Use a reformatted name. Reload the table
200 before the update and always reload it at the end.
201 (agent_istrusted): Check early for the disabled flag.
203 2009-03-25 Werner Koch <wk@g10code.com>
205 * pkdecrypt.c (agent_pkdecrypt): Return a specific error message
206 if the key is not available.
208 * gpg-agent.c (main): Print a started message to show the real pid.
210 2009-03-20 Werner Koch <wk@g10code.com>
212 * learncard.c (struct kpinfo_cp_parm_s): Add field CTRL.
213 (struct certinfo_cb_parm_s): Ditto.
214 (agent_handle_learn): Set CTRL field.
215 (kpinfo_cb, certinfo_cb): Send progress status.
217 * agent.h (agent_write_status): Flag with GNUPG_GCC_A_SENTINEL.
219 2009-03-19 Werner Koch <wk@g10code.com>
221 * trustlist.c (struct trustitem_s): Add field DISABLED.
222 (read_one_trustfile): Parse the '!' flag.
223 (agent_istrusted, agent_listtrusted): Check flag.
224 (agent_istrusted): Add arg R_DISABLED. Change all callers.
225 (agent_marktrusted): Do not ask if flagged as disabled. Reverse
226 the order of the questions. Store the disabled flag.
228 * gpg-agent.c (main): Save signal mask and open fds. Restore mask
229 and close all fds prior to the exec. Fixes bug#1013.
231 2009-03-17 Werner Koch <wk@g10code.com>
233 * command.c (cmd_get_passphrase): Break repeat loop on error.
235 (cmd_getinfo): Add subcommand "cmd_has_option".
236 (command_has_option): New.
238 2009-03-17 Daiki Ueno <ueno@unixuser.org>
240 * command.c (option_value): New function.
241 (cmd_get_passphrase): Accept new option --repeat, which makes
242 gpg-agent to ask passphrase several times.
244 2009-03-06 Werner Koch <wk@g10code.com>
246 * command.c (cmd_keyinfo): New command.
247 (register_commands): Register it.
248 (agent_write_status): Make sure not to print LR or CR.
249 * divert-scd.c (ask_for_card): Factor shadow info parsing out to ...
250 * protect.c (parse_shadow_info): New.
251 * findkey.c (agent_key_from_file): Use make_canon_sexp.
252 (agent_write_private_key, unprotect, read_key_file)
253 (agent_key_available): Use bin2hex.
254 (agent_key_info_from_file): New.
255 (read_key_file): Log no error message for ENOENT.
257 2009-03-05 Werner Koch <wk@g10code.com>
259 * divert-scd.c (getpin_cb): Support flag 'P'. Change max_digits
260 from 8 to 16. Append a message about keypads.
261 * findkey.c (unprotect): Change max digits to 16.
263 2009-03-02 Werner Koch <wk@g10code.com>
265 * command.c (cmd_getinfo): Add subcommand "scd_running".
267 * call-scd.c (agent_scd_check_running): New.
269 * gpg-agent.c: Add missing option strings for "--batch" and
270 "--homedir". Reported by Petr Uzel.
272 * protect-tool.c (import_p12_file): Take care of canceled
273 passphrase entry. Fixes bug#1003.
274 (export_p12_file): Ditto.
276 2008-12-17 Werner Koch <wk@g10code.com>
278 * gpg-agent.c (handle_connections): Set action of all pth event
279 handled signals to SIG_IGN. Use a different pth_sigmask strategy.
281 2008-12-10 Werner Koch <wk@g10code.com>
283 * command.c (cmd_get_passphrase): Implement option --no-ask.
285 2008-12-09 Werner Koch <wk@g10code.com>
287 * gpg-agent.c (main): Call i18n_init before init_common_subsystems.
288 * preset-passphrase.c (main): Ditto.
289 * protect-tool.c (main): Ditto.
291 * command.c (cmd_preset_passphrase): Allow an arbitrary string for
294 2008-12-08 Werner Koch <wk@g10code.com>
296 * gpg-agent.c (handle_connections): Sync the ticker to the next
297 full second. This is bug#871.
299 2008-12-05 Werner Koch <wk@g10code.com>
301 * minip12.c (decrypt_block): Fix const modified of CHARSETS.
302 * learncard.c (sinfo_cb_parm_s): Remove superflous semicolon.
303 Reported by Stoyan Angelov.
305 2008-11-18 Werner Koch <wk@g10code.com>
307 * gpg-agent.c (make_libversion): New.
308 (my_strusage): Print libgcrypt version
310 2008-11-11 Werner Koch <wk@g10code.com>
312 * call-scd.c (membuf_data_cb): Change return type to
313 assuan_error_t to avoid warnings with newer libassuan versions.
315 2008-11-04 Werner Koch <wk@g10code.com>
317 * command.c (cmd_killagent): Stop the agent immediately.
318 (start_command_handler): Take care of GPG_ERR_EOF.
320 2008-10-29 Werner Koch <wk@g10code.com>
322 * gpg-agent.c (main): Move USE_STANDARD_SOCKET to the outer scope.
323 (create_socket_name): Remove arg USE_STANDARD_SOCKET. Change all
325 (create_server_socket): Remove IS_STANDARD_NAME and replace it by
326 USE_STANDARD_SOCKET. Change all callers.
327 (check_own_socket_running): New.
328 (check_own_socket, check_own_socket_thread): New.
329 (handle_tick): Check server socket once a minute.
330 (handle_connections): Remove the extra pth_wait in the shutdown
333 2008-10-20 Werner Koch <wk@g10code.com>
335 * command.c (cmd_geteventcounter): Mark unused arg.
336 (cmd_listtrusted, cmd_pksign, cmd_pkdecrypt, cmd_genkey): Ditto.
337 (cmd_updatestartuptty, post_cmd_notify): Ditto.
338 * command-ssh.c (add_control_entry)
339 (ssh_handler_request_identities, ssh_handler_remove_identity)
340 (ssh_handler_remove_all_identities, ssh_handler_lock)
341 (ssh_handler_unlock): Ditto.
342 * call-pinentry.c (pinentry_active_p, popup_message_thread)
343 (agent_popup_message_stop): Ditto.
344 * findkey.c (agent_public_key_from_file): Ditto.
345 * genkey.c (check_passphrase_pattern): Ditto.
346 * call-scd.c (atfork_cb): Ditto.
347 * protect-tool.c (import_p12_cert_cb): Ditto.
348 * t-protect.c (main): Ditto.
350 2008-10-17 Werner Koch <wk@g10code.com>
352 * call-scd.c (start_scd) [W32]: Use snprintf again because we now
353 always use the estream variant.
355 2008-10-15 Werner Koch <wk@g10code.com>
357 * call-scd.c (start_scd): Enable assuan loggging if requested.
358 (agent_scd_check_aliveness) [W32]: Fix use of GetExitCodeProcess.
360 2008-10-14 Werner Koch <wk@g10code.com>
362 * gpg-agent.c (get_agent_scd_notify_event): Need to use a manual
365 2008-09-29 Werner Koch <wk@g10code.com>
367 * agent.h (GCRY_MD_USER): Rename to GCRY_MODULE_ID_USER.
368 (GCRY_MD_USER_TLS_MD5SHA1): Rename to MD_USER_TLS_MD5SHA1 and
371 2008-09-25 Werner Koch <wk@g10code.com>
373 * divert-scd.c (getpin_cb): Support a Reset Code style PINs..
375 2008-09-03 Werner Koch <wk@g10code.com>
377 * command.c (parse_keygrip): Use hex2bin.
378 (cmd_preset_passphrase): Decode the passphrase. Reported by Kiss
379 Gabor. Fixes #679 again.
380 * preset-passphrase.c (make_hexstring): Remove.
381 (preset_passphrase): Use bin2hex.
383 2008-05-27 Werner Koch <wk@g10code.com>
385 * trustlist.c (insert_colons): Fix stupidly wrong allocation size
388 2008-05-26 Werner Koch <wk@g10code.com>
390 * gpg-agent.c (main): Re-initialize default assuan log stream if a
393 * trustlist.c (agent_marktrusted): Use xtryasprintf and xfree.
395 * gpg-agent.c (main, agent_deinit_default_ctrl): Always use xfree
396 because our asprintf is mapped to an xmalloc style function in
397 util.h. Replace xstrdup by xtrystrdup.
398 * w32main.c (build_argv): Ditto.
399 * preset-passphrase.c (preset_passphrase): Ditto.
400 * divert-scd.c (ask_for_card): Ditto.
401 * command.c (option_handler): Ditto.
402 * command-ssh.c (ssh_handler_request_identities): Ditto.
403 * call-pinentry.c (start_pinentry): Ditto.
405 * gpg-agent.c (start_connection_thread)
406 (start_connection_thread_ssh): Use pth_thread_id for useful output
408 (pth_thread_id) [!PTH_HAVE_PTH_THREAD_ID]: New.
410 2008-03-17 Werner Koch <wk@g10code.com>
412 * agent.h (agent_inq_pinentry_launched): New prototype.
414 * call-pinentry.c: Include sys/types.h and signal.h.
416 2008-02-14 Werner Koch <wk@g10code.com>
418 * command.c (agent_inq_pinentry_launched): New.
419 (option_handler): Add option allow-pinentry-notify.
420 * call-pinentry.c (getinfo_pid_cb): New.
421 (start_pinentry): Ask for the PID and notify the client.
423 2008-01-15 Marcus Brinkmann <marcus@g10code.de>
425 * call-pinentry.c (start_pinentry): Start pinentry in detached
428 2007-12-04 Werner Koch <wk@g10code.com>
430 * call-pinentry.c (agent_askpin): Use gnupg_get_help_string.
432 2007-12-03 Werner Koch <wk@g10code.com>
434 * gpg-agent.c (main): s/standard_socket/use_standard_socket/ for
436 (create_server_socket): New arg IS_SSH to avoid testing with
439 2007-11-20 Werner Koch <wk@g10code.com>
441 * gpg-agent.c (get_agent_scd_notify_event): New.
442 (handle_signal): Factor SIGUSR2 code out to:
443 (agent_sigusr2_action): .. New.
444 (agent_sighup_action): Print info message here and not in
446 (handle_connections) [PTH_EVENT_HANDLE]: Call agent_sigusr2_action.
448 * call-scd.c (agent_scd_check_aliveness) [W32]: Implemented.
449 (start_scd) [W32]: Send event-signal option.
451 2007-11-19 Werner Koch <wk@g10code.com>
453 * call-pinentry.c (agent_askpin): Set the tooltip for the quality
456 2007-11-15 Werner Koch <wk@g10code.com>
458 * agent.h (struct server_control_s): Add XAUTHORITY and
460 * gpg-agent.c: New option --xauthority.
461 (main, agent_init_default_ctrl)
462 (agent_deinit_default_ctrl): Implemented
463 * command.c (cmd_updatestartuptty): Ditto.
464 * command-ssh.c (start_command_handler_ssh): Ditto.
465 * call-pinentry.c (atfork_cb): Set the environment.
466 (start_pinentry): Pass CTRL as arg to atfork_cb.
468 2007-11-14 Werner Koch <wk@g10code.com>
470 * call-scd.c (start_scd) [W32]: Take care of fflush peculiarities.
472 2007-11-07 Werner Koch <wk@g10code.com>
474 * agent.h: Remove errors.h.
476 2007-10-24 Werner Koch <wk@g10code.com>
478 * genkey.c (check_passphrase_constraints): Changed the wording of
479 the warning messages.
481 2007-10-19 Werner Koch <wk@g10code.com>
483 * protect-tool.c (get_passphrase): Use new utf8 switch fucntions.
485 2007-10-15 Daiki Ueno <ueno@unixuser.org> (wk)
487 * command-ssh.c (reenter_compare_cb): New function; imported from
489 (ssh_identity_register): Ask initial passphrase twice.
491 2007-10-02 Werner Koch <wk@g10code.com>
493 * command.c (cmd_getinfo): Add "pid" subcommand.
495 2007-10-01 Werner Koch <wk@g10code.com>
497 * agent.h (struct server_control_s): Remove unused CONNECTION_FD.
499 * gpg-agent.c: Remove w32-afunix.h. Include mkdtemp.h.
500 (socket_nonce, socket_nonce_ssh): New.
501 (create_server_socket): Use assuan socket wrappers. Remove W32
502 specific stuff. Save the server nonce.
504 (start_connection_thread, start_connection_thread_ssh): Call it.
505 (handle_connections): Change args to gnupg_fd_t.
506 * command.c (start_command_handler): Change LISTEN_FD to gnupg_fd_t.
507 * command-ssh.c (start_command_handler_ssh): Ditto.
509 2007-09-18 Werner Koch <wk@g10code.com>
511 * agent.h (struct pin_entry_info_s): Add element WITH_QUALITYBAR.
512 * genkey.c (check_passphrase_constraints): New arg SILENT.
514 (agent_protect_and_store, agent_genkey): Enable qualitybar.
515 * call-pinentry.c (agent_askpin): Send that option.
516 (unescape_passphrase_string): New.
518 (estimate_passphrase_quality): New.
520 2007-09-14 Marcus Brinkmann <marcus@g10code.de>
522 * call-pinentry.c (agent_popup_message_stop): Implement kill for
525 2007-08-28 Werner Koch <wk@g10code.com>
527 * gpg-agent.c (main): Add option --faked-system-time.
529 * protect-tool.c (read_and_unprotect): Print the protected-at date.
531 * agent.h (struct server_control_s): Add member IN_PASSWD.
532 * command.c (cmd_passwd): Set it.
533 * findkey.c (try_unprotect_cb): Use it.
535 * protect.c (do_encryption): Replace asprintf by xtryasprint.
536 (agent_protect): Create the protected-at item.
537 (agent_unprotect): Add optional arg PROTECTED_AT.
538 (merge_lists): Add args CUTOFF and CUTLEN.
539 (agent_unprotect): Use them.
540 * findkey.c (try_unprotect_cb): Add code to test for expired keys.
541 (unprotect): Allow changing the passphrase.
543 2007-08-27 Werner Koch <wk@g10code.com>
545 * gpg-agent.c: Add options --min-passphrase-nonalpha,
546 --check-passphrase-pattern and --enforce-passphrase-constraints.
547 (MIN_PASSPHRASE_NONALPHA): Init nonalpha option to 1.
548 (main): Declare options for gpgconf.
549 * agent.h (struct): Add members MIN_PASSPHRASE_NONALPHA,
550 ENFORCE_PASSPHRASE_CONSTRAINTS and CHECK_PASSPHRASE_PATTERN.
551 * genkey.c (nonalpha_charcount): New.
552 (check_passphrase_pattern): New.
553 (check_passphrase_constraints): Implement. Factor some code out...
554 (take_this_one_anyway, take_this_one_anyway2): .. New.
556 * call-pinentry.c (agent_show_message): New.
557 (agent_askpin): We better reset the pin buffer before asking.
559 * trustlist.c (insert_colons): New.
560 (agent_marktrusted): Pretty print the fpr.
562 2007-08-22 Werner Koch <wk@g10code.com>
564 * findkey.c (O_BINARY): Make sure it is defined.
565 (agent_write_private_key): Use O_BINARY
567 * protect-tool.c (import_p12_file): Add hack to allow importing of
568 gnupg 2.0.4 generated files.
570 2007-08-06 Werner Koch <wk@g10code.com>
572 * trustlist.c (read_one_trustfile): Add flag "cm".
573 (agent_istrusted): Ditto.
575 2007-08-02 Werner Koch <wk@g10code.com>
577 * gpg-agent.c: Include gc-opt-flags.h and remove their definition
580 2007-07-13 Werner Koch <wk@g10code.com>
582 * genkey.c (check_passphrase_constraints): Require a confirmation
583 for an empty passphrase.
584 (agent_genkey, agent_protect_and_store): No need to repeat an
587 2007-07-05 Werner Koch <wk@g10code.com>
589 * call-scd.c (struct inq_needpin_s): New.
590 (inq_needpin): Pass unknown inquiries up.
592 2007-07-04 Werner Koch <wk@g10code.com>
594 * gpg-agent.c (TIMERTICK_INTERVAL): New.
595 (fixed_gcry_pth_init, main): Kludge to fix Pth initialization.
597 2007-07-03 Werner Koch <wk@g10code.com>
599 * gpg-agent.c (handle_connections): Do not use FD_SETSIZE for
600 select but compute the correct number.
602 2007-07-02 Werner Koch <wk@g10code.com>
604 * command.c (cmd_reloadagent) [W32]: New.
605 (register_commands) [W32]: New command RELOADAGENT.
607 * Makefile.am (gpg_agent_SOURCES): Remove w32main.c and w32main.h.
608 (gpg_agent_res_ldflags): Remove icon file as we don't have a
610 * gpg-agent.c (main): do not include w32main.h. Remove all calls
612 (agent_sighup_action): New.
613 (handle_signal): Use it.
615 2007-06-26 Werner Koch <wk@g10code.com>
617 * gpg-agent.c (create_directories) [W32]: Made it work.
619 2007-06-21 Werner Koch <wk@g10code.com>
621 * agent.h (ctrl_t): Remove. It is now declared in ../common/util.h.
623 * gpg-agent.c (check_for_running_agent): New arg SILENT. Changed
625 (create_server_socket): If the standard socket is in use check
626 whether a agent is running and avoid starting another one.
628 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
630 * gpg-agent.c (main): Percent escape pathname in --gpgconf-list
633 2007-06-18 Werner Koch <wk@g10code.com>
635 * w32main.c (build_argv): New.
638 * command.c (cmd_killagent) [W32]: New.
640 * gpg-agent.c (get_agent_ssh_socket_name): New.
641 (no_force_standard_socket) New.
642 (create_server_socket): Use it.
643 * Makefile.am (gpg_agent_res_ldflags): Pass windows option to ld.
645 2007-06-14 Werner Koch <wk@g10code.com>
647 * protect-tool.c (main): Setup default socket name for
649 (MAP_SPWQ_ERROR_IMPL): New. Use map_spwq_error for spqw related
651 * preset-passphrase.c (main): Setup default socket name for
653 (map_spwq_error): Remove.
654 (MAP_SPWQ_ERROR_IMPL): New.
656 * call-pinentry.c (start_pinentry): Use gnupg_module_name.
657 * call-scd.c (start_scd): Ditto.
659 2007-06-12 Werner Koch <wk@g10code.com>
663 * trustlist.c (read_one_trustfile): Replace GNUPG_SYSCONFDIR by a
665 (read_trustfiles): Ditto.
667 * gpg-agent.c (main): Replace some calls by init_common_subsystems.
668 * preset-passphrase.c (main): Ditto.
669 * protect-tool.c (main): Ditto.
671 2007-06-11 Werner Koch <wk@g10code.com>
673 * Makefile.am (common_libs): Use libcommonstd macro.
674 (commonpth_libs): Use libcommonpth macro.
676 * protect-tool.c (main) [W32]: Call pth_init.
678 * preset-passphrase.c (main) [W32]: Replace the explicit Winsocket
679 init by a call to pth_init.
681 * trustlist.c (initialize_module_trustlist): New.
682 * gpg-agent.c (main): Call it.
684 * call-pinentry.c (initialize_module_query): Rename to
685 initialize_module_call_pinentry.
687 * minip12.c: Remove iconv.h. Add utf8conf.h. Changed all iconv
688 calss to use these jnlib wrappers.
690 2007-06-06 Werner Koch <wk@g10code.com>
692 * minip12.c (enum): Rename CONTEXT to ASNCONTEXT as winnt.h
693 defines such a symbol to access the process context.
695 * call-pinentry.c (dump_mutex_state) [W32]: Handle the W32Pth case.
696 * call-scd.c (dump_mutex_state): Ditto.
698 * protect-tool.c (i18n_init): Remove.
699 * preset-passphrase.c (i18n_init): Remove.
700 * gpg-agent.c (i18n_init): Remove.
702 2007-05-19 Marcus Brinkmann <marcus@g10code.de>
704 * protect-tool.c (get_passphrase): Free ORIG_CODESET on error.
706 2007-05-14 Werner Koch <wk@g10code.com>
708 * protect.c (make_shadow_info): Replace sprintf by smklen.
710 2007-04-20 Werner Koch <wk@g10code.com>
712 * gpg-agent.c (my_gcry_logger, my_gcry_outofcore_handler): Removed.
713 (main): Call the setup_libgcrypt_logging helper.
714 * protect-tool.c (my_gcry_logger): Removed.
715 (main): Call the setup_libgcrypt_logging helper.
717 2007-04-03 Werner Koch <wk@g10code.com>
719 * trustlist.c (read_trustfiles): Take a missing trustlist as an
722 2007-03-20 Werner Koch <wk@g10code.com>
724 * protect-tool.c: New option --p12-charset.
725 * minip12.c (p12_build): Implement it.
727 2007-03-19 Werner Koch <wk@g10code.com>
729 * minip12.c: Include iconv.h.
730 (decrypt_block): New.
731 (parse_bag_encrypted_data, parse_bag_data): Use it here.
732 (bag_data_p, bag_decrypted_data_p): New helpers.
734 2007-03-06 Werner Koch <wk@g10code.com>
736 * gpg-agent.c (main) <gpgconf>: Add entries for all ttl options.
738 2007-02-20 Werner Koch <wk@g10code.com>
740 * call-pinentry.c (start_pinentry): Fix for OS X to allow loading
741 of the bundle. Tested by Benjamin Donnachie.
743 2007-02-14 Werner Koch <wk@g10code.com>
745 * gpg-agent.c: New option --pinentry-touch-file.
746 (get_agent_socket_name): New.
747 * agent.h (opt): Add pinentry_touch_file.
748 * call-pinentry.c (start_pinentry): Send new option to the
751 2007-01-31 Moritz Schulte <moritz@g10code.com> (wk)
753 * command-ssh.c (stream_read_string): Initialize LENGTH to zero.
754 (start_command_handler_ssh): Use es_fgetc/es_ungetc to check if
755 EOF has been reached before trying to process another request.
757 2007-01-31 Werner Koch <wk@g10code.com>
759 * command-ssh.c (start_command_handler_ssh):
761 * Makefile.am (t_common_ldadd): Add LIBICONV.
763 2007-01-25 Werner Koch <wk@g10code.com>
765 * genkey.c (check_passphrase_constraints): Get ngettext call right
766 and use UTF-8 aware strlen.
768 * protect-tool.c (get_passphrase): New arg OPT_CHECK.
769 (get_new_passphrase): Enable OPT_CHECK on the first call.
770 * command.c (cmd_get_passphrase): Implement option --check.
772 2007-01-24 Werner Koch <wk@g10code.com>
774 * gpg-agent.c (MIN_PASSPHRASE_LEN): New
775 (parse_rereadable_options): New option --min-passphrase-len.
776 * genkey.c (check_passphrase_constraints): New.
777 (agent_genkey, agent_protect_and_store): Call new function. Fix
780 * call-pinentry.c (agent_askpin): Allow translation of the displayed
782 (agent_popup_message_start): Remove arg CANCEL_BTN.
783 (popup_message_thread): Use --one-button option.
785 * command.c (cmd_passwd): Now that we don't distinguish between
786 assuan and regular error codes we can jump to the end on error.
788 2006-12-07 David Shaw <dshaw@jabberwocky.com>
790 * Makefile.am: Link to iconv for jnlib dependency.
792 2006-11-20 Werner Koch <wk@g10code.com>
794 * call-pinentry.c (agent_popup_message_stop): Use SIGKILL.
795 * call-scd.c (inq_needpin): Implement POPUPKEYPADPROMPT and
798 2006-11-15 Werner Koch <wk@g10code.com>
800 * protect.c (make_shadow_info): Cast printf arg to unsigned int.
801 * minip12.c (parse_bag_encrypted_data): Ditto.
802 (parse_bag_data, p12_parse): Ditto.
803 * command-ssh.c (ssh_identity_register): Changed buffer_n to
806 * agent.h (struct server_control_s): New field thread_startup.
807 * command.c (start_command_handler): Moved CTRL init code to ..
808 * gpg-agent.c (start_connection_thread): .. here.
809 (agent_deinit_default_ctrl): New.
810 (agent_init_default_ctrl): Made static.
811 (handle_connections): Allocate CTRL and pass it pth_spawn.
812 * command-ssh.c (start_command_handler_ssh): Moved CTRL init code
814 * gpg-agent.c (start_connection_thread_ssh): .. here.
816 2006-11-14 Werner Koch <wk@g10code.com>
818 * command.c (bump_key_eventcounter): New.
819 (bump_card_eventcounter): New.
820 (cmd_geteventcounter): New command.
821 * gpg-agent.c (handle_signal): Call bump_card_eventcounter.
822 * findkey.c (agent_write_private_key): Call bump_key_eventcounter.
823 * trustlist.c (agent_reload_trustlist): Ditto.
825 * command.c (post_cmd_notify, io_monitor): New.
826 (register_commands, start_command_handler): Register them.
828 2006-11-09 Werner Koch <wk@g10code.com>
830 * gpg-agent.c (main): In detached mode connect standard
831 descriptors to /dev/null.
833 * trustlist.c (read_trustfiles): Make sure not to pass a zero size
834 to realloc as the C standards says that this behaves like free.
836 2006-11-06 Werner Koch <wk@g10code.com>
838 * protect-tool.c (my_strusage): Fixed typo.
840 2006-10-23 Werner Koch <wk@g10code.com>
842 * gpg-agent.c (main): New command --gpgconf-test.
844 * minip12.c (parse_bag_encrypted_data, parse_bag_data): Allow for
847 2006-10-20 Werner Koch <wk@g10code.com>
849 * Makefile.am (t_common_ldadd): Use GPG_ERROR_LIBS instead -o just -l
851 2006-10-19 Werner Koch <wk@g10code.com>
853 * findkey.c (unprotect): Use it to avoid unnecessary calls to
855 * call-pinentry.c (pinentry_active_p): New.
857 2006-10-17 Werner Koch <wk@g10code.com>
859 * Makefile.am (gpg_agent_LDADD): Link to libcommonpth.
860 (gpg_agent_CFLAGS): New. This allows to only link this with Pth.
862 2006-10-16 Werner Koch <wk@g10code.com>
864 * call-pinentry.c (agent_get_confirmation): Map Cancel code here too.
865 * trustlist.c (agent_marktrusted): Return Cancel instead of
866 Not_Confirmed for the first question.
868 2006-10-12 Werner Koch <wk@g10code.com>
870 * protect-tool.c (get_passphrase): Fix if !HAVE_LANGINFO_CODESET.
872 2006-10-06 Werner Koch <wk@g10code.com>
874 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
875 (gpg_agent_LDADD): Ditto.
877 * divert-scd.c (divert_pksign): Use PKAUTH for the TLS algo.
879 2006-10-05 Werner Koch <wk@g10code.com>
881 * command.c (has_option_name): New.
882 (cmd_sethash): New --hash option.
883 * pksign.c (do_encode_raw_pkcs1): New.
884 (agent_pksign_do): Use it here for the TLS algo.
885 * agent.h (GCRY_MD_USER_TLS_MD5SHA1): New.
886 * divert-scd.c (pksign): Add case for tls-md5sha1.
888 * divert-scd.c (encode_md_for_card): Check that the algo is valid.
890 2006-10-04 Werner Koch <wk@g10code.com>
892 * call-pinentry.c (agent_get_passphrase): Changed to return the
893 unencoded passphrase.
894 (agent_askpin, agent_get_passphrase, agent_get_confirmation): Need
895 to map the cancel error.
896 * command.c (send_back_passphrase): New.
897 (cmd_get_passphrase): Use it here. Also implement --data option.
900 2006-09-26 Werner Koch <wk@g10code.com>
902 * learncard.c (agent_handle_learn): Send back the keypair
905 2006-09-25 Werner Koch <wk@g10code.com>
907 * trustlist.c (read_one_trustfile): Allow extra flags.
908 (struct trustitem_s): Replaced KEYFLAGS by a FLAGS struct.
909 Changed all code to use this.
910 (agent_istrusted): New arg CTRL. Changed all callers. Send back
912 * command.c (agent_write_status): New.
914 2006-09-20 Werner Koch <wk@g10code.com>
916 * Makefile.am: Changes to allow parallel make runs.
918 2006-09-15 Werner Koch <wk@g10code.com>
920 * trustlist.c: Entirely rewritten.
921 (agent_trustlist_housekeeping): Removed and removed all calls.
923 2006-09-14 Werner Koch <wk@g10code.com>
925 Replaced all call gpg_error_from_errno(errno) by
926 gpg_error_from_syserror().
928 * call-pinentry.c (start_pinentry): Replaced pipe_connect2 by
930 * call-scd.c (start_scd): Ditto.
931 * command.c (start_command_handler): Replaced
932 init_connected_socket_server by init_socket_server_ext.
934 2006-09-13 Werner Koch <wk@g10code.com>
936 * preset-passphrase.c (main) [W32]: Check for WSAStartup error.
938 2006-09-08 Werner Koch <wk@g10code.com>
940 * call-scd.c: Add signal.h as we are referencing SIGUSR2.
942 2006-09-06 Marcus Brinkmann <marcus@g10code.de>
944 * Makefile.am (AM_CFLAGS): Add $(GPG_ERR_CFLAGS).
945 (gpg_agent_LDADD): Replace -lgpg-error with $(GPG_ERROR_LIBS).
947 2006-09-06 Werner Koch <wk@g10code.com>
949 * query.c: Renamed to ..
950 * call-pinentry.c: .. this.
952 * agent.h (out_of_core): Removed.
953 (CTRL): Removed and changed everywhere to ctrl_t.
955 Replaced all Assuan error codes by libgpg-error codes. Removed
956 all map_to_assuan_status and map_assuan_err.
958 * gpg-agent.c (main): Call assuan_set_assuan_err_source to have Assuan
959 switch to gpg-error codes.
960 * command.c (set_error): Adjusted.
962 2006-09-04 Werner Koch <wk@g10code.com>
964 * command.c (percent_plus_unescape): New.
965 (cmd_get_val, cmd_putval): New.
967 2006-08-29 Werner Koch <wk@g10code.com>
969 * command-ssh.c (stream_read_mpi): Sanity check for early
970 detecting of too large keys.
971 * gpg-agent.c (my_gcry_outofcore_handler): New.
973 (main): No allocate 32k secure memory (was 16k).
975 2006-07-31 Werner Koch <wk@g10code.com>
977 * preset-passphrase.c (make_hexstring): For consistency use
978 xtrymalloc and changed caller to use xfree. Fixed function
981 2006-07-29 Marcus Brinkmann <marcus@g10code.de>
983 * preset-passphrase.c (preset_passphrase): Do not strip off last
984 character of passphrase.
985 (make_hexstring): New function.
986 * command.c (cmd_preset_passphrase): Use parse_hexstring to syntax
987 check passphrase argument. Truncate passphrase at delimiter.
989 2006-07-24 Werner Koch <wk@g10code.com>
991 * minip12.c (build_key_bag): New args SHA1HASH and
992 KEYIDSTR. Append bag Attributes if these args are given.
993 (build_cert_sequence): ditto.
994 (p12_build): Calculate certificate hash and pass to build
997 2006-07-21 Werner Koch <wk@g10code.com>
999 * minip12.c (oid_pkcs_12_keyBag): New.
1000 (parse_bag_encrypted_data): New arg R_RESULT. Support keybags and
1001 return the key object.
1002 (p12_parse): Take new arg into account. Free RESULT on error.
1004 2006-06-26 Werner Koch <wk@g10code.com>
1006 * gpg-agent.c (handle_signal): Print info for SIGUSR2 only in
1009 2006-06-22 Werner Koch <wk@g10code.com>
1011 * command-ssh.c (make_cstring): Use memcpy instead of strncpy.
1012 (ssh_receive_mpint_list, sexp_key_extract, data_sign): Use
1013 xtrycalloc instead of xtrymalloc followed by memset.
1015 2006-06-20 Werner Koch <wk@g10code.com>
1017 * minip12.c (create_final): New arg PW. Add code to calculate the
1020 2006-06-09 Marcus Brinkmann <marcus@g10code.de>
1022 * Makefile.am (gpg_agent_LDADD): Add $(NETLIBS).
1023 (gpg_protect_tool_LDADD): Likewise.
1024 (gpg_preset_passphrase_LDADD): Likewise.
1026 2006-04-09 Moritz Schulte <moritz@g10code.com>
1028 * command-ssh.c (ssh_request_process): Removed FIXME mentioning a
1029 possible DoS attack.
1031 2006-04-01 Moritz Schulte <moritz@g10code.com>
1033 * command-ssh.c (ssh_identity_register): Make KEY_GRIP_RAW be 20
1034 instead of 21 bytes long; do not fill KEY_GRIP_RAW[20] with NUL
1035 byte - KEY_GRIP_RAW is a raw binary string anyway.
1037 2006-02-09 Werner Koch <wk@g10code.com>
1039 * call-scd.c (struct scd_local_s): New field next_local.
1040 (scd_local_list): New.
1041 (start_scd): Put new local into list.
1042 (agent_reset_scd): Remove it from the list.
1043 (agent_scd_check_aliveness): Here is the actual reason why we need
1045 (agent_reset_scd): Send the new command RESTART instead of RESET.
1047 2005-12-16 Werner Koch <wk@g10code.com>
1049 * minip12.c (cram_octet_string): New
1050 (p12_parse): Use it for NDEFed bags.
1051 (parse_bag_data): Ditto.
1052 (string_to_key, set_key_iv, crypt_block): New arg SALTLEN.
1053 (p12_build): Use old value 8 for new arg.
1054 (parse_bag_encrypted_data, parse_bag_data): Allow for salts of 8
1055 to 16 bytes. Add new arg R_CONSUMED.
1057 2005-11-24 Werner Koch <wk@g10code.com>
1059 * minip12.c (p12_parse): Fixed for case that the key object comes
1060 prior to the certificate.
1062 2005-10-19 Werner Koch <wk@g10code.com>
1064 * divert-scd.c (getpin_cb): Hack to use it for a keypad message.
1066 * call-scd.c (inq_needpin): Reworked to support the new KEYPADINFO.
1068 * query.c (start_pinentry): Keep track of the owner.
1069 (popup_message_thread, agent_popup_message_start)
1070 (agent_popup_message_stop, agent_reset_query): New.
1071 * command.c (start_command_handler): Make sure a popup window gets
1074 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
1076 * Makefile.am (gpg_protect_tool_LDADD): Add ../gl/libgnu.a.
1077 (gpg_preset_passphrase_LDADD, t_common_ldadd): Likewise.
1078 (gpg_agent_LDADD): Add ../gl/libgnu.a after ../common/libcommon.a.
1080 2005-09-16 Werner Koch <wk@g10code.com>
1082 * minip12.c (build_key_sequence, build_cert_sequence): Fixed
1085 2005-09-15 Moritz Schulte <moritz@g10code.com>
1087 * t-protect.c (test_agent_protect): Implemented.
1088 (main): Disable use of secure memory.
1090 2005-09-09 Werner Koch <wk@g10code.com>
1092 * minip12.c (p12_build): Oops, array needs to be larger for the
1094 (build_cert_bag): Fixed yesterdays change.
1096 * command-ssh.c (card_key_available): Let the card handler decide
1097 whether the card is supported here. Also get a short serial
1098 number to return from the card handler.
1100 2005-09-08 Werner Koch <wk@g10code.com>
1102 * minip12.c (build_cert_bag): Use a non constructed object.
1103 i.e. 0x80 and not 0xa0.
1105 2005-08-16 Werner Koch <wk@g10code.com>
1107 * gpg-agent.c (main): Use a default file name for --write-env-file.
1109 2005-07-25 Werner Koch <wk@g10code.com>
1111 * findkey.c (agent_public_key_from_file): Fixed array assignment.
1112 This was the cause for random segvs.
1114 2005-06-29 Werner Koch <wk@g10code.com>
1116 * command-ssh.c (data_sign): Removed empty statement.
1118 2005-06-21 Werner Koch <wk@g10code.com>
1120 * minip12.c (create_final): Cast size_t to ulong for printf.
1121 (build_key_bag, build_cert_bag, build_cert_sequence): Ditto.
1123 2005-06-16 Werner Koch <wk@g10code.com>
1125 * protect-tool.c (make_advanced): Makde RESULT a plain char.
1126 * call-scd.c (unescape_status_string): Need to cast unsigned char*
1128 (agent_card_pksign): Made arg R_BUF an unsigned char**.
1129 * divert-scd.c (divert_pksign): Made SIGVAL unsigned char*.
1130 (encode_md_for_card): Initialize R_VAL and R_LEN.
1131 * genkey.c (store_key): Made BUF unsigned.
1132 * protect.c (do_encryption): Ditto.
1133 (do_encryption): Made arg PROTBEGIN unsigned. Initialize RESULT
1134 and RESULTLEN even on error.
1135 (merge_lists): Need to cast unsigned char * for strcpy. Initialize
1136 RESULTand RESULTLEN even on error.
1137 (agent_unprotect): Likewise for strtoul.
1138 (make_shadow_info): Made P and INFO plain char.
1139 (agent_shadow_key): Made P plain char.
1141 2005-06-15 Werner Koch <wk@g10code.com>
1143 * query.c (agent_get_passphrase): Made HEXSTRING a char*.
1144 * command-ssh.c (ssh_key_grip): Made arg BUFFER unsigned.
1145 (ssh_key_grip): Simplified.
1146 (data_sign): Initialize variables with the definition.
1147 (ssh_convert_key_to_blob): Make sure that BLOB and BLOB_SIZE
1148 are set to NULL on error. Cool, gcc-4 detects uninitialized stuff
1149 beyond function boundaries; well it can't know that we do error
1150 proper error handling so that this was not a real error.
1151 (file_to_buffer): Likewise for BUFFER and BUFFER_N.
1152 (data_sign): Likewise for SIG and SIG_N.
1153 (stream_read_byte): Set B to a value even on error.
1154 * command.c (cmd_genkey): Changed VALUE to char.
1155 (cmd_readkey): Cast arg for gcry_sexp_sprint.
1156 * agent.h (struct server_control_s): Made KEYGRIP unsigned.
1158 2005-06-13 Werner Koch <wk@g10code.com>
1160 * command-ssh.c (start_command_handler_ssh): Reset the SCD.
1162 2005-06-09 Werner Koch <wk@g10code.com>
1164 * gpg-agent.c (create_socket_name): New option --max-cache-ttl-ssh.
1165 * cache.c (housekeeping): Use it.
1166 (agent_put_cache): Use a switch to get the default ttl so that it
1167 is easier to add more cases.
1169 2005-06-06 Werner Koch <wk@g10code.com>
1171 * gpg-agent.c: New option --default-cache-ttl-ssh.
1172 * agent.h (cache_mode_t): New.
1173 * pksign.c (agent_pksign_do): New arg CACHE_MODE to replace the
1174 ARG IGNORE_CACHE. Changed all callers.
1175 (agent_pksign): Ditto.
1176 * findkey.c (agent_key_from_file): Ditto. Canged all callers.
1178 * command-ssh.c (data_sign): Use CACHE_MODE_SSH.
1179 * cache.c (agent_get_cache): New arg CACHE_MODE.
1180 (agent_put_cache): Ditto. Store it in the cache.
1182 * query.c (agent_query_dump_state, dump_mutex_state): New.
1183 (unlock_pinentry): Reset the global context before releasing the
1185 * gpg-agent.c (handle_signal): Dump query.c info on SIGUSR1.
1187 * call-scd.c (agent_scd_check_aliveness): Always do a waitpid and
1188 add a timeout to the locking.
1190 2005-06-03 Werner Koch <wk@g10code.com>
1192 * command.c (cmd_updatestartuptty): New.
1194 * gpg-agent.c: New option --write-env-file.
1196 * gpg-agent.c (handle_connections): Make sure that the signals we
1197 are handling are not blocked.Block signals while creating new
1200 2005-06-02 Werner Koch <wk@g10code.com>
1202 * call-scd.c (agent_scd_dump_state, dump_mutex_state): New.
1203 * gpg-agent.c (handle_signal): Print it on SIGUSR1.
1204 (handle_connections): Include the file descriptor into the
1207 2005-06-01 Werner Koch <wk@g10code.com>
1209 * gpg-agent.c: Include setenv.h.
1211 2005-05-31 Werner Koch <wk@g10code.com>
1213 * agent.h (out_of_core): s/__inline__/inine. Noted by Ray Link.
1215 2005-05-25 Werner Koch <wk@g10code.com>
1217 * gpg-agent.c (main): Do not unset the DISPLAY when we are
1218 continuing as child.
1220 2005-05-24 Werner Koch <wk@g10code.com>
1222 * call-scd.c (inq_needpin): Skip leading spaces in of PIN
1224 * divert-scd.c (getpin_cb): Enhanced to cope with description
1226 * query.c (agent_askpin): Add arg PROMPT_TEXT. Changed all
1229 2005-05-21 Werner Koch <wk@g10code.com>
1231 * call-scd.c (start_scd): Don't test for an alive scdaemon here.
1232 (agent_scd_check_aliveness): New.
1233 * gpg-agent.c (handle_tick): Test for an alive scdaemon.
1234 (handle_signal): Print thread info on SIGUSR1.
1236 2005-05-20 Werner Koch <wk@g10code.com>
1238 * protect-tool.c: New option --canonical.
1239 (show_file): Implement it.
1241 * keyformat.txt: Define the created-at attribute for keys.
1243 2005-05-18 Werner Koch <wk@g10code.com>
1245 * divert-scd.c (ask_for_card): Removed the card reset kludge.
1247 2005-05-17 Werner Koch <wk@g10code.com>
1249 * call-scd.c (unlock_scd): Add new arg CTRL. Changed all callers.
1250 (start_scd): Reoworked to allow for additional connections.
1251 * agent.h (ctrl_t): Add local data for the SCdaemon.
1252 * command.c (start_command_handler): Release SERVER_LOCAL.
1254 * gpg-agent.c (create_server_socket): Use xmalloc.
1255 (main): Removed option --disable-pth a dummy. Removed non-pth
1257 (cleanup_sh): Removed. Not needed anymore.
1259 2005-05-05 Moritz Schulte <moritz@g10code.com>
1261 * command-ssh.c (ssh_key_to_buffer): Rename to ...
1262 (ssh_key_to_protected_buffer): ... this; change callers.
1263 Improved documentation.
1264 Use ssh_key_grip(), where gcry_pk_get_keygrip() has been used
1266 (ssh_handler_sign_request): Removed unusued variable P.
1268 2005-04-20 Moritz Schulte <moritz@g10code.com>
1270 * command-ssh.c (ssh_handler_request_identities): Removed
1271 debugging code (sleep call), which was commited unintenionally.
1273 2005-04-20 Werner Koch <wk@g10code.com>
1275 * minip12.c (parse_bag_encrypted_data): Fix the unpadding hack.
1277 * gpg-agent.c: New option --disable-scdaemon.
1278 (handle_connections): Add time event to drive ...
1279 (handle_tick): New function.
1280 (main): Record the parent PID. Fixed segv when using ssh and a
1283 * call-scd.c (start_scd): Take care of this option.
1285 2005-04-03 Moritz Schulte <moritz@g10code.com>
1287 * command-ssh.c (ssh_request_spec): New member: secret_input.
1288 (REQUEST_SPEC_DEFINE): New argument: secret_input.
1289 (request_specs): Add secret_input flag.
1290 (request_spec_lookup): New function ...
1291 (ssh_request_process): ... use it here; depending on secret_input
1292 flag allocate secure or non-secure memory.
1294 2005-03-02 Moritz Schulte <moritz@g10code.com>
1296 * command-ssh.c (sexp_key_extract): Removed FIXME, since
1297 xtrymallos does set errno correctly by now.
1298 (sexp_extract_identifier): Remove const attribute from identifier.
1299 (ssh_handler_request_identities): Remove const attribute from
1300 key_type; removes ugly casts and FIXME.
1301 (sexp_key_extract): Remove const attribute from comment.
1302 (ssh_send_key_public): Remove const attribute from
1303 key_type/comment; removes ugly cast.
1304 (data_sign): Remove const attribute from identifier; removes ugly
1306 (key_secret_to_public): Remove const attribute from comment;
1308 (ssh_handler_sign_request): Remove const attribute from p.
1309 (sexp_key_extract): Use make_cstring().
1310 (ssh_key_extract_comment): Likewise.
1311 (ssh_key_to_buffer): Use secure memory for memory area to hold the
1313 Added more comments.
1315 2005-02-25 Werner Koch <wk@g10code.com>
1317 * findkey.c (modify_description): Keep invalid % escapes, so that
1318 %0A may pass through.
1320 * agent.h (server_control_s): New field USE_AUTH_CALL.
1321 * call-scd.c (agent_card_pksign): Make use of it.
1322 * command-ssh.c (data_sign): Set the flag.
1323 (ssh_send_key_public): New arg OVERRIDE_COMMENT.
1324 (card_key_available): Add new arg CARDSN.
1325 (ssh_handler_request_identities): Use the card s/n as comment.
1326 (sexp_key_extract): Use GCRYMPI_FMT_STD.
1329 * learncard.c (make_shadow_info): Moved to ..
1330 * protect.c (make_shadow_info): .. here. Return NULL on malloc
1331 failure. Made global.
1332 * agent.h: Add prototype.
1334 2005-02-24 Werner Koch <wk@g10code.com>
1336 * call-scd.c (unescape_status_string): New. Actual a copy of
1338 (card_getattr_cb, agent_card_getattr): New.
1340 * command-ssh.c (card_key_available): New.
1341 (ssh_handler_request_identities): First see whether a card key is
1344 * gpg-agent.c (handle_connections): Need to check for events if
1345 select returns with -1.
1347 2005-02-23 Werner Koch <wk@g10code.com>
1349 * command-ssh.c (get_passphrase): Removed.
1350 (ssh_identity_register): Partly rewritten.
1351 (open_control_file, search_control_file, add_control_entry): New.
1352 (ssh_handler_request_identities): Return only files listed in our
1355 * findkey.c (unprotect): Check for allocation error.
1357 * agent.h (opt): Add fields to record the startup terminal
1359 * gpg-agent.c (main): Record them and do not force keep display
1360 with --enable-ssh-support.
1361 * command-ssh.c (start_command_handler_ssh): Use them here.
1363 * gpg-agent.c: Renamed option --ssh-support to
1364 --enable-ssh-support.
1366 * command.c (cmd_readkey): New.
1367 (register_commands): Register new command "READKEY".
1369 * command-ssh.c (ssh_request_process): Improved logging.
1371 * findkey.c (agent_write_private_key): Always use plain open.
1372 Don't depend on an umask for permissions.
1373 (agent_key_from_file): Factored file reading code out to ..
1374 (read_key_file): .. new function.
1375 (agent_public_key_from_file): New.
1377 2005-02-22 Werner Koch <wk@g10code.com>
1379 * command-ssh.c (stream_read_string): Removed call to abort on
1380 memory error because the CVS version of libgcrypt makes sure
1381 that ERRNO gets always set on error even with a faulty user
1384 2005-02-19 Moritz Schulte <moritz@g10code.com>
1386 * command-ssh.c (ssh_receive_mpint_list): Slightly rewritten, do
1387 not use elems_secret member of key_spec.
1388 (ssh_key_type_spec): Removed member: elems_secret.
1389 (ssh_key_types): Removed elems_secret data.
1390 (ssh_sexp_construct): Renamed to ...
1391 (sexp_key_construct): ... this; changed callers.
1392 (ssh_sexp_extract): Renamed to ...
1393 (sexp_key_extract): ... this; changed callers.
1394 (ssh_sexp_extract_key_type): Renamed to ...
1395 (sexp_extract_identifier): ... this; changed callers; use
1397 Added more comments.
1399 2005-02-18 Moritz Schulte <moritz@g10code.com>
1401 * command-ssh.c (ssh_sexp_construct): Rewritten generation of sexp
1402 template, clarified.
1403 (ssh_sexp_extract): Support shadowed-private-key-sexp; treat
1404 protected-private key and shadowed-private-key as public keys.
1405 (key_secret_to_public): Rewritten: simply use ssh_sexp_extract()
1406 and ssh_sexp_construct().
1408 2005-02-15 Werner Koch <wk@g10code.com>
1410 * findkey.c (modify_description): Don't increment OUT_LEN during
1413 2005-02-14 Moritz Schulte <moritz@g10code.com>
1415 * command-ssh.c (es_read_byte): Renamed to ...
1416 (stream_es_read_byte): ... this; changed callers.
1417 (es_write_byte): Renamed to ...
1418 (stream_write_byte): ... this; changed callers.
1419 (es_read_uint32): Renamed to ...
1420 (stream_read_uint32): ... this; changed callers.
1421 (es_write_uint32): Renamed to ...
1422 (stream_write_uint32): ... this; changed callers.
1423 (es_read_data): Renamed to ...
1424 (stream_read_data): ... this; changed callers.
1425 (es_write_data): Renamed to ...
1426 (stream_write_data): ... this; changed callers.
1427 (es_read_string): Renamed to ...
1428 (stream_read_string): ... this; changed callers.
1429 (es_read_cstring): Renamed to ...
1430 (stream_read_cstring): ... this; changed callers.
1431 (es_write_string): Renamed to ...
1432 (stream_write_string): ... this; changed callers.
1433 (es_write_cstring): Renamed to ...
1434 (stream_write_cstring): ... this; changed callers.
1435 (es_read_mpi): Renamed to ...
1436 (stream_read_mpi): ... this; changed callers.
1437 (es_write_mpi): Renamed to ...
1438 (stream_write_mpi): ... this; changed callers.
1439 (es_copy): Renamed to ...
1440 (stream_copy): ... this; changed callers.
1441 (es_read_file): Renamed to ...
1442 (file_to_buffer): ... this; changed callers.
1443 (ssh_identity_register): Removed variable description_length;
1444 changed code to use asprintf for description.
1445 (stream_write_uint32): Do not filter out the last byte of shift
1447 (uint32_construct): New macro ...
1448 (stream_read_uint32): ... use it; removed unnecessary cast.
1450 2005-02-03 Werner Koch <wk@g10code.com>
1452 * agent.h (agent_exit): Add JNLIB_GCC_A_NR to indicate that this
1453 function won't return.
1455 * gpg-agent.c (check_for_running_agent): Initialize pid to a
1456 default value if not needed.
1458 * command-ssh.c: Removed stdint.h. s/byte_t/unsigned char/,
1459 s/uint32/u32/ becuase that is what we have always used in GnuPG.
1460 (ssh_request_specs): Moved to top of file.
1461 (ssh_key_types): Ditto.
1462 (make_cstring): Ditto.
1463 (data_sign): Don't use a variable for the passphrase prompt, make
1465 (ssh_request_process):
1468 * findkey.c (modify_description): Renamed arguments for clarity,
1469 polished documentation. Make comment a C-string. Fixed case of
1470 DESCRIPTION being just "%".
1471 (agent_key_from_file): Make sure comment string to a C-string.
1473 * gpg-agent.c (create_socket_name): Cleanup the implemntation, use
1474 DIMof, agent_exit, removed superflous args and return the
1475 allocated string as value. Documented. Changed callers.
1476 (create_server_socket): Cleanups similar to above. Changed callers.
1477 (cleanup_do): Renamed to ..
1478 (remove_socket): .. this. Changed caller.
1479 (handle_connections): The signals are to be handled in the select
1480 and not in the accept. Test all FDs after returning from a
1481 select. Remove the event tests from the accept calls. The select
1482 already assured that the accept won't block.
1484 2005-01-29 Moritz Schulte <moritz@g10code.com>
1486 * command-ssh.c (ssh_handler_request_identities)
1487 (ssh_handler_sign_request, ssh_handler_add_identity)
1488 (ssh_handler_remove_identity, ssh_handler_remove_all_identities)
1489 (ssh_handler_lock, ssh_handler_unlock): Changed to return an error
1490 code instead of a boolean.
1491 (ssh_request_process): Changed to return a boolean instead of an
1492 error; adjust caller.
1493 (ssh_request_handle_t): Adjusted type.
1494 (ssh_request_spec): New member: identifier.
1495 (REQUEST_SPEC_DEFINE): New macro; use it for initialization of
1497 (ssh_request_process): In debugging mode, log identifier of
1499 (start_command_handler_ssh): Moved most of the stream handling
1501 (ssh_request_process): ... here.
1503 2005-01-28 Moritz Schulte <moritz@g10code.com>
1505 * command-ssh.c (ssh_handler_add_identity): Pass ctrl to
1506 ssh_identity_register().
1507 (ssh_identity_register): New argument: ctrl; pass ctrl to
1509 (get_passphrase): Pass ctrl instead of NULL to agent_askpin().
1510 (start_command_handler_ssh): Use agent_init_default_ctrl();
1511 deallocate structure members, which might be dynamically
1513 (lifetime_default): Removed variable.
1514 (ssh_handler_add_identity): Fix ttl handling; renamed variable
1516 (ssh_identity_register): Fix key grip handling.
1518 2005-01-26 Moritz Schulte <moritz@g10code.com>
1520 * command-ssh.c (ssh_handler_sign_request): Confirm to agent
1521 protocol in case of failure.
1523 * command-ssh.c: New file.
1525 * Makefile.am (gpg_agent_SOURCES): New source file: command-ssh.c.
1527 * findkey.c (modify_description): New function.
1528 (agent_key_from_file): Support comment field in key s-expressions.
1530 * gpg-agent.c (enum cmd_and_opt_values): New item: oSSHSupport.
1531 (opts) New entry for oSSHSupport.
1532 New variable: socket_name_ssh.
1533 (cleanup_do): New function based on cleanup().
1534 (cleanup): Use cleanup_do() for socket_name and socket_name_ssh.
1535 (main): New switch case for oSSHSupport.
1536 (main): Move socket name creation code to ...
1537 (create_socket_name): ... this new function.
1538 (main): Use create_socket_name() for creating socket names for
1539 socket_name and for socket_name_ssh in case ssh support is
1541 Move socket creation code to ...
1542 (create_server_socket): ... this new function.
1543 (main): Use create_server_socket() for creating sockets.
1544 In case standard_socket is set, do not only store a socket name in
1545 socket_name, but also in socket_name_ssh.
1546 Generate additional environment info strings for ssh support.
1547 Pass additional ssh socket argument to handle_connections.
1548 (start_connection_thread_ssh): New function.
1549 (handle_connections): Use select to multiplex between gpg-agent
1550 and ssh-agent protocol.
1552 * agent.h (struct opt): New member: ssh_support.
1553 (start_command_handler_ssh): Add prototype.
1555 2005-01-04 Werner Koch <wk@g10code.com>
1557 * trustlist.c (agent_marktrusted): Use "Cancel" for the first
1558 confirmation and made the strings translatable.
1560 * cache.c (agent_put_cache): Fix the test for using the default
1563 2004-12-21 Werner Koch <wk@g10code.com>
1565 * preset-passphrase.c (preset_passphrase): Handle --passphrase.
1567 * Makefile.am (gpg_preset_passphrase_LDADD): Reorder libs so that
1568 pwquery may use stuff from jnlib. Conditionally add -lwsock2
1569 (gpg_protect_tool_LDADD): Ditto.
1571 * preset-passphrase.c (main): Use default_homedir().
1572 (main) [W32]: Initialize sockets.
1574 2004-12-21 Marcus Brinkmann <marcus@g10code.de>
1576 * Makefile.am (libexec_PROGRAMS): Add gpg-preset-passphrase.
1577 (gpg_preset_passphrase_SOURCES, gpg_preset_passphrase_LDADD): New
1579 * agent.h (opt): New member allow_cache_passphrase.
1580 * cache.c (housekeeping): Check if R->ttl is not negative.
1581 (agent_put_cache): Allow ttl to be negative.
1582 * command.c (parse_hexstring): Allow something to follow the
1584 (cmd_cache_passphrase): New function.
1585 (register_commands): Add it.
1586 * gpg-agent.c: Handle --allow-preset-passphrase.
1587 * preset-passphrase.c: New file.
1589 2004-12-21 Werner Koch <wk@g10code.com>
1591 * gpg-agent.c (main): Use default_homedir().
1592 * protect-tool.c (main): Ditto.
1594 2004-12-20 Werner Koch <wk@g10code.com>
1596 * gpg-agent.c (main) [W32]: Now that Mutexes work we can remove
1597 the pth_init kludge.
1598 (main): Add new options --[no-]use-standard-socket.
1599 (check_for_running_agent): Check whether it is running on the
1602 * call-scd.c (init_membuf, put_membuf, get_membuf): Removed. We
1603 now use the identical implementation from ../common/membuf.c.
1605 * pksign.c (agent_pksign): Changed arg OUTFP to OUTBUF and use
1606 membuf functions to return the value.
1607 * pkdecrypt.c (agent_pkdecrypt): Ditto.
1608 * genkey.c (agent_genkey): Ditto.
1609 * command.c (cmd_pksign, cmd_pkdecrypt, cmd_genkey): Replaced
1610 assuan_get_data_fp() by a the membuf scheme.
1611 (clear_outbuf, write_and_clear_outbuf): New.
1613 2004-12-19 Werner Koch <wk@g10code.com>
1615 * query.c (initialize_module_query): New.
1616 * call-scd.c (initialize_module_call_scd): New.
1617 * gpg-agent.c (main): Call them.
1619 2004-12-18 Werner Koch <wk@g10code.com>
1621 * gpg-agent.c (main): Remove special Pth initialize.
1623 * agent.h (map_assuan_err): Define in terms of
1624 map_assuan_err_with_source.
1626 2004-12-17 Moritz Schulte <moritz@g10code.com>
1628 * query.c: Undo change from 2004-12-05.
1630 2004-12-15 Werner Koch <wk@g10code.com>
1632 * gpg-agent.c [W32]: Various hacks to make it work.
1634 * findkey.c (agent_write_private_key) [W32]: Adjust open call.
1636 * call-scd.c (start_scd) [W32]: Don't check whether the daemon
1637 didn't died. To hard to do under Windows.
1638 (start_scd) [W32]: Disable sending of the event signal option.
1640 * protect-tool.c (read_file, export_p12_file) [W32]: Use setmode
1641 to get stdout and stin into binary mode.
1643 2004-12-05 Moritz Schulte <moritz@g10code.com>
1645 * query.c (start_pinentry): Allow CTRL be NULL.
1647 2004-10-22 Werner Koch <wk@g10code.com>
1649 * gpg-agent.c (parse_rereadable_options): Return "not handled"
1650 when the log file has not beend hadled. This is will let the main
1651 option processing continue. Fixed a bug introduced on 2004-09-4
1652 resulting in logging to stderr until a HUP has been given.
1653 (main): Don't close the listen FD.
1655 2004-09-30 Werner Koch <wk@g10code.com>
1657 * Makefile.am: Adjusted from gettext 1.14.
1659 2004-09-29 Werner Koch <wk@g10code.com>
1661 * minip12.c (parse_bag_encrypted_data): Print error if a bad
1662 passphrase has been given.
1664 2004-09-28 Werner Koch <wk@g10code.com>
1666 * protect.c (agent_unprotect): Fixed wiping of CLEARTEXT. Thanks
1667 to Moritz for pointing this out.
1669 2004-09-25 Moritz Schulte <moritz@g10code.com>
1671 * agent.h: Declare: agent_pksign_do.
1672 (struct server_control_s): New member: raw_value.
1674 * pksign.c (do_encode_md): New argument: raw_value; support
1675 generation of raw (non-pkcs1) data objects; adjust callers.
1676 (agent_pksign_do): New function, based on code ripped
1677 out from agent_pksign.
1678 (agent_pksign): Use agent_pksign_do.
1680 * command.c (start_command_handler): Set ctrl.digest.raw_value.
1682 2004-09-09 Werner Koch <wk@g10code.de>
1684 * gpg-agent.c (check_for_running_agent): New.
1685 (main): The default action is now to check for an already running
1687 (parse_rereadable_options): Set logfile only on reread.
1688 (main): Do not print the "is development version" note.
1690 2004-08-20 Werner Koch <wk@g10code.de>
1692 * gpg-agent.c: New option --max-cache-ttl. Suggested by Alexander
1694 * cache.c (housekeeping): Use it here instead of the hardwired
1697 * query.c (start_pinentry): Use a timeout for the pinentry lock.
1699 2004-08-18 Werner Koch <wk@g10code.de>
1701 * protect-tool.c (get_passphrase): Make sure that the default
1702 prompts passed to gpg-agent are utf-8 encoded. Add new prompt values.
1703 (import_p12_file, import_p12_file, export_p12_file): Changed calls
1704 to get_passphrase so that better prompts are displayed.
1705 (get_new_passphrase): New.
1707 2004-07-22 Werner Koch <wk@g10code.de>
1709 * trustlist.c (read_list): Allow colons in the fingerprint.
1710 (headerblurb): Rephrased.
1712 * gpg-agent.c (handle_connections): Increase the stack size ot 256k.
1714 2004-06-20 Moritz Schulte <moritz@g10code.com>
1716 * gpg-agent.c: Include <sys/stat.h> (build fix for BSD).
1718 2004-05-11 Werner Koch <wk@gnupg.org>
1720 * gpg-agent.c (handle_signal): Reload the trustlist on SIGHUP.
1721 (start_connection_thread): Hack to simulate a ticker.
1722 * trustlist.c (agent_trustlist_housekeeping)
1723 (agent_reload_trustlist): New. Protected all global functions
1724 here with a simple counter which is sufficient for Pth.
1726 2004-05-03 Werner Koch <wk@gnupg.org>
1728 * gpg-agent.c: Remove help texts for options lile --lc-ctype.
1729 (main): New option --allow-mark-trusted.
1730 * trustlist.c (agent_marktrusted): Use it here.
1732 2004-04-30 Werner Koch <wk@gnupg.org>
1734 * protect-tool.c: New option --enable-status-msg.
1735 (store_private_key): Print status messages for imported keys.
1736 (read_and_unprotect): Ditto for bad passphrase.
1738 * gpg-agent.c (parse_rereadable_options): New arg REREAD. Allow
1740 (current_logfile): New.
1742 2004-04-26 Werner Koch <wk@gnupg.org>
1744 * call-scd.c (start_scd): Do not register an event signal if we
1745 are running as a pipe server.
1747 2004-04-21 Werner Koch <wk@gnupg.org>
1749 * call-scd.c (start_scd): Send event-signal option. Always check
1750 that the scdaemon is still running.
1752 * gpg-agent.c (handle_signal): Do not use SIGUSR{1,2} anymore for
1753 changing the verbosity.
1755 2004-04-16 Werner Koch <wk@gnupg.org>
1757 * gpg-agent.c (main): Tell the logging code that we are running
1760 2004-04-06 Werner Koch <wk@gnupg.org>
1762 * gpg-agent.c (main): Use new libgcrypt thread library register
1765 2004-03-23 Marcus Brinkmann <marcus@g10code.de>
1767 * gpg-agent.c (main): For now, always print the default config
1768 file name for --gpgconf-list.
1770 2004-03-17 Werner Koch <wk@gnupg.org>
1772 * gpg-agent.c (main) <gpgconf>: Fixed default value quoting.
1774 2004-03-16 Werner Koch <wk@gnupg.org>
1776 * gpg-agent.c (parse_rereadable_options): Use the new
1777 DEFAULT_CACHE_TTL macro.
1778 (main): Updated --gpgconf-list output.
1780 2004-02-21 Werner Koch <wk@gnupg.org>
1782 * command.c (cmd_passwd): Take acount of a key description.
1784 * genkey.c (reenter_compare_cb): Do not set the error text.
1785 (agent_protect_and_store, agent_genkey): Force a re-enter after a
1786 non-matching passphrase.
1787 * query.c (agent_askpin): Add new arg INITIAL_ERRTEXT; changed
1790 2004-02-19 Werner Koch <wk@gnupg.org>
1792 * protect-tool.c: New options --have-cert and --prompt.
1793 (export_p12_file): Read a certificate from STDIN and pass it to
1794 p12_build. Detect a keygrip and construct the filename in that
1795 case. Unprotcet a key if needed. Print error messages for key
1796 formats we can't handle.
1797 (release_passphrase): New.
1798 (get_passphrase): New arg PROMPTNO. Return the allocated
1799 string. Changed all callers.
1801 * minip12.c: Revamped the build part.
1802 (p12_build): New args CERT and CERTLEN.
1804 2004-02-18 Werner Koch <wk@gnupg.org>
1806 * protect-tool.c (main): Setup the used character set.
1807 * gpg-agent.c (main): Ditto.
1809 * gpg-agent.c (set_debug): New. New option --debug-level.
1810 (main): New option --gpgconf-list.
1812 2004-02-17 Werner Koch <wk@gnupg.org>
1814 * pksign.c (do_encode_md): Cleaned up by using gcry_sexp_build.
1816 * Makefile.am (gpg_protect_tool_SOURCES): Removed
1817 simple-pwquery.[ch], as we once moved it to ../common.
1819 2004-02-13 Werner Koch <wk@gnupg.org>
1821 * command.c (cmd_setkeydesc): New.
1822 (register_commands): Add command SETKEYDESC.
1823 (cmd_pksign, cmd_pkdecrypt): Use the key description.
1824 (reset_notify): Reset the description.
1825 * findkey.c (unprotect): Add arg DESC_TEXT.
1826 (agent_key_from_file): Ditto.
1827 * pksign.c (agent_pksign): Ditto.
1828 * pkdecrypt.c (agent_pkdecrypt): Ditto. Made CIPHERTEXT an
1831 * protect-tool.c (main): New options --no-fail-on-exist, --homedir.
1832 (store_private_key): Use them here.
1834 2004-02-12 Werner Koch <wk@gnupg.org>
1836 * protect-tool.c (read_file, main): Allow reading from stdin.
1838 * Makefile.am: Include cmacros.am for common flags.
1839 (libexec_PROGRAMS): Put gpg-protect-tool there.
1841 2004-02-10 Werner Koch <wk@gnupg.org>
1843 * minip12.c (parse_bag_encrypted_data): Finished implementation.
1844 (p12_parse): Add callback args.
1845 * protect-tool.c (import_p12_cert_cb): New.
1846 (import_p12_file): Use it.
1848 2004-02-06 Werner Koch <wk@gnupg.org>
1850 * minip12.c (crypt_block): Add arg CIPHER_ALGO; changed all callers.
1851 (set_key_iv): Add arg KEYBYTES; changed caller.
1853 2004-02-03 Werner Koch <wk@gnupg.org>
1855 * findkey.c (agent_key_from_file): Extra paranoid wipe.
1856 * protect.c (agent_unprotect): Ditto.
1857 (merge_lists): Ditto. Add arg RESULTLEN.
1858 * pkdecrypt.c (agent_pkdecrypt): Don't show the secret key even in
1861 * protect.c: Add DSA and Elgamal description.
1863 2004-01-29 Werner Koch <wk@gnupg.org>
1865 * agent.h (server_control_s): Add connection_fd field.
1866 * command.c (start_command_handler): Init it here.
1867 * gpg-agent.c (agent_init_default_ctrl): and here.
1868 * call-scd.c: Add the CTRL arg to all functions calling start_scd
1869 and pass it to start_scd. Changed all callers
1870 (start_scd): Keep track of the current active connection.
1871 (agent_reset_scd): New.
1872 * command.c (start_command_handler): Call it here.
1873 * learncard.c (agent_handle_learn): Add arg CTRL; changed caller.
1874 (send_cert_back): Ditto.
1876 2004-01-28 Werner Koch <wk@gnupg.org>
1878 * trustlist.c (agent_marktrusted): Check whether the trustlist is
1881 2004-01-27 Werner Koch <wk@gnupg.org>
1883 * sexp-parse.h: Moved to ../common.
1885 2004-01-24 Werner Koch <wk@gnupg.org>
1887 * call-scd.c (atfork_cb): New.
1888 (start_scd): Make sure secmem gets cleared.
1889 * query.c (atfork_cb): New.
1890 (start_pinentry): Make sure secmem gets cleared.
1892 2004-01-16 Werner Koch <wk@gnupg.org>
1894 * findkey.c (agent_key_from_file): Now return an error code so
1895 that we have more detailed error messages in the upper layers.
1896 This fixes the handling of pinentry's cancel button.
1897 * pksign.c (agent_pksign): Changed accordingly.
1898 * pkdecrypt.c (agent_pkdecrypt): Ditto.
1899 * command.c (cmd_passwd): Ditto.
1901 2003-12-16 Werner Koch <wk@gnupg.org>
1903 * gpg-agent.c (main): Set the prefixes for assuan logging.
1905 2003-12-15 Werner Koch <wk@gnupg.org>
1907 * protect.c (do_encryption): Use gcry_create_nonce instad of the
1908 obsolete WEAK_RANDOM.
1910 2003-11-20 Werner Koch <wk@gnupg.org>
1912 * sexp-parse.h (snext): Don't use atoi_1 and digitp macros, so
1913 that this file is useful by other applications too.
1915 2003-10-27 Werner Koch <wk@gnupg.org>
1917 * command.c (cmd_get_confirmation): New command.
1919 2003-08-20 Timo Schulz <twoaday@freakmail.de>
1921 * pksign.c (do_encode_md): Allocate enough space. Cast md
1922 byte to unsigned char to prevent sign extension.
1924 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1926 * pksign.c (do_encode_md): Due to the fact pkcs#1 padding
1927 is now in Libgcrypt, use the new interface.
1929 2003-07-31 Werner Koch <wk@gnupg.org>
1931 * Makefile.am (gpg_agent_LDADD): Added INTLLIBS.
1932 (gpg_protect_tool_SOURCES): Added simple-pwquery.[ch]
1934 2003-07-27 Werner Koch <wk@gnupg.org>
1936 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1938 2003-07-15 Werner Koch <wk@gnupg.org>
1940 * simple-pwquery.c, simple-pwquery.h: Moved to ../common.
1941 * Makefile.am (gpg_protect_tool_LDADD): Add simple-pwquery.o.
1942 Removed it from xx_SOURCES.
1944 2003-07-04 Werner Koch <wk@gnupg.org>
1946 * gpg-agent.c (handle_connections): Kludge to allow use of Pth 1
1949 2003-06-30 Werner Koch <wk@gnupg.org>
1951 * call-scd.c (learn_status_cb): Store the serialno in PARM.
1953 2003-06-26 Werner Koch <wk@gnupg.org>
1955 * call-scd.c (agent_card_serialno): Don't do a RESET anymore.
1957 2003-06-25 Werner Koch <wk@gnupg.org>
1959 * command.c (cmd_scd): New.
1960 * call-scd.c (agent_card_scd): New.
1961 * divert-scd.c (divert_generic_cmd): New
1963 * call-scd.c (agent_card_learn): New callback args SINFO.
1964 (learn_status_cb): Pass all other status lines to the sinfo
1966 * learncard.c (release_sinfo, sinfo_cb): New.
1967 (agent_handle_learn): Pass the new cb to the learn function and
1968 pass the collected information back to the client's assuan
1971 * gpg-agent.c (main): Moved pth_init before gcry_check_version.
1973 2003-06-24 Werner Koch <wk@gnupg.org>
1975 * gpg-agent.c (handle_connections): Adjusted for Pth 2.0
1977 Adjusted for changes in the libgcrypt API. Some more fixes for the
1980 2003-06-04 Werner Koch <wk@gnupg.org>
1982 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1984 2003-06-03 Werner Koch <wk@gnupg.org>
1986 Changed all error codes in all files to the new libgpg-error scheme.
1988 * agent.h: Include gpg-error.h and errno.h
1989 * Makefile.am: Link with libgpg-error
1991 * query.c: assuan.h is now a system header.
1992 * genkey.c (agent_genkey): Fixed silly use of xmalloc by
1995 2003-04-29 Werner Koch <wk@gnupg.org>
1997 * command.c (register_commands): Adjusted for new Assuan semantics.
1999 * Makefile.am: Don't override LDFLAGS.
2001 2002-12-04 Werner Koch <wk@gnupg.org>
2003 * gpg-agent.c: New variable config_filename.
2004 (parse_rereadable_options): New.
2005 (main): Use it here. Add setting of default values, set
2007 (reread_configuration): Filled with actual code.
2009 2002-12-03 Werner Koch <wk@gnupg.org>
2011 * protect-tool.c (read_key): Don't run make_canonical on a NULL
2014 * command.c (parse_hexstring): New.
2015 (cmd_sethash): Use it.
2016 (parse_keygrip): New.
2017 (cmd_havekey, cmd_sigkey): Use it.
2019 * genkey.c (agent_protect_and_store): New.
2020 (store_key): Add arg FORCE.
2021 (agent_genkey): Pass false to this force of store_key.
2023 2002-11-13 Werner Koch <wk@gnupg.org>
2025 * gpg-agent.c (main): Switch all messages to utf-8.
2027 * simple-pwquery.c (agent_send_all_options): Use $GPG_TTY and
2030 * cache.c (new_data): Uiih - /sizeof d/sizeof *d/.
2032 2002-11-10 Werner Koch <wk@gnupg.org>
2034 * command.c (option_handler): Fix keep_tty check.
2036 2002-11-06 Werner Koch <wk@gnupg.org>
2038 * gpg-agent.c (main): Make sure we have a default ttyname.
2039 * command.c (option_handler): Check opt.keep_tty here
2040 * query.c (start_pinentry): but not anymore here.
2042 2002-11-05 Werner Koch <wk@gnupg.org>
2044 * agent.h (opt,server_control_s): Move display and lc_ variables
2045 to the control struct so that they are per connection.
2046 * gpg-agent.c (agent_init_default_ctrl): New.
2047 (main): Assign those command line options to new default_* variables.
2048 Reset DISPLAY in server mode so that tehre is no implicit default.
2049 * command.c (start_command_handler): Initialize and deinitialize
2051 (option_handler): Work on the ctrl values and not on the opt.
2052 * query.c (start_pinentry): New argument CTRL to set the display
2053 connection specific. Changed all callers to pass this value.
2054 (agent_askpin,agent_get_passphrase,agent_get_confirmation): Add
2055 CTRL arg and pass it ot start_pinentry.
2056 * command.c (cmd_get_passphrase): Pass CTRL argument.
2057 * trustlist.c (agent_marktrusted): Add CTRL argument
2058 * command.c (cmd_marktrusted): Pass CTRL argument
2059 * divert-scd.c (ask_for_card): Add CTRL arg.
2060 (divert_pksign,divert_pkdecrypt): Ditto. Changed caller.
2061 (getpin_cb): Use OPAQUE to pass the CTRL variable. Changed both
2063 * findkey.c (unprotect): Add CTRL arg.
2064 (agent_key_from_file): Ditto.
2066 * query.c (unlock_pinentry): Disconnect the pinentry so that we
2067 start a new one for each request. This is required to support
2068 clients with different environments (e.g. X magic cookies).
2070 2002-09-05 Neal H. Walfield <neal@cs.uml.edu>
2072 * gpg-agent.c (main) [USE_GNU_PTH]: No need to call
2073 assuan_set_io_func as assuan is smart.
2075 2002-09-25 Werner Koch <wk@gnupg.org>
2077 * gpg-agent.c (handle_signal): Flush cache on SIGHUP.
2078 * cache.c (agent_flush_cache): New.
2080 * gpg-agent.c, agent.h: Add --keep-display and --keep-tty.
2081 * query.c (start_pinentry): Implement them. The option passing
2082 needs more thoughts.
2084 2002-09-09 Werner Koch <wk@gnupg.org>
2086 * gpg-agent.c (create_private_keys_directory)
2087 (create_directories): New.
2088 (main): Try to create a home directory.
2090 2002-09-04 Neal H. Walfield <neal@g10code.de>
2092 * gpg-agent.c (main): Use sigaction, not signal.
2094 2002-09-03 Neal H. Walfield <neal@g10code.de>
2096 * findkey.c: Include <fcntl.h>.
2097 (agent_write_private_key): Prefer POSIX compatibity, open and
2098 fdopen, over the simplicity of GNU extensions, fopen(file, "x").
2100 2002-08-22 Werner Koch <wk@gnupg.org>
2102 * query.c (agent_askpin): Provide the default desc text depending
2103 on the pininfo. Do the basic PIN verification only when
2106 2002-08-21 Werner Koch <wk@gnupg.org>
2108 * query.c (agent_askpin): Hack to show the right default prompt.
2109 (agent_get_passphrase): Ditto.
2111 * trans.c: Removed and replaced all usages with standard _()
2113 * divert-scd.c (getpin_cb): Pass a more descritive text to the
2116 * Makefile.am: Renamed the binary protect-tool to gpg-protect-tool.
2117 * protect-tool.c: Removed the note about internal use only.
2119 * gpg-agent.c (main): New option --daemon so that the program is
2120 not accidently started in the background.
2122 2002-08-16 Werner Koch <wk@gnupg.org>
2124 * call-scd.c (learn_status_cb): Handle CERTINFO status.
2125 (agent_card_learn): Add args for certinfo cb.
2126 * learncard.c (release_certinfo,certinfo_cb): New.
2127 (send_cert_back): New. With factored out code from ..
2128 (agent_handle_learn): here. Return certinfo stuff.
2130 2002-07-26 Werner Koch <wk@gnupg.org>
2132 * gpg-agent.c (main): New option --ignore-cache-for-signing.
2133 * command.c (option_handler): New server option
2134 use-cache-for-signing defaulting to true.
2135 (cmd_pksign): handle global and per session option.
2136 * findkey.c (agent_key_from_file, unprotect): New arg
2137 ignore_cache. Changed all callers.
2138 * pksign.c (agent_pksign): Likewise.
2140 2002-06-29 Werner Koch <wk@gnupg.org>
2142 * query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY.
2143 * call-scd.c (start_scd): Use GNUPG_DEFAULT_SCDAEMON.
2145 2002-06-28 Werner Koch <wk@gnupg.org>
2147 * protect-tool.c (export_p12_file): New.
2148 (main): New command --p12-export.
2149 * minip12.c (create_final,p12_build,compute_tag_length): New.
2150 (store_tag_length): New.
2152 2002-06-27 Werner Koch <wk@gnupg.org>
2154 * minip12.c (crypt_block): Renamed from decrypt_block, add arg to
2157 * Makefile.am (pkglib_PROGRAMS): Put protect-tool there.
2159 * findkey.c (agent_write_private_key,agent_key_from_file)
2160 (agent_key_available): Use GNUPG_PRIVATE_KEYS_DIR constant.
2161 * gpg-agent.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
2163 * protect-tool.c (store_private_key): New.
2164 (import_p12_file): Store the new file if requested.
2165 (main): New options --force and --store.
2167 * gpg-agent.c (main): Set a global flag when running detached.
2168 * query.c (start_pinentry): Pass the list of FD to keep in the
2169 child when not running detached.
2170 * call-scd.c (start_scd): Ditto.
2172 2002-06-26 Werner Koch <wk@gnupg.org>
2174 * command.c (cmd_istrusted, cmd_listtrusted, cmd_marktrusted)
2175 (cmd_pksign, cmd_pkdecrypt, cmd_genkey, cmd_get_passphrase)
2176 (cmd_learn): Print an error message for a failed operation.
2178 * simple-pwquery.c, simple-pwquery.h: New.
2179 * protect-tool. (get_passphrase): New, used to get a passphrase
2180 from the agent if none was given on the command line.
2182 2002-06-25 Werner Koch <wk@gnupg.org>
2184 * protect-tool.c (rsa_key_check): New.
2185 (import_p12_file): New.
2186 (main): New command --p12-import.
2187 * minip12.c, minip12.h: New.
2189 2002-06-24 Werner Koch <wk@gnupg.org>
2191 * protect-tool.c (read_file): New.
2192 (read_key): Factored most code out to read_file.
2194 2002-06-17 Werner Koch <wk@gnupg.org>
2196 * agent.h: Add a callback function to the pin_entry_info structure.
2197 * query.c (agent_askpin): Use the callback to check for a correct
2198 PIN. Removed the start_err_text argument because it is not
2199 anymore needed; changed callers.
2200 * findkey.c (unprotect): Replace our own check loop by a callback.
2201 (try_unprotect_cb): New.
2202 * genkey.c (reenter_compare_cb): New.
2203 (agent_genkey): Use this callback here. Fixed setting of the pi2
2204 variable and a segv in case of an empty PIN.
2206 * divert-scd.c (getpin_cb): Removed some unused stuff and
2207 explained what we still have to change.
2209 2002-06-12 Werner Koch <wk@gnupg.org>
2211 * gpg-agent.c (main): New option --disable-pth.
2213 2002-06-11 Werner Koch <wk@gnupg.org>
2215 * protect-tool.c: Add command --show-keygrip
2216 (show_keygrip): New.
2218 2002-05-23 Werner Koch <wk@gnupg.org>
2220 * call-scd.c: Seirialized all scdaeom access when using Pth.
2222 * cache.c: Made the cache Pth-thread-safe.
2223 (agent_unlock_cache_entry): New.
2224 * findkey.c (unprotect): Unlock the returned cache value.
2225 * command.c (cmd_get_passphrase): Ditto.
2227 * gpg-agent.c (main): Register pth_read/write with Assuan.
2229 2002-05-22 Werner Koch <wk@gnupg.org>
2231 * query.c: Serialized all pinentry access when using Pth.
2233 * gpg-agent.c (handle_signal,start_connection_thread)
2234 (handle_connections): New
2235 (main): Use the new Pth stuff to allow concurrent connections.
2236 * command.c (start_command_handler): Add new arg FD so that the
2237 fucntion can also be used for an already connected socket.
2238 * Makefile.am: Link with Pth.
2240 2002-05-14 Werner Koch <wk@gnupg.org>
2242 * cache.c (housekeeping, agent_put_cache): Use our time() wrapper.
2244 2002-04-26 Werner Koch <wk@gnupg.org>
2246 * cache.c (agent_put_cache): Reinitialize the creation time and
2247 the ttl when reusing a slot.
2249 * call-scd.c (start_scd): Print debug messages only with debug
2251 * query.c (start_pinentry): Ditto.
2253 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2255 * agent.h (agent_get_confirmation): Replace paramter prompt with
2256 two parameters ok and cancel.
2257 * query.c (agent_get_confirmation): Likewise. Implement this.
2258 * trustlist.c (agent_marktrusted): Fix invocation of
2259 agent_get_confirmation.
2260 * divert-scd.c (ask_for_card): Likewise.
2262 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
2264 * agent.h (struct opt): Add members display, ttyname, ttytype,
2265 lc_ctype, and lc_messages.
2266 * gpg-agent.c (enum cmd_and_opt_values): Add oDisplay, oTTYname,
2267 oTTYtype, oLCctype, and LCmessages.
2268 (main): Handle these options.
2269 * command.c (option_handler): New function.
2270 (register_commands): Register option handler.
2271 * query.c (start_pinentry): Pass the various display and tty
2272 options to the pinentry.
2274 2002-04-05 Werner Koch <wk@gnupg.org>
2276 * protect-tool.c (show_file): New. Used as default action.
2278 2002-03-28 Werner Koch <wk@gnupg.org>
2280 * divert-scd.c (encode_md_for_card): Don't do the pkcs-1 padding,
2281 the scdaemon should take care of it.
2282 (ask_for_card): Hack to not display the trailing zero.
2284 2002-03-11 Werner Koch <wk@gnupg.org>
2286 * learncard.c (kpinfo_cb): Remove the content restrictions from
2289 2002-03-06 Werner Koch <wk@gnupg.org>
2292 * divert-scd.c (ask_for_card): The serial number is binary so
2293 convert it to hex here.
2294 * findkey.c (agent_write_private_key): New.
2295 * genkey.c (store_key): And use it here.
2297 * pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done.
2298 * divert-scd.c (divert_pkdecrypt): Changed interface and
2301 2002-03-05 Werner Koch <wk@gnupg.org>
2303 * call-scd.c (inq_needpin): New.
2304 (agent_card_pksign): Add getpin_cb args.
2305 (agent_card_pkdecrypt): New.
2307 2002-03-04 Werner Koch <wk@gnupg.org>
2309 * pksign.c (agent_pksign): Changed how the diversion is done.
2310 * divert-scd.c (divert_pksign): Changed interface and implemented it.
2311 (encode_md_for_card): New.
2312 * call-scd.c (agent_card_pksign): New.
2314 2002-02-28 Werner Koch <wk@gnupg.org>
2316 * pksign.c (agent_pksign): Detect whether a Smartcard is to be
2317 used and divert the operation in this case.
2318 * pkdecrypt.c (agent_pkdecrypt): Likewise
2319 * findkey.c (agent_key_from_file): Add optional arg shadow_info
2320 and have it return information about a shadowed key.
2321 * protect.c (agent_get_shadow_info): New.
2323 * protect.c (snext,sskip,smatch): Moved to
2324 * sexp-parse.h: New file.
2325 * divert-scd.c: New.
2327 2002-02-27 Werner Koch <wk@gnupg.org>
2329 * protect.c (agent_shadow_key): New.
2331 * command.c (cmd_learn): New command LEARN.
2332 * gpg-agent.c: New option --scdaemon-program.
2333 * call-scd.c (start_scd): New. Based on query.c
2334 * query.c: Add 2 more arguments to all uses of assuan_transact.
2336 2002-02-18 Werner Koch <wk@gnupg.org>
2338 * findkey.c (unprotect): Show an error message for a bad passphrase.
2340 * command.c (cmd_marktrusted): Implemented.
2341 * trustlist.c (agent_marktrusted): New.
2342 (open_list): Add APPEND arg.
2344 * query.c (agent_get_confirmation): New.
2346 2002-02-06 Werner Koch <wk@gnupg.org>
2348 * cache.c (housekeeping): Fixed linking in the remove case.
2350 2002-02-01 Werner Koch <wk@gnupg.org>
2352 * gpg-agent.c: New option --default-cache-ttl.
2353 * cache.c (agent_put_cache): Use it.
2355 * cache.c: Add a few debug outputs.
2357 * protect.c (agent_private_key_type): New.
2358 * agent.h: Add PRIVATE_KEY_ enums.
2359 * findkey.c (agent_key_from_file): Use it to decide whether we
2360 have to unprotect a key.
2361 (unprotect): Cache the passphrase.
2363 * findkey.c (agent_key_from_file,agent_key_available): The key
2364 files do now require a ".key" suffix to make a script's life
2366 * genkey.c (store_key): Ditto.
2368 2002-01-31 Werner Koch <wk@gnupg.org>
2370 * genkey.c (store_key): Protect the key.
2371 (agent_genkey): Ask for the passphrase.
2372 * findkey.c (unprotect): Actually unprotect the key.
2373 * query.c (agent_askpin): Add an optional start_err_text.
2375 2002-01-30 Werner Koch <wk@gnupg.org>
2378 (hash_passphrase): Based on the GnuPG 1.0.6 version.
2379 * protect-tool.c: New
2381 2002-01-29 Werner Koch <wk@gnupg.org>
2383 * findkey.c (agent_key_available): New.
2384 * command.c (cmd_havekey): New.
2385 (register_commands): And register new command.
2387 2002-01-20 Werner Koch <wk@gnupg.org>
2389 * command.c (cmd_get_passphrase): Remove the plus signs.
2391 * query.c (start_pinentry): Send no-grab option to pinentry
2392 * gpg-agent.c (main): Move variable grab as no_grab to agent.h.
2394 2002-01-19 Werner Koch <wk@gnupg.org>
2396 * gpg-agent.c (main): Disable core dumps.
2399 * command.c (cmd_get_passphrase): Use the cache.
2400 (cmd_clear_passphrase): Ditto.
2402 * gpg-agent.c: Removed unused cruft and implement the socket
2404 (my_strusage): Take bug report address from configure.ac.
2405 * command.c (start_command_handler): Add an argument to start as
2407 (start_command_handler): Enable Assuan logging.
2409 2002-01-15 Werner Koch <wk@gnupg.org>
2412 * command.c (cmd_istrusted, cmd_listtrusted, cmd_marktrusted): New.
2414 2002-01-07 Werner Koch <wk@gnupg.org>
2416 * genkey.c: Store the secret part and return the public part.
2418 2002-01-03 Werner Koch <wk@gnupg.org>
2420 * command.c (cmd_get_passphrase): New.
2421 (cmd_clear_passphrase): New.
2422 * query.c (agent_get_passphrase): New.
2424 2002-01-02 Werner Koch <wk@gnupg.org>
2427 * command.c (cmd_genkey): New.
2429 * command.c (rc_to_assuan_status): Removed and changed all callers
2430 to use map_to_assuan_status.
2432 2001-12-19 Werner Koch <wk@gnupg.org>
2434 * keyformat.txt: New.
2436 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2438 * query.c (start_pinentry): Add new argument to assuan_pipe_connect.
2440 2001-12-18 Werner Koch <wk@gnupg.org>
2442 * Makefile.am: Use LIBGCRYPT macros
2444 2001-12-14 Werner Koch <wk@gnupg.org>
2446 * gpg-agent.c (main): New option --batch. New option --debug-wait
2447 n, so that it is possible to attach gdb when used in server mode.
2448 * query.c (agent_askpin): Don't ask in batch mode.
2450 * command.c: Removed the conversion macros as they are now in
2453 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2455 * query.c (LINELENGTH): Removed.
2456 (agent_askpin): Use ASSUAN_LINELENGTH, not LINELENGTH.
2458 2001-11-19 Werner Koch <wk@gnupg.org>
2460 * gpg-agent.c: Removed all GUI code, removed code for old
2461 protocol. New code to use the Assuan protocol as a server and
2462 also to communicate with a new ask-passphrase utility.
2464 2000-11-22 Werner Koch <wk@gnupg.org>
2466 * gpg-agent.c (main): csh support by Dan Winship, new options --sh
2467 and --csh and set default by consulting $SHELL.
2469 Mon Aug 21 17:59:17 CEST 2000 Werner Koch <wk@openit.de>
2471 * gpg-agent.c (passphrase_dialog): Cleanup the window and added the
2472 user supplied text to the window.
2473 (main): Fixed segv in gtk_init when used without a command to start.
2475 * gpg-agent.c: --flush option.
2477 (req_clear_passphrase): Implemented.
2479 Fri Aug 18 14:27:14 CEST 2000 Werner Koch <wk@openit.de>
2485 Copyright 2001, 2002, 2003, 2004, 2005,
2486 2007, 2008, 2009 Free Software Foundation, Inc.
2488 This file is free software; as a special exception the author gives
2489 unlimited permission to copy and/or distribute it, with or without
2490 modifications, as long as this notice is preserved.
2492 This file is distributed in the hope that it will be useful, but
2493 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2494 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.