1 2009-11-04 Werner Koch <wk@g10code.com>
3 * command.c (register_commands): Add help arg to
4 assuan_register_command. Convert all command comments to help
7 2009-11-02 Marcus Brinkmann <marcus@g10code.de>
9 * command.c (reset_notify): Take LINE arg and return error.
10 (register_commands): Use assuan_handler_t type.
12 2009-10-16 Marcus Brinkmann <marcus@g10code.com>
14 * gpg_agent_CFLAGS, gpg_agent_LDADD: Use libassuan instead of
16 * gpg-agent.c: Invoke ASSUAN_SYSTEM_PTH_IMPL.
17 (main): Call assuan_set_system_hooks and assuan_sock_init.
18 Fix invocation of assuan_socket_connect.
20 2009-09-23 Werner Koch <wk@g10code.com>
22 * command.c (register_commands) [HAVE_ASSUAN_SET_IO_MONITOR]:
24 (start_command_handler) [HAVE_ASSUAN_SET_IO_MONITOR]: Ditto.
26 2009-09-23 Marcus Brinkmann <marcus@g10code.de>
28 * gpg-agent.c (parse_rereadable_options): Don't set global assuan
29 log file (there ain't one anymore).
30 (main): Update to new API.
31 (check_own_socket_pid_cb): Return gpg_error_t instead of int.
32 (check_own_socket_thread, check_for_running_agent): Create assuan
33 context before connecting to server.
34 * command.c: Include "scdaemon.h" before <assuan.h> because of
35 GPG_ERR_SOURCE_DEFAULT check.
36 (write_and_clear_outbuf): Use gpg_error_t instead of
38 (cmd_geteventcounter, cmd_istrusted, cmd_listtrusted)
39 (cmd_marktrusted, cmd_havekey, cmd_sigkey, cmd_setkeydesc)
40 (cmd_sethash, cmd_pksign, cmd_pkdecrypt, cmd_genkey, cmd_readkey)
41 (cmd_keyinfo, cmd_get_passphrase, cmd_clear_passphrase)
42 (cmd_get_confirmation, cmd_learn, cmd_passwd)
43 (cmd_preset_passphrase, cmd_scd, cmd_getval, cmd_putval)
44 (cmd_updatestartuptty, cmd_killagent, cmd_reloadagent)
45 (cmd_getinfo, option_handler): Return gpg_error_t instead of int.
46 (post_cmd_notify): Change type of ERR to gpg_error_t from int.
47 (io_monitor): Add hook argument. Use symbols for constants.
48 (register_commands): Change return type of HANDLER to gpg_error_t.
49 (start_command_handler): Allocate assuan context before starting
51 * call-pinentry.c: Include "scdaemon.h" before <assuan.h> because
52 of GPG_ERR_SOURCE_DEFAULT check.
53 (unlock_pinentry): Call assuan_release instead of
55 (getinfo_pid_cb, getpin_cb): Return gpg_error_t instead of int.
56 (start_pinentry): Allocate assuan context before connecting to
58 * call-scd.c (membuf_data_cb, learn_status_cb, get_serialno_cb)
59 (membuf_data_cb, inq_needpin, card_getattr_cb, pass_status_thru)
60 (pass_data_thru): Change return type to gpg_error_t.
61 (start_scd): Allocate assuan context before connecting to server.
63 2009-09-04 Marcus Brinkmann <marcus@g10code.com>
65 * command.c (start_command_handler): Add comment about gap in
66 implementation (in dead code), for future reference.
68 2009-08-11 Werner Koch <wk@g10code.com>
70 * divert-scd.c (ask_for_card): I18n a prompt string.
72 2009-07-06 Werner Koch <wk@g10code.com>
74 * agent.h: Include session-env.h.
75 (opt): Replace most of the startup_xxx fields by a session_env_t.
76 (struct server_control_s): Likewise.
77 * gpg-agent.c (main): Rewrite setting of the startup fields.
78 (handle_connections, main): Allocate SESSION_ENV.
79 (agent_init_default_ctrl, agent_deinit_default_ctrl): Change
81 * command.c (option_handler): Ditto.
82 (cmd_updatestartuptty): Change accordingly. Protect old values
83 from out of core failures.
84 * command-ssh.c (start_command_handler_ssh): Ditto.
85 (start_command_handler_ssh): Replace strdup by xtrystrdup.
86 * call-pinentry.c (atfork_cb): Pass new envrinmnet variables.
87 (start_pinentry): Use session_env stuff.
88 * protect-tool.c (main): Adjust call to gnupg_prepare_get_passphrase.
90 2009-06-24 Werner Koch <wk@g10code.com>
92 * genkey.c (agent_protect_and_store): Return RC and not 0.
93 * protect.c (do_encryption): Fix ignored error code from malloc.
94 Reported by Fabian Keil.
96 2009-06-17 Werner Koch <wk@g10code.com>
98 * call-pinentry.c (agent_get_confirmation): Add arg WITH_CANCEL.
100 * trustlist.c (agent_marktrusted): Use WITH_CANCEL
102 2009-06-09 Werner Koch <wk@g10code.com>
104 * learncard.c (send_cert_back): Ignore certain error codes.
106 2009-06-05 Werner Koch <wk@g10code.com>
108 * protect-tool.c (store_private_key): Fix last change by appending
111 2009-06-03 Werner Koch <wk@g10code.com>
113 * protect-tool.c: Include estream.h.
114 (store_private_key): Replace stdio streams by estream functions
115 for a portable use of the "x" mode.
116 * trustlist.c: Include estream.h.
117 (agent_marktrusted): Replace stdio stream by estream functions.
119 * protect-tool.c (store_private_key): Use bin2hex.
121 2009-06-02 Werner Koch <wk@g10code.com>
123 * gpg-agent.c (main): Run pth_kill after fork. Fixes bug#1066.
125 2009-05-19 Werner Koch <wk@g10code.com>
127 * gpg-agent.c (JNLIB_NEED_AFLOCAL): Define.
128 (create_server_socket): Use SUN_LEN macro.
130 2009-05-15 Werner Koch <wk@g10code.com>
134 * agent.h (lookup_ttl_t): New.
135 * findkey.c (unprotect): Add arg LOOKUP_TTL.
136 (agent_key_from_file): Ditto.
137 * pksign.c (agent_pksign_do): Ditto.
138 * command-ssh.c (ttl_from_sshcontrol): New.
139 (data_sign): Pass new function to agent_pksign_do.
140 (search_control_file): Add new arg R_TTL.
142 2009-05-14 Werner Koch <wk@g10code.com>
144 * command.c (cmd_get_passphrase): Add option --qualitybar.
145 * call-pinentry.c (agent_askpin): Factor some code out to ...
146 (setup_qualitybar): .. new.
147 (agent_get_passphrase): Add arg WITH_QUALITYBAR and implement it.
149 2009-04-14 Marcus Brinkmann <marcus@g10code.de>
151 * call-pinentry.c (agent_get_confirmation): Try SETNOTOK command
154 2009-04-01 Werner Koch <wk@g10code.com>
156 * protect-tool.c (pe_opt): New.
157 (opts): Add option --agent-program. Use ARGPARSE macros.
158 (get_new_passphrase): Remove.
159 (get_passphrase): Use gpg-agent directly. Remove arg OPT_CHECK and
161 * Makefile.am (gpg_protect_tool_LDADD): Replace pwquery_libs by
163 (gpg_protect_tool_CFLAGS): New.
165 * command.c (percent_plus_unescape): Remove.
166 (cmd_putval): Use percent_plus_unescape_inplace.
167 * call-scd.c (unescape_status_string): Remove.
168 (card_getattr_cb): Use percent_plus_unescape.
169 * protect-tool.c (main): Use percent_plus_unescape from common/.
170 (percent_plus_unescape, percent_plus_unescape_string): Remove.
172 2009-03-27 Werner Koch <wk@g10code.com>
174 * learncard.c (agent_handle_learn): Add new certtype 111.
176 2009-03-26 Werner Koch <wk@g10code.com>
178 * agent.h (MAX_DIGEST_LEN): Change to 64.
179 * command.c (cmd_sethash): Allow digest length of 48 and 64.
180 (cmd_sethash): Allow more hash algos.
182 * trustlist.c (reformat_name): New.
183 (agent_marktrusted): Use a reformatted name. Reload the table
184 before the update and always reload it at the end.
185 (agent_istrusted): Check early for the disabled flag.
187 2009-03-25 Werner Koch <wk@g10code.com>
189 * pkdecrypt.c (agent_pkdecrypt): Return a specific error message
190 if the key is not available.
192 * gpg-agent.c (main): Print a started message to show the real pid.
194 2009-03-20 Werner Koch <wk@g10code.com>
196 * learncard.c (struct kpinfo_cp_parm_s): Add field CTRL.
197 (struct certinfo_cb_parm_s): Ditto.
198 (agent_handle_learn): Set CTRL field.
199 (kpinfo_cb, certinfo_cb): Send progress status.
201 * agent.h (agent_write_status): Flag with GNUPG_GCC_A_SENTINEL.
203 2009-03-19 Werner Koch <wk@g10code.com>
205 * trustlist.c (struct trustitem_s): Add field DISABLED.
206 (read_one_trustfile): Parse the '!' flag.
207 (agent_istrusted, agent_listtrusted): Check flag.
208 (agent_istrusted): Add arg R_DISABLED. Change all callers.
209 (agent_marktrusted): Do not ask if flagged as disabled. Reverse
210 the order of the questions. Store the disabled flag.
212 * gpg-agent.c (main): Save signal mask and open fds. Restore mask
213 and close all fds prior to the exec. Fixes bug#1013.
215 2009-03-17 Werner Koch <wk@g10code.com>
217 * command.c (cmd_get_passphrase): Break repeat loop on error.
219 (cmd_getinfo): Add subcommand "cmd_has_option".
220 (command_has_option): New.
222 2009-03-17 Daiki Ueno <ueno@unixuser.org>
224 * command.c (option_value): New function.
225 (cmd_get_passphrase): Accept new option --repeat, which makes
226 gpg-agent to ask passphrase several times.
228 2009-03-06 Werner Koch <wk@g10code.com>
230 * command.c (cmd_keyinfo): New command.
231 (register_commands): Register it.
232 (agent_write_status): Make sure not to print LR or CR.
233 * divert-scd.c (ask_for_card): Factor shadow info parsing out to ...
234 * protect.c (parse_shadow_info): New.
235 * findkey.c (agent_key_from_file): Use make_canon_sexp.
236 (agent_write_private_key, unprotect, read_key_file)
237 (agent_key_available): Use bin2hex.
238 (agent_key_info_from_file): New.
239 (read_key_file): Log no error message for ENOENT.
241 2009-03-05 Werner Koch <wk@g10code.com>
243 * divert-scd.c (getpin_cb): Support flag 'P'. Change max_digits
244 from 8 to 16. Append a message about keypads.
245 * findkey.c (unprotect): Change max digits to 16.
247 2009-03-02 Werner Koch <wk@g10code.com>
249 * command.c (cmd_getinfo): Add subcommand "scd_running".
251 * call-scd.c (agent_scd_check_running): New.
253 * gpg-agent.c: Add missing option strings for "--batch" and
254 "--homedir". Reported by Petr Uzel.
256 * protect-tool.c (import_p12_file): Take care of canceled
257 passphrase entry. Fixes bug#1003.
258 (export_p12_file): Ditto.
260 2008-12-17 Werner Koch <wk@g10code.com>
262 * gpg-agent.c (handle_connections): Set action of all pth event
263 handled signals to SIG_IGN. Use a different pth_sigmask strategy.
265 2008-12-10 Werner Koch <wk@g10code.com>
267 * command.c (cmd_get_passphrase): Implement option --no-ask.
269 2008-12-09 Werner Koch <wk@g10code.com>
271 * gpg-agent.c (main): Call i18n_init before init_common_subsystems.
272 * preset-passphrase.c (main): Ditto.
273 * protect-tool.c (main): Ditto.
275 * command.c (cmd_preset_passphrase): Allow an arbitrary string for
278 2008-12-08 Werner Koch <wk@g10code.com>
280 * gpg-agent.c (handle_connections): Sync the ticker to the next
281 full second. This is bug#871.
283 2008-12-05 Werner Koch <wk@g10code.com>
285 * minip12.c (decrypt_block): Fix const modified of CHARSETS.
286 * learncard.c (sinfo_cb_parm_s): Remove superflous semicolon.
287 Reported by Stoyan Angelov.
289 2008-11-18 Werner Koch <wk@g10code.com>
291 * gpg-agent.c (make_libversion): New.
292 (my_strusage): Print libgcrypt version
294 2008-11-11 Werner Koch <wk@g10code.com>
296 * call-scd.c (membuf_data_cb): Change return type to
297 assuan_error_t to avoid warnings with newer libassuan versions.
299 2008-11-04 Werner Koch <wk@g10code.com>
301 * command.c (cmd_killagent): Stop the agent immediately.
302 (start_command_handler): Take care of GPG_ERR_EOF.
304 2008-10-29 Werner Koch <wk@g10code.com>
306 * gpg-agent.c (main): Move USE_STANDARD_SOCKET to the outer scope.
307 (create_socket_name): Remove arg USE_STANDARD_SOCKET. Change all
309 (create_server_socket): Remove IS_STANDARD_NAME and replace it by
310 USE_STANDARD_SOCKET. Change all callers.
311 (check_own_socket_running): New.
312 (check_own_socket, check_own_socket_thread): New.
313 (handle_tick): Check server socket once a minute.
314 (handle_connections): Remove the extra pth_wait in the shutdown
317 2008-10-20 Werner Koch <wk@g10code.com>
319 * command.c (cmd_geteventcounter): Mark unused arg.
320 (cmd_listtrusted, cmd_pksign, cmd_pkdecrypt, cmd_genkey): Ditto.
321 (cmd_updatestartuptty, post_cmd_notify): Ditto.
322 * command-ssh.c (add_control_entry)
323 (ssh_handler_request_identities, ssh_handler_remove_identity)
324 (ssh_handler_remove_all_identities, ssh_handler_lock)
325 (ssh_handler_unlock): Ditto.
326 * call-pinentry.c (pinentry_active_p, popup_message_thread)
327 (agent_popup_message_stop): Ditto.
328 * findkey.c (agent_public_key_from_file): Ditto.
329 * genkey.c (check_passphrase_pattern): Ditto.
330 * call-scd.c (atfork_cb): Ditto.
331 * protect-tool.c (import_p12_cert_cb): Ditto.
332 * t-protect.c (main): Ditto.
334 2008-10-17 Werner Koch <wk@g10code.com>
336 * call-scd.c (start_scd) [W32]: Use snprintf again because we now
337 always use the estream variant.
339 2008-10-15 Werner Koch <wk@g10code.com>
341 * call-scd.c (start_scd): Enable assuan loggging if requested.
342 (agent_scd_check_aliveness) [W32]: Fix use of GetExitCodeProcess.
344 2008-10-14 Werner Koch <wk@g10code.com>
346 * gpg-agent.c (get_agent_scd_notify_event): Need to use a manual
349 2008-09-29 Werner Koch <wk@g10code.com>
351 * agent.h (GCRY_MD_USER): Rename to GCRY_MODULE_ID_USER.
352 (GCRY_MD_USER_TLS_MD5SHA1): Rename to MD_USER_TLS_MD5SHA1 and
355 2008-09-25 Werner Koch <wk@g10code.com>
357 * divert-scd.c (getpin_cb): Support a Reset Code style PINs..
359 2008-09-03 Werner Koch <wk@g10code.com>
361 * command.c (parse_keygrip): Use hex2bin.
362 (cmd_preset_passphrase): Decode the passphrase. Reported by Kiss
363 Gabor. Fixes #679 again.
364 * preset-passphrase.c (make_hexstring): Remove.
365 (preset_passphrase): Use bin2hex.
367 2008-05-27 Werner Koch <wk@g10code.com>
369 * trustlist.c (insert_colons): Fix stupidly wrong allocation size
372 2008-05-26 Werner Koch <wk@g10code.com>
374 * gpg-agent.c (main): Re-initialize default assuan log stream if a
377 * trustlist.c (agent_marktrusted): Use xtryasprintf and xfree.
379 * gpg-agent.c (main, agent_deinit_default_ctrl): Always use xfree
380 because our asprintf is mapped to an xmalloc style function in
381 util.h. Replace xstrdup by xtrystrdup.
382 * w32main.c (build_argv): Ditto.
383 * preset-passphrase.c (preset_passphrase): Ditto.
384 * divert-scd.c (ask_for_card): Ditto.
385 * command.c (option_handler): Ditto.
386 * command-ssh.c (ssh_handler_request_identities): Ditto.
387 * call-pinentry.c (start_pinentry): Ditto.
389 * gpg-agent.c (start_connection_thread)
390 (start_connection_thread_ssh): Use pth_thread_id for useful output
392 (pth_thread_id) [!PTH_HAVE_PTH_THREAD_ID]: New.
394 2008-03-17 Werner Koch <wk@g10code.com>
396 * agent.h (agent_inq_pinentry_launched): New prototype.
398 * call-pinentry.c: Include sys/types.h and signal.h.
400 2008-02-14 Werner Koch <wk@g10code.com>
402 * command.c (agent_inq_pinentry_launched): New.
403 (option_handler): Add option allow-pinentry-notify.
404 * call-pinentry.c (getinfo_pid_cb): New.
405 (start_pinentry): Ask for the PID and notify the client.
407 2008-01-15 Marcus Brinkmann <marcus@g10code.de>
409 * call-pinentry.c (start_pinentry): Start pinentry in detached
412 2007-12-04 Werner Koch <wk@g10code.com>
414 * call-pinentry.c (agent_askpin): Use gnupg_get_help_string.
416 2007-12-03 Werner Koch <wk@g10code.com>
418 * gpg-agent.c (main): s/standard_socket/use_standard_socket/ for
420 (create_server_socket): New arg IS_SSH to avoid testing with
423 2007-11-20 Werner Koch <wk@g10code.com>
425 * gpg-agent.c (get_agent_scd_notify_event): New.
426 (handle_signal): Factor SIGUSR2 code out to:
427 (agent_sigusr2_action): .. New.
428 (agent_sighup_action): Print info message here and not in
430 (handle_connections) [PTH_EVENT_HANDLE]: Call agent_sigusr2_action.
432 * call-scd.c (agent_scd_check_aliveness) [W32]: Implemented.
433 (start_scd) [W32]: Send event-signal option.
435 2007-11-19 Werner Koch <wk@g10code.com>
437 * call-pinentry.c (agent_askpin): Set the tooltip for the quality
440 2007-11-15 Werner Koch <wk@g10code.com>
442 * agent.h (struct server_control_s): Add XAUTHORITY and
444 * gpg-agent.c: New option --xauthority.
445 (main, agent_init_default_ctrl)
446 (agent_deinit_default_ctrl): Implemented
447 * command.c (cmd_updatestartuptty): Ditto.
448 * command-ssh.c (start_command_handler_ssh): Ditto.
449 * call-pinentry.c (atfork_cb): Set the environment.
450 (start_pinentry): Pass CTRL as arg to atfork_cb.
452 2007-11-14 Werner Koch <wk@g10code.com>
454 * call-scd.c (start_scd) [W32]: Take care of fflush peculiarities.
456 2007-11-07 Werner Koch <wk@g10code.com>
458 * agent.h: Remove errors.h.
460 2007-10-24 Werner Koch <wk@g10code.com>
462 * genkey.c (check_passphrase_constraints): Changed the wording of
463 the warning messages.
465 2007-10-19 Werner Koch <wk@g10code.com>
467 * protect-tool.c (get_passphrase): Use new utf8 switch fucntions.
469 2007-10-15 Daiki Ueno <ueno@unixuser.org> (wk)
471 * command-ssh.c (reenter_compare_cb): New function; imported from
473 (ssh_identity_register): Ask initial passphrase twice.
475 2007-10-02 Werner Koch <wk@g10code.com>
477 * command.c (cmd_getinfo): Add "pid" subcommand.
479 2007-10-01 Werner Koch <wk@g10code.com>
481 * agent.h (struct server_control_s): Remove unused CONNECTION_FD.
483 * gpg-agent.c: Remove w32-afunix.h. Include mkdtemp.h.
484 (socket_nonce, socket_nonce_ssh): New.
485 (create_server_socket): Use assuan socket wrappers. Remove W32
486 specific stuff. Save the server nonce.
488 (start_connection_thread, start_connection_thread_ssh): Call it.
489 (handle_connections): Change args to gnupg_fd_t.
490 * command.c (start_command_handler): Change LISTEN_FD to gnupg_fd_t.
491 * command-ssh.c (start_command_handler_ssh): Ditto.
493 2007-09-18 Werner Koch <wk@g10code.com>
495 * agent.h (struct pin_entry_info_s): Add element WITH_QUALITYBAR.
496 * genkey.c (check_passphrase_constraints): New arg SILENT.
498 (agent_protect_and_store, agent_genkey): Enable qualitybar.
499 * call-pinentry.c (agent_askpin): Send that option.
500 (unescape_passphrase_string): New.
502 (estimate_passphrase_quality): New.
504 2007-09-14 Marcus Brinkmann <marcus@g10code.de>
506 * call-pinentry.c (agent_popup_message_stop): Implement kill for
509 2007-08-28 Werner Koch <wk@g10code.com>
511 * gpg-agent.c (main): Add option --faked-system-time.
513 * protect-tool.c (read_and_unprotect): Print the protected-at date.
515 * agent.h (struct server_control_s): Add member IN_PASSWD.
516 * command.c (cmd_passwd): Set it.
517 * findkey.c (try_unprotect_cb): Use it.
519 * protect.c (do_encryption): Replace asprintf by xtryasprint.
520 (agent_protect): Create the protected-at item.
521 (agent_unprotect): Add optional arg PROTECTED_AT.
522 (merge_lists): Add args CUTOFF and CUTLEN.
523 (agent_unprotect): Use them.
524 * findkey.c (try_unprotect_cb): Add code to test for expired keys.
525 (unprotect): Allow changing the passphrase.
527 2007-08-27 Werner Koch <wk@g10code.com>
529 * gpg-agent.c: Add options --min-passphrase-nonalpha,
530 --check-passphrase-pattern and --enforce-passphrase-constraints.
531 (MIN_PASSPHRASE_NONALPHA): Init nonalpha option to 1.
532 (main): Declare options for gpgconf.
533 * agent.h (struct): Add members MIN_PASSPHRASE_NONALPHA,
534 ENFORCE_PASSPHRASE_CONSTRAINTS and CHECK_PASSPHRASE_PATTERN.
535 * genkey.c (nonalpha_charcount): New.
536 (check_passphrase_pattern): New.
537 (check_passphrase_constraints): Implement. Factor some code out...
538 (take_this_one_anyway, take_this_one_anyway2): .. New.
540 * call-pinentry.c (agent_show_message): New.
541 (agent_askpin): We better reset the pin buffer before asking.
543 * trustlist.c (insert_colons): New.
544 (agent_marktrusted): Pretty print the fpr.
546 2007-08-22 Werner Koch <wk@g10code.com>
548 * findkey.c (O_BINARY): Make sure it is defined.
549 (agent_write_private_key): Use O_BINARY
551 * protect-tool.c (import_p12_file): Add hack to allow importing of
552 gnupg 2.0.4 generated files.
554 2007-08-06 Werner Koch <wk@g10code.com>
556 * trustlist.c (read_one_trustfile): Add flag "cm".
557 (agent_istrusted): Ditto.
559 2007-08-02 Werner Koch <wk@g10code.com>
561 * gpg-agent.c: Include gc-opt-flags.h and remove their definition
564 2007-07-13 Werner Koch <wk@g10code.com>
566 * genkey.c (check_passphrase_constraints): Require a confirmation
567 for an empty passphrase.
568 (agent_genkey, agent_protect_and_store): No need to repeat an
571 2007-07-05 Werner Koch <wk@g10code.com>
573 * call-scd.c (struct inq_needpin_s): New.
574 (inq_needpin): Pass unknown inquiries up.
576 2007-07-04 Werner Koch <wk@g10code.com>
578 * gpg-agent.c (TIMERTICK_INTERVAL): New.
579 (fixed_gcry_pth_init, main): Kludge to fix Pth initialization.
581 2007-07-03 Werner Koch <wk@g10code.com>
583 * gpg-agent.c (handle_connections): Do not use FD_SETSIZE for
584 select but compute the correct number.
586 2007-07-02 Werner Koch <wk@g10code.com>
588 * command.c (cmd_reloadagent) [W32]: New.
589 (register_commands) [W32]: New command RELOADAGENT.
591 * Makefile.am (gpg_agent_SOURCES): Remove w32main.c and w32main.h.
592 (gpg_agent_res_ldflags): Remove icon file as we don't have a
594 * gpg-agent.c (main): do not include w32main.h. Remove all calls
596 (agent_sighup_action): New.
597 (handle_signal): Use it.
599 2007-06-26 Werner Koch <wk@g10code.com>
601 * gpg-agent.c (create_directories) [W32]: Made it work.
603 2007-06-21 Werner Koch <wk@g10code.com>
605 * agent.h (ctrl_t): Remove. It is now declared in ../common/util.h.
607 * gpg-agent.c (check_for_running_agent): New arg SILENT. Changed
609 (create_server_socket): If the standard socket is in use check
610 whether a agent is running and avoid starting another one.
612 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
614 * gpg-agent.c (main): Percent escape pathname in --gpgconf-list
617 2007-06-18 Werner Koch <wk@g10code.com>
619 * w32main.c (build_argv): New.
622 * command.c (cmd_killagent) [W32]: New.
624 * gpg-agent.c (get_agent_ssh_socket_name): New.
625 (no_force_standard_socket) New.
626 (create_server_socket): Use it.
627 * Makefile.am (gpg_agent_res_ldflags): Pass windows option to ld.
629 2007-06-14 Werner Koch <wk@g10code.com>
631 * protect-tool.c (main): Setup default socket name for
633 (MAP_SPWQ_ERROR_IMPL): New. Use map_spwq_error for spqw related
635 * preset-passphrase.c (main): Setup default socket name for
637 (map_spwq_error): Remove.
638 (MAP_SPWQ_ERROR_IMPL): New.
640 * call-pinentry.c (start_pinentry): Use gnupg_module_name.
641 * call-scd.c (start_scd): Ditto.
643 2007-06-12 Werner Koch <wk@g10code.com>
647 * trustlist.c (read_one_trustfile): Replace GNUPG_SYSCONFDIR by a
649 (read_trustfiles): Ditto.
651 * gpg-agent.c (main): Replace some calls by init_common_subsystems.
652 * preset-passphrase.c (main): Ditto.
653 * protect-tool.c (main): Ditto.
655 2007-06-11 Werner Koch <wk@g10code.com>
657 * Makefile.am (common_libs): Use libcommonstd macro.
658 (commonpth_libs): Use libcommonpth macro.
660 * protect-tool.c (main) [W32]: Call pth_init.
662 * preset-passphrase.c (main) [W32]: Replace the explicit Winsocket
663 init by a call to pth_init.
665 * trustlist.c (initialize_module_trustlist): New.
666 * gpg-agent.c (main): Call it.
668 * call-pinentry.c (initialize_module_query): Rename to
669 initialize_module_call_pinentry.
671 * minip12.c: Remove iconv.h. Add utf8conf.h. Changed all iconv
672 calss to use these jnlib wrappers.
674 2007-06-06 Werner Koch <wk@g10code.com>
676 * minip12.c (enum): Rename CONTEXT to ASNCONTEXT as winnt.h
677 defines such a symbol to access the process context.
679 * call-pinentry.c (dump_mutex_state) [W32]: Handle the W32Pth case.
680 * call-scd.c (dump_mutex_state): Ditto.
682 * protect-tool.c (i18n_init): Remove.
683 * preset-passphrase.c (i18n_init): Remove.
684 * gpg-agent.c (i18n_init): Remove.
686 2007-05-19 Marcus Brinkmann <marcus@g10code.de>
688 * protect-tool.c (get_passphrase): Free ORIG_CODESET on error.
690 2007-05-14 Werner Koch <wk@g10code.com>
692 * protect.c (make_shadow_info): Replace sprintf by smklen.
694 2007-04-20 Werner Koch <wk@g10code.com>
696 * gpg-agent.c (my_gcry_logger, my_gcry_outofcore_handler): Removed.
697 (main): Call the setup_libgcrypt_logging helper.
698 * protect-tool.c (my_gcry_logger): Removed.
699 (main): Call the setup_libgcrypt_logging helper.
701 2007-04-03 Werner Koch <wk@g10code.com>
703 * trustlist.c (read_trustfiles): Take a missing trustlist as an
706 2007-03-20 Werner Koch <wk@g10code.com>
708 * protect-tool.c: New option --p12-charset.
709 * minip12.c (p12_build): Implement it.
711 2007-03-19 Werner Koch <wk@g10code.com>
713 * minip12.c: Include iconv.h.
714 (decrypt_block): New.
715 (parse_bag_encrypted_data, parse_bag_data): Use it here.
716 (bag_data_p, bag_decrypted_data_p): New helpers.
718 2007-03-06 Werner Koch <wk@g10code.com>
720 * gpg-agent.c (main) <gpgconf>: Add entries for all ttl options.
722 2007-02-20 Werner Koch <wk@g10code.com>
724 * call-pinentry.c (start_pinentry): Fix for OS X to allow loading
725 of the bundle. Tested by Benjamin Donnachie.
727 2007-02-14 Werner Koch <wk@g10code.com>
729 * gpg-agent.c: New option --pinentry-touch-file.
730 (get_agent_socket_name): New.
731 * agent.h (opt): Add pinentry_touch_file.
732 * call-pinentry.c (start_pinentry): Send new option to the
735 2007-01-31 Moritz Schulte <moritz@g10code.com> (wk)
737 * command-ssh.c (stream_read_string): Initialize LENGTH to zero.
738 (start_command_handler_ssh): Use es_fgetc/es_ungetc to check if
739 EOF has been reached before trying to process another request.
741 2007-01-31 Werner Koch <wk@g10code.com>
743 * command-ssh.c (start_command_handler_ssh):
745 * Makefile.am (t_common_ldadd): Add LIBICONV.
747 2007-01-25 Werner Koch <wk@g10code.com>
749 * genkey.c (check_passphrase_constraints): Get ngettext call right
750 and use UTF-8 aware strlen.
752 * protect-tool.c (get_passphrase): New arg OPT_CHECK.
753 (get_new_passphrase): Enable OPT_CHECK on the first call.
754 * command.c (cmd_get_passphrase): Implement option --check.
756 2007-01-24 Werner Koch <wk@g10code.com>
758 * gpg-agent.c (MIN_PASSPHRASE_LEN): New
759 (parse_rereadable_options): New option --min-passphrase-len.
760 * genkey.c (check_passphrase_constraints): New.
761 (agent_genkey, agent_protect_and_store): Call new function. Fix
764 * call-pinentry.c (agent_askpin): Allow translation of the displayed
766 (agent_popup_message_start): Remove arg CANCEL_BTN.
767 (popup_message_thread): Use --one-button option.
769 * command.c (cmd_passwd): Now that we don't distinguish between
770 assuan and regular error codes we can jump to the end on error.
772 2006-12-07 David Shaw <dshaw@jabberwocky.com>
774 * Makefile.am: Link to iconv for jnlib dependency.
776 2006-11-20 Werner Koch <wk@g10code.com>
778 * call-pinentry.c (agent_popup_message_stop): Use SIGKILL.
779 * call-scd.c (inq_needpin): Implement POPUPKEYPADPROMPT and
782 2006-11-15 Werner Koch <wk@g10code.com>
784 * protect.c (make_shadow_info): Cast printf arg to unsigned int.
785 * minip12.c (parse_bag_encrypted_data): Ditto.
786 (parse_bag_data, p12_parse): Ditto.
787 * command-ssh.c (ssh_identity_register): Changed buffer_n to
790 * agent.h (struct server_control_s): New field thread_startup.
791 * command.c (start_command_handler): Moved CTRL init code to ..
792 * gpg-agent.c (start_connection_thread): .. here.
793 (agent_deinit_default_ctrl): New.
794 (agent_init_default_ctrl): Made static.
795 (handle_connections): Allocate CTRL and pass it pth_spawn.
796 * command-ssh.c (start_command_handler_ssh): Moved CTRL init code
798 * gpg-agent.c (start_connection_thread_ssh): .. here.
800 2006-11-14 Werner Koch <wk@g10code.com>
802 * command.c (bump_key_eventcounter): New.
803 (bump_card_eventcounter): New.
804 (cmd_geteventcounter): New command.
805 * gpg-agent.c (handle_signal): Call bump_card_eventcounter.
806 * findkey.c (agent_write_private_key): Call bump_key_eventcounter.
807 * trustlist.c (agent_reload_trustlist): Ditto.
809 * command.c (post_cmd_notify, io_monitor): New.
810 (register_commands, start_command_handler): Register them.
812 2006-11-09 Werner Koch <wk@g10code.com>
814 * gpg-agent.c (main): In detached mode connect standard
815 descriptors to /dev/null.
817 * trustlist.c (read_trustfiles): Make sure not to pass a zero size
818 to realloc as the C standards says that this behaves like free.
820 2006-11-06 Werner Koch <wk@g10code.com>
822 * protect-tool.c (my_strusage): Fixed typo.
824 2006-10-23 Werner Koch <wk@g10code.com>
826 * gpg-agent.c (main): New command --gpgconf-test.
828 * minip12.c (parse_bag_encrypted_data, parse_bag_data): Allow for
831 2006-10-20 Werner Koch <wk@g10code.com>
833 * Makefile.am (t_common_ldadd): Use GPG_ERROR_LIBS instead -o just -l
835 2006-10-19 Werner Koch <wk@g10code.com>
837 * findkey.c (unprotect): Use it to avoid unnecessary calls to
839 * call-pinentry.c (pinentry_active_p): New.
841 2006-10-17 Werner Koch <wk@g10code.com>
843 * Makefile.am (gpg_agent_LDADD): Link to libcommonpth.
844 (gpg_agent_CFLAGS): New. This allows to only link this with Pth.
846 2006-10-16 Werner Koch <wk@g10code.com>
848 * call-pinentry.c (agent_get_confirmation): Map Cancel code here too.
849 * trustlist.c (agent_marktrusted): Return Cancel instead of
850 Not_Confirmed for the first question.
852 2006-10-12 Werner Koch <wk@g10code.com>
854 * protect-tool.c (get_passphrase): Fix if !HAVE_LANGINFO_CODESET.
856 2006-10-06 Werner Koch <wk@g10code.com>
858 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
859 (gpg_agent_LDADD): Ditto.
861 * divert-scd.c (divert_pksign): Use PKAUTH for the TLS algo.
863 2006-10-05 Werner Koch <wk@g10code.com>
865 * command.c (has_option_name): New.
866 (cmd_sethash): New --hash option.
867 * pksign.c (do_encode_raw_pkcs1): New.
868 (agent_pksign_do): Use it here for the TLS algo.
869 * agent.h (GCRY_MD_USER_TLS_MD5SHA1): New.
870 * divert-scd.c (pksign): Add case for tls-md5sha1.
872 * divert-scd.c (encode_md_for_card): Check that the algo is valid.
874 2006-10-04 Werner Koch <wk@g10code.com>
876 * call-pinentry.c (agent_get_passphrase): Changed to return the
877 unencoded passphrase.
878 (agent_askpin, agent_get_passphrase, agent_get_confirmation): Need
879 to map the cancel error.
880 * command.c (send_back_passphrase): New.
881 (cmd_get_passphrase): Use it here. Also implement --data option.
884 2006-09-26 Werner Koch <wk@g10code.com>
886 * learncard.c (agent_handle_learn): Send back the keypair
889 2006-09-25 Werner Koch <wk@g10code.com>
891 * trustlist.c (read_one_trustfile): Allow extra flags.
892 (struct trustitem_s): Replaced KEYFLAGS by a FLAGS struct.
893 Changed all code to use this.
894 (agent_istrusted): New arg CTRL. Changed all callers. Send back
896 * command.c (agent_write_status): New.
898 2006-09-20 Werner Koch <wk@g10code.com>
900 * Makefile.am: Changes to allow parallel make runs.
902 2006-09-15 Werner Koch <wk@g10code.com>
904 * trustlist.c: Entirely rewritten.
905 (agent_trustlist_housekeeping): Removed and removed all calls.
907 2006-09-14 Werner Koch <wk@g10code.com>
909 Replaced all call gpg_error_from_errno(errno) by
910 gpg_error_from_syserror().
912 * call-pinentry.c (start_pinentry): Replaced pipe_connect2 by
914 * call-scd.c (start_scd): Ditto.
915 * command.c (start_command_handler): Replaced
916 init_connected_socket_server by init_socket_server_ext.
918 2006-09-13 Werner Koch <wk@g10code.com>
920 * preset-passphrase.c (main) [W32]: Check for WSAStartup error.
922 2006-09-08 Werner Koch <wk@g10code.com>
924 * call-scd.c: Add signal.h as we are referencing SIGUSR2.
926 2006-09-06 Marcus Brinkmann <marcus@g10code.de>
928 * Makefile.am (AM_CFLAGS): Add $(GPG_ERR_CFLAGS).
929 (gpg_agent_LDADD): Replace -lgpg-error with $(GPG_ERROR_LIBS).
931 2006-09-06 Werner Koch <wk@g10code.com>
933 * query.c: Renamed to ..
934 * call-pinentry.c: .. this.
936 * agent.h (out_of_core): Removed.
937 (CTRL): Removed and changed everywhere to ctrl_t.
939 Replaced all Assuan error codes by libgpg-error codes. Removed
940 all map_to_assuan_status and map_assuan_err.
942 * gpg-agent.c (main): Call assuan_set_assuan_err_source to have Assuan
943 switch to gpg-error codes.
944 * command.c (set_error): Adjusted.
946 2006-09-04 Werner Koch <wk@g10code.com>
948 * command.c (percent_plus_unescape): New.
949 (cmd_get_val, cmd_putval): New.
951 2006-08-29 Werner Koch <wk@g10code.com>
953 * command-ssh.c (stream_read_mpi): Sanity check for early
954 detecting of too large keys.
955 * gpg-agent.c (my_gcry_outofcore_handler): New.
957 (main): No allocate 32k secure memory (was 16k).
959 2006-07-31 Werner Koch <wk@g10code.com>
961 * preset-passphrase.c (make_hexstring): For consistency use
962 xtrymalloc and changed caller to use xfree. Fixed function
965 2006-07-29 Marcus Brinkmann <marcus@g10code.de>
967 * preset-passphrase.c (preset_passphrase): Do not strip off last
968 character of passphrase.
969 (make_hexstring): New function.
970 * command.c (cmd_preset_passphrase): Use parse_hexstring to syntax
971 check passphrase argument. Truncate passphrase at delimiter.
973 2006-07-24 Werner Koch <wk@g10code.com>
975 * minip12.c (build_key_bag): New args SHA1HASH and
976 KEYIDSTR. Append bag Attributes if these args are given.
977 (build_cert_sequence): ditto.
978 (p12_build): Calculate certificate hash and pass to build
981 2006-07-21 Werner Koch <wk@g10code.com>
983 * minip12.c (oid_pkcs_12_keyBag): New.
984 (parse_bag_encrypted_data): New arg R_RESULT. Support keybags and
985 return the key object.
986 (p12_parse): Take new arg into account. Free RESULT on error.
988 2006-06-26 Werner Koch <wk@g10code.com>
990 * gpg-agent.c (handle_signal): Print info for SIGUSR2 only in
993 2006-06-22 Werner Koch <wk@g10code.com>
995 * command-ssh.c (make_cstring): Use memcpy instead of strncpy.
996 (ssh_receive_mpint_list, sexp_key_extract, data_sign): Use
997 xtrycalloc instead of xtrymalloc followed by memset.
999 2006-06-20 Werner Koch <wk@g10code.com>
1001 * minip12.c (create_final): New arg PW. Add code to calculate the
1004 2006-06-09 Marcus Brinkmann <marcus@g10code.de>
1006 * Makefile.am (gpg_agent_LDADD): Add $(NETLIBS).
1007 (gpg_protect_tool_LDADD): Likewise.
1008 (gpg_preset_passphrase_LDADD): Likewise.
1010 2006-04-09 Moritz Schulte <moritz@g10code.com>
1012 * command-ssh.c (ssh_request_process): Removed FIXME mentioning a
1013 possible DoS attack.
1015 2006-04-01 Moritz Schulte <moritz@g10code.com>
1017 * command-ssh.c (ssh_identity_register): Make KEY_GRIP_RAW be 20
1018 instead of 21 bytes long; do not fill KEY_GRIP_RAW[20] with NUL
1019 byte - KEY_GRIP_RAW is a raw binary string anyway.
1021 2006-02-09 Werner Koch <wk@g10code.com>
1023 * call-scd.c (struct scd_local_s): New field next_local.
1024 (scd_local_list): New.
1025 (start_scd): Put new local into list.
1026 (agent_reset_scd): Remove it from the list.
1027 (agent_scd_check_aliveness): Here is the actual reason why we need
1029 (agent_reset_scd): Send the new command RESTART instead of RESET.
1031 2005-12-16 Werner Koch <wk@g10code.com>
1033 * minip12.c (cram_octet_string): New
1034 (p12_parse): Use it for NDEFed bags.
1035 (parse_bag_data): Ditto.
1036 (string_to_key, set_key_iv, crypt_block): New arg SALTLEN.
1037 (p12_build): Use old value 8 for new arg.
1038 (parse_bag_encrypted_data, parse_bag_data): Allow for salts of 8
1039 to 16 bytes. Add new arg R_CONSUMED.
1041 2005-11-24 Werner Koch <wk@g10code.com>
1043 * minip12.c (p12_parse): Fixed for case that the key object comes
1044 prior to the certificate.
1046 2005-10-19 Werner Koch <wk@g10code.com>
1048 * divert-scd.c (getpin_cb): Hack to use it for a keypad message.
1050 * call-scd.c (inq_needpin): Reworked to support the new KEYPADINFO.
1052 * query.c (start_pinentry): Keep track of the owner.
1053 (popup_message_thread, agent_popup_message_start)
1054 (agent_popup_message_stop, agent_reset_query): New.
1055 * command.c (start_command_handler): Make sure a popup window gets
1058 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
1060 * Makefile.am (gpg_protect_tool_LDADD): Add ../gl/libgnu.a.
1061 (gpg_preset_passphrase_LDADD, t_common_ldadd): Likewise.
1062 (gpg_agent_LDADD): Add ../gl/libgnu.a after ../common/libcommon.a.
1064 2005-09-16 Werner Koch <wk@g10code.com>
1066 * minip12.c (build_key_sequence, build_cert_sequence): Fixed
1069 2005-09-15 Moritz Schulte <moritz@g10code.com>
1071 * t-protect.c (test_agent_protect): Implemented.
1072 (main): Disable use of secure memory.
1074 2005-09-09 Werner Koch <wk@g10code.com>
1076 * minip12.c (p12_build): Oops, array needs to be larger for the
1078 (build_cert_bag): Fixed yesterdays change.
1080 * command-ssh.c (card_key_available): Let the card handler decide
1081 whether the card is supported here. Also get a short serial
1082 number to return from the card handler.
1084 2005-09-08 Werner Koch <wk@g10code.com>
1086 * minip12.c (build_cert_bag): Use a non constructed object.
1087 i.e. 0x80 and not 0xa0.
1089 2005-08-16 Werner Koch <wk@g10code.com>
1091 * gpg-agent.c (main): Use a default file name for --write-env-file.
1093 2005-07-25 Werner Koch <wk@g10code.com>
1095 * findkey.c (agent_public_key_from_file): Fixed array assignment.
1096 This was the cause for random segvs.
1098 2005-06-29 Werner Koch <wk@g10code.com>
1100 * command-ssh.c (data_sign): Removed empty statement.
1102 2005-06-21 Werner Koch <wk@g10code.com>
1104 * minip12.c (create_final): Cast size_t to ulong for printf.
1105 (build_key_bag, build_cert_bag, build_cert_sequence): Ditto.
1107 2005-06-16 Werner Koch <wk@g10code.com>
1109 * protect-tool.c (make_advanced): Makde RESULT a plain char.
1110 * call-scd.c (unescape_status_string): Need to cast unsigned char*
1112 (agent_card_pksign): Made arg R_BUF an unsigned char**.
1113 * divert-scd.c (divert_pksign): Made SIGVAL unsigned char*.
1114 (encode_md_for_card): Initialize R_VAL and R_LEN.
1115 * genkey.c (store_key): Made BUF unsigned.
1116 * protect.c (do_encryption): Ditto.
1117 (do_encryption): Made arg PROTBEGIN unsigned. Initialize RESULT
1118 and RESULTLEN even on error.
1119 (merge_lists): Need to cast unsigned char * for strcpy. Initialize
1120 RESULTand RESULTLEN even on error.
1121 (agent_unprotect): Likewise for strtoul.
1122 (make_shadow_info): Made P and INFO plain char.
1123 (agent_shadow_key): Made P plain char.
1125 2005-06-15 Werner Koch <wk@g10code.com>
1127 * query.c (agent_get_passphrase): Made HEXSTRING a char*.
1128 * command-ssh.c (ssh_key_grip): Made arg BUFFER unsigned.
1129 (ssh_key_grip): Simplified.
1130 (data_sign): Initialize variables with the definition.
1131 (ssh_convert_key_to_blob): Make sure that BLOB and BLOB_SIZE
1132 are set to NULL on error. Cool, gcc-4 detects uninitialized stuff
1133 beyond function boundaries; well it can't know that we do error
1134 proper error handling so that this was not a real error.
1135 (file_to_buffer): Likewise for BUFFER and BUFFER_N.
1136 (data_sign): Likewise for SIG and SIG_N.
1137 (stream_read_byte): Set B to a value even on error.
1138 * command.c (cmd_genkey): Changed VALUE to char.
1139 (cmd_readkey): Cast arg for gcry_sexp_sprint.
1140 * agent.h (struct server_control_s): Made KEYGRIP unsigned.
1142 2005-06-13 Werner Koch <wk@g10code.com>
1144 * command-ssh.c (start_command_handler_ssh): Reset the SCD.
1146 2005-06-09 Werner Koch <wk@g10code.com>
1148 * gpg-agent.c (create_socket_name): New option --max-cache-ttl-ssh.
1149 * cache.c (housekeeping): Use it.
1150 (agent_put_cache): Use a switch to get the default ttl so that it
1151 is easier to add more cases.
1153 2005-06-06 Werner Koch <wk@g10code.com>
1155 * gpg-agent.c: New option --default-cache-ttl-ssh.
1156 * agent.h (cache_mode_t): New.
1157 * pksign.c (agent_pksign_do): New arg CACHE_MODE to replace the
1158 ARG IGNORE_CACHE. Changed all callers.
1159 (agent_pksign): Ditto.
1160 * findkey.c (agent_key_from_file): Ditto. Canged all callers.
1162 * command-ssh.c (data_sign): Use CACHE_MODE_SSH.
1163 * cache.c (agent_get_cache): New arg CACHE_MODE.
1164 (agent_put_cache): Ditto. Store it in the cache.
1166 * query.c (agent_query_dump_state, dump_mutex_state): New.
1167 (unlock_pinentry): Reset the global context before releasing the
1169 * gpg-agent.c (handle_signal): Dump query.c info on SIGUSR1.
1171 * call-scd.c (agent_scd_check_aliveness): Always do a waitpid and
1172 add a timeout to the locking.
1174 2005-06-03 Werner Koch <wk@g10code.com>
1176 * command.c (cmd_updatestartuptty): New.
1178 * gpg-agent.c: New option --write-env-file.
1180 * gpg-agent.c (handle_connections): Make sure that the signals we
1181 are handling are not blocked.Block signals while creating new
1184 2005-06-02 Werner Koch <wk@g10code.com>
1186 * call-scd.c (agent_scd_dump_state, dump_mutex_state): New.
1187 * gpg-agent.c (handle_signal): Print it on SIGUSR1.
1188 (handle_connections): Include the file descriptor into the
1191 2005-06-01 Werner Koch <wk@g10code.com>
1193 * gpg-agent.c: Include setenv.h.
1195 2005-05-31 Werner Koch <wk@g10code.com>
1197 * agent.h (out_of_core): s/__inline__/inine. Noted by Ray Link.
1199 2005-05-25 Werner Koch <wk@g10code.com>
1201 * gpg-agent.c (main): Do not unset the DISPLAY when we are
1202 continuing as child.
1204 2005-05-24 Werner Koch <wk@g10code.com>
1206 * call-scd.c (inq_needpin): Skip leading spaces in of PIN
1208 * divert-scd.c (getpin_cb): Enhanced to cope with description
1210 * query.c (agent_askpin): Add arg PROMPT_TEXT. Changed all
1213 2005-05-21 Werner Koch <wk@g10code.com>
1215 * call-scd.c (start_scd): Don't test for an alive scdaemon here.
1216 (agent_scd_check_aliveness): New.
1217 * gpg-agent.c (handle_tick): Test for an alive scdaemon.
1218 (handle_signal): Print thread info on SIGUSR1.
1220 2005-05-20 Werner Koch <wk@g10code.com>
1222 * protect-tool.c: New option --canonical.
1223 (show_file): Implement it.
1225 * keyformat.txt: Define the created-at attribute for keys.
1227 2005-05-18 Werner Koch <wk@g10code.com>
1229 * divert-scd.c (ask_for_card): Removed the card reset kludge.
1231 2005-05-17 Werner Koch <wk@g10code.com>
1233 * call-scd.c (unlock_scd): Add new arg CTRL. Changed all callers.
1234 (start_scd): Reoworked to allow for additional connections.
1235 * agent.h (ctrl_t): Add local data for the SCdaemon.
1236 * command.c (start_command_handler): Release SERVER_LOCAL.
1238 * gpg-agent.c (create_server_socket): Use xmalloc.
1239 (main): Removed option --disable-pth a dummy. Removed non-pth
1241 (cleanup_sh): Removed. Not needed anymore.
1243 2005-05-05 Moritz Schulte <moritz@g10code.com>
1245 * command-ssh.c (ssh_key_to_buffer): Rename to ...
1246 (ssh_key_to_protected_buffer): ... this; change callers.
1247 Improved documentation.
1248 Use ssh_key_grip(), where gcry_pk_get_keygrip() has been used
1250 (ssh_handler_sign_request): Removed unusued variable P.
1252 2005-04-20 Moritz Schulte <moritz@g10code.com>
1254 * command-ssh.c (ssh_handler_request_identities): Removed
1255 debugging code (sleep call), which was commited unintenionally.
1257 2005-04-20 Werner Koch <wk@g10code.com>
1259 * minip12.c (parse_bag_encrypted_data): Fix the unpadding hack.
1261 * gpg-agent.c: New option --disable-scdaemon.
1262 (handle_connections): Add time event to drive ...
1263 (handle_tick): New function.
1264 (main): Record the parent PID. Fixed segv when using ssh and a
1267 * call-scd.c (start_scd): Take care of this option.
1269 2005-04-03 Moritz Schulte <moritz@g10code.com>
1271 * command-ssh.c (ssh_request_spec): New member: secret_input.
1272 (REQUEST_SPEC_DEFINE): New argument: secret_input.
1273 (request_specs): Add secret_input flag.
1274 (request_spec_lookup): New function ...
1275 (ssh_request_process): ... use it here; depending on secret_input
1276 flag allocate secure or non-secure memory.
1278 2005-03-02 Moritz Schulte <moritz@g10code.com>
1280 * command-ssh.c (sexp_key_extract): Removed FIXME, since
1281 xtrymallos does set errno correctly by now.
1282 (sexp_extract_identifier): Remove const attribute from identifier.
1283 (ssh_handler_request_identities): Remove const attribute from
1284 key_type; removes ugly casts and FIXME.
1285 (sexp_key_extract): Remove const attribute from comment.
1286 (ssh_send_key_public): Remove const attribute from
1287 key_type/comment; removes ugly cast.
1288 (data_sign): Remove const attribute from identifier; removes ugly
1290 (key_secret_to_public): Remove const attribute from comment;
1292 (ssh_handler_sign_request): Remove const attribute from p.
1293 (sexp_key_extract): Use make_cstring().
1294 (ssh_key_extract_comment): Likewise.
1295 (ssh_key_to_buffer): Use secure memory for memory area to hold the
1297 Added more comments.
1299 2005-02-25 Werner Koch <wk@g10code.com>
1301 * findkey.c (modify_description): Keep invalid % escapes, so that
1302 %0A may pass through.
1304 * agent.h (server_control_s): New field USE_AUTH_CALL.
1305 * call-scd.c (agent_card_pksign): Make use of it.
1306 * command-ssh.c (data_sign): Set the flag.
1307 (ssh_send_key_public): New arg OVERRIDE_COMMENT.
1308 (card_key_available): Add new arg CARDSN.
1309 (ssh_handler_request_identities): Use the card s/n as comment.
1310 (sexp_key_extract): Use GCRYMPI_FMT_STD.
1313 * learncard.c (make_shadow_info): Moved to ..
1314 * protect.c (make_shadow_info): .. here. Return NULL on malloc
1315 failure. Made global.
1316 * agent.h: Add prototype.
1318 2005-02-24 Werner Koch <wk@g10code.com>
1320 * call-scd.c (unescape_status_string): New. Actual a copy of
1322 (card_getattr_cb, agent_card_getattr): New.
1324 * command-ssh.c (card_key_available): New.
1325 (ssh_handler_request_identities): First see whether a card key is
1328 * gpg-agent.c (handle_connections): Need to check for events if
1329 select returns with -1.
1331 2005-02-23 Werner Koch <wk@g10code.com>
1333 * command-ssh.c (get_passphrase): Removed.
1334 (ssh_identity_register): Partly rewritten.
1335 (open_control_file, search_control_file, add_control_entry): New.
1336 (ssh_handler_request_identities): Return only files listed in our
1339 * findkey.c (unprotect): Check for allocation error.
1341 * agent.h (opt): Add fields to record the startup terminal
1343 * gpg-agent.c (main): Record them and do not force keep display
1344 with --enable-ssh-support.
1345 * command-ssh.c (start_command_handler_ssh): Use them here.
1347 * gpg-agent.c: Renamed option --ssh-support to
1348 --enable-ssh-support.
1350 * command.c (cmd_readkey): New.
1351 (register_commands): Register new command "READKEY".
1353 * command-ssh.c (ssh_request_process): Improved logging.
1355 * findkey.c (agent_write_private_key): Always use plain open.
1356 Don't depend on an umask for permissions.
1357 (agent_key_from_file): Factored file reading code out to ..
1358 (read_key_file): .. new function.
1359 (agent_public_key_from_file): New.
1361 2005-02-22 Werner Koch <wk@g10code.com>
1363 * command-ssh.c (stream_read_string): Removed call to abort on
1364 memory error because the CVS version of libgcrypt makes sure
1365 that ERRNO gets always set on error even with a faulty user
1368 2005-02-19 Moritz Schulte <moritz@g10code.com>
1370 * command-ssh.c (ssh_receive_mpint_list): Slightly rewritten, do
1371 not use elems_secret member of key_spec.
1372 (ssh_key_type_spec): Removed member: elems_secret.
1373 (ssh_key_types): Removed elems_secret data.
1374 (ssh_sexp_construct): Renamed to ...
1375 (sexp_key_construct): ... this; changed callers.
1376 (ssh_sexp_extract): Renamed to ...
1377 (sexp_key_extract): ... this; changed callers.
1378 (ssh_sexp_extract_key_type): Renamed to ...
1379 (sexp_extract_identifier): ... this; changed callers; use
1381 Added more comments.
1383 2005-02-18 Moritz Schulte <moritz@g10code.com>
1385 * command-ssh.c (ssh_sexp_construct): Rewritten generation of sexp
1386 template, clarified.
1387 (ssh_sexp_extract): Support shadowed-private-key-sexp; treat
1388 protected-private key and shadowed-private-key as public keys.
1389 (key_secret_to_public): Rewritten: simply use ssh_sexp_extract()
1390 and ssh_sexp_construct().
1392 2005-02-15 Werner Koch <wk@g10code.com>
1394 * findkey.c (modify_description): Don't increment OUT_LEN during
1397 2005-02-14 Moritz Schulte <moritz@g10code.com>
1399 * command-ssh.c (es_read_byte): Renamed to ...
1400 (stream_es_read_byte): ... this; changed callers.
1401 (es_write_byte): Renamed to ...
1402 (stream_write_byte): ... this; changed callers.
1403 (es_read_uint32): Renamed to ...
1404 (stream_read_uint32): ... this; changed callers.
1405 (es_write_uint32): Renamed to ...
1406 (stream_write_uint32): ... this; changed callers.
1407 (es_read_data): Renamed to ...
1408 (stream_read_data): ... this; changed callers.
1409 (es_write_data): Renamed to ...
1410 (stream_write_data): ... this; changed callers.
1411 (es_read_string): Renamed to ...
1412 (stream_read_string): ... this; changed callers.
1413 (es_read_cstring): Renamed to ...
1414 (stream_read_cstring): ... this; changed callers.
1415 (es_write_string): Renamed to ...
1416 (stream_write_string): ... this; changed callers.
1417 (es_write_cstring): Renamed to ...
1418 (stream_write_cstring): ... this; changed callers.
1419 (es_read_mpi): Renamed to ...
1420 (stream_read_mpi): ... this; changed callers.
1421 (es_write_mpi): Renamed to ...
1422 (stream_write_mpi): ... this; changed callers.
1423 (es_copy): Renamed to ...
1424 (stream_copy): ... this; changed callers.
1425 (es_read_file): Renamed to ...
1426 (file_to_buffer): ... this; changed callers.
1427 (ssh_identity_register): Removed variable description_length;
1428 changed code to use asprintf for description.
1429 (stream_write_uint32): Do not filter out the last byte of shift
1431 (uint32_construct): New macro ...
1432 (stream_read_uint32): ... use it; removed unnecessary cast.
1434 2005-02-03 Werner Koch <wk@g10code.com>
1436 * agent.h (agent_exit): Add JNLIB_GCC_A_NR to indicate that this
1437 function won't return.
1439 * gpg-agent.c (check_for_running_agent): Initialize pid to a
1440 default value if not needed.
1442 * command-ssh.c: Removed stdint.h. s/byte_t/unsigned char/,
1443 s/uint32/u32/ becuase that is what we have always used in GnuPG.
1444 (ssh_request_specs): Moved to top of file.
1445 (ssh_key_types): Ditto.
1446 (make_cstring): Ditto.
1447 (data_sign): Don't use a variable for the passphrase prompt, make
1449 (ssh_request_process):
1452 * findkey.c (modify_description): Renamed arguments for clarity,
1453 polished documentation. Make comment a C-string. Fixed case of
1454 DESCRIPTION being just "%".
1455 (agent_key_from_file): Make sure comment string to a C-string.
1457 * gpg-agent.c (create_socket_name): Cleanup the implemntation, use
1458 DIMof, agent_exit, removed superflous args and return the
1459 allocated string as value. Documented. Changed callers.
1460 (create_server_socket): Cleanups similar to above. Changed callers.
1461 (cleanup_do): Renamed to ..
1462 (remove_socket): .. this. Changed caller.
1463 (handle_connections): The signals are to be handled in the select
1464 and not in the accept. Test all FDs after returning from a
1465 select. Remove the event tests from the accept calls. The select
1466 already assured that the accept won't block.
1468 2005-01-29 Moritz Schulte <moritz@g10code.com>
1470 * command-ssh.c (ssh_handler_request_identities)
1471 (ssh_handler_sign_request, ssh_handler_add_identity)
1472 (ssh_handler_remove_identity, ssh_handler_remove_all_identities)
1473 (ssh_handler_lock, ssh_handler_unlock): Changed to return an error
1474 code instead of a boolean.
1475 (ssh_request_process): Changed to return a boolean instead of an
1476 error; adjust caller.
1477 (ssh_request_handle_t): Adjusted type.
1478 (ssh_request_spec): New member: identifier.
1479 (REQUEST_SPEC_DEFINE): New macro; use it for initialization of
1481 (ssh_request_process): In debugging mode, log identifier of
1483 (start_command_handler_ssh): Moved most of the stream handling
1485 (ssh_request_process): ... here.
1487 2005-01-28 Moritz Schulte <moritz@g10code.com>
1489 * command-ssh.c (ssh_handler_add_identity): Pass ctrl to
1490 ssh_identity_register().
1491 (ssh_identity_register): New argument: ctrl; pass ctrl to
1493 (get_passphrase): Pass ctrl instead of NULL to agent_askpin().
1494 (start_command_handler_ssh): Use agent_init_default_ctrl();
1495 deallocate structure members, which might be dynamically
1497 (lifetime_default): Removed variable.
1498 (ssh_handler_add_identity): Fix ttl handling; renamed variable
1500 (ssh_identity_register): Fix key grip handling.
1502 2005-01-26 Moritz Schulte <moritz@g10code.com>
1504 * command-ssh.c (ssh_handler_sign_request): Confirm to agent
1505 protocol in case of failure.
1507 * command-ssh.c: New file.
1509 * Makefile.am (gpg_agent_SOURCES): New source file: command-ssh.c.
1511 * findkey.c (modify_description): New function.
1512 (agent_key_from_file): Support comment field in key s-expressions.
1514 * gpg-agent.c (enum cmd_and_opt_values): New item: oSSHSupport.
1515 (opts) New entry for oSSHSupport.
1516 New variable: socket_name_ssh.
1517 (cleanup_do): New function based on cleanup().
1518 (cleanup): Use cleanup_do() for socket_name and socket_name_ssh.
1519 (main): New switch case for oSSHSupport.
1520 (main): Move socket name creation code to ...
1521 (create_socket_name): ... this new function.
1522 (main): Use create_socket_name() for creating socket names for
1523 socket_name and for socket_name_ssh in case ssh support is
1525 Move socket creation code to ...
1526 (create_server_socket): ... this new function.
1527 (main): Use create_server_socket() for creating sockets.
1528 In case standard_socket is set, do not only store a socket name in
1529 socket_name, but also in socket_name_ssh.
1530 Generate additional environment info strings for ssh support.
1531 Pass additional ssh socket argument to handle_connections.
1532 (start_connection_thread_ssh): New function.
1533 (handle_connections): Use select to multiplex between gpg-agent
1534 and ssh-agent protocol.
1536 * agent.h (struct opt): New member: ssh_support.
1537 (start_command_handler_ssh): Add prototype.
1539 2005-01-04 Werner Koch <wk@g10code.com>
1541 * trustlist.c (agent_marktrusted): Use "Cancel" for the first
1542 confirmation and made the strings translatable.
1544 * cache.c (agent_put_cache): Fix the test for using the default
1547 2004-12-21 Werner Koch <wk@g10code.com>
1549 * preset-passphrase.c (preset_passphrase): Handle --passphrase.
1551 * Makefile.am (gpg_preset_passphrase_LDADD): Reorder libs so that
1552 pwquery may use stuff from jnlib. Conditionally add -lwsock2
1553 (gpg_protect_tool_LDADD): Ditto.
1555 * preset-passphrase.c (main): Use default_homedir().
1556 (main) [W32]: Initialize sockets.
1558 2004-12-21 Marcus Brinkmann <marcus@g10code.de>
1560 * Makefile.am (libexec_PROGRAMS): Add gpg-preset-passphrase.
1561 (gpg_preset_passphrase_SOURCES, gpg_preset_passphrase_LDADD): New
1563 * agent.h (opt): New member allow_cache_passphrase.
1564 * cache.c (housekeeping): Check if R->ttl is not negative.
1565 (agent_put_cache): Allow ttl to be negative.
1566 * command.c (parse_hexstring): Allow something to follow the
1568 (cmd_cache_passphrase): New function.
1569 (register_commands): Add it.
1570 * gpg-agent.c: Handle --allow-preset-passphrase.
1571 * preset-passphrase.c: New file.
1573 2004-12-21 Werner Koch <wk@g10code.com>
1575 * gpg-agent.c (main): Use default_homedir().
1576 * protect-tool.c (main): Ditto.
1578 2004-12-20 Werner Koch <wk@g10code.com>
1580 * gpg-agent.c (main) [W32]: Now that Mutexes work we can remove
1581 the pth_init kludge.
1582 (main): Add new options --[no-]use-standard-socket.
1583 (check_for_running_agent): Check whether it is running on the
1586 * call-scd.c (init_membuf, put_membuf, get_membuf): Removed. We
1587 now use the identical implementation from ../common/membuf.c.
1589 * pksign.c (agent_pksign): Changed arg OUTFP to OUTBUF and use
1590 membuf functions to return the value.
1591 * pkdecrypt.c (agent_pkdecrypt): Ditto.
1592 * genkey.c (agent_genkey): Ditto.
1593 * command.c (cmd_pksign, cmd_pkdecrypt, cmd_genkey): Replaced
1594 assuan_get_data_fp() by a the membuf scheme.
1595 (clear_outbuf, write_and_clear_outbuf): New.
1597 2004-12-19 Werner Koch <wk@g10code.com>
1599 * query.c (initialize_module_query): New.
1600 * call-scd.c (initialize_module_call_scd): New.
1601 * gpg-agent.c (main): Call them.
1603 2004-12-18 Werner Koch <wk@g10code.com>
1605 * gpg-agent.c (main): Remove special Pth initialize.
1607 * agent.h (map_assuan_err): Define in terms of
1608 map_assuan_err_with_source.
1610 2004-12-17 Moritz Schulte <moritz@g10code.com>
1612 * query.c: Undo change from 2004-12-05.
1614 2004-12-15 Werner Koch <wk@g10code.com>
1616 * gpg-agent.c [W32]: Various hacks to make it work.
1618 * findkey.c (agent_write_private_key) [W32]: Adjust open call.
1620 * call-scd.c (start_scd) [W32]: Don't check whether the daemon
1621 didn't died. To hard to do under Windows.
1622 (start_scd) [W32]: Disable sending of the event signal option.
1624 * protect-tool.c (read_file, export_p12_file) [W32]: Use setmode
1625 to get stdout and stin into binary mode.
1627 2004-12-05 Moritz Schulte <moritz@g10code.com>
1629 * query.c (start_pinentry): Allow CTRL be NULL.
1631 2004-10-22 Werner Koch <wk@g10code.com>
1633 * gpg-agent.c (parse_rereadable_options): Return "not handled"
1634 when the log file has not beend hadled. This is will let the main
1635 option processing continue. Fixed a bug introduced on 2004-09-4
1636 resulting in logging to stderr until a HUP has been given.
1637 (main): Don't close the listen FD.
1639 2004-09-30 Werner Koch <wk@g10code.com>
1641 * Makefile.am: Adjusted from gettext 1.14.
1643 2004-09-29 Werner Koch <wk@g10code.com>
1645 * minip12.c (parse_bag_encrypted_data): Print error if a bad
1646 passphrase has been given.
1648 2004-09-28 Werner Koch <wk@g10code.com>
1650 * protect.c (agent_unprotect): Fixed wiping of CLEARTEXT. Thanks
1651 to Moritz for pointing this out.
1653 2004-09-25 Moritz Schulte <moritz@g10code.com>
1655 * agent.h: Declare: agent_pksign_do.
1656 (struct server_control_s): New member: raw_value.
1658 * pksign.c (do_encode_md): New argument: raw_value; support
1659 generation of raw (non-pkcs1) data objects; adjust callers.
1660 (agent_pksign_do): New function, based on code ripped
1661 out from agent_pksign.
1662 (agent_pksign): Use agent_pksign_do.
1664 * command.c (start_command_handler): Set ctrl.digest.raw_value.
1666 2004-09-09 Werner Koch <wk@g10code.de>
1668 * gpg-agent.c (check_for_running_agent): New.
1669 (main): The default action is now to check for an already running
1671 (parse_rereadable_options): Set logfile only on reread.
1672 (main): Do not print the "is development version" note.
1674 2004-08-20 Werner Koch <wk@g10code.de>
1676 * gpg-agent.c: New option --max-cache-ttl. Suggested by Alexander
1678 * cache.c (housekeeping): Use it here instead of the hardwired
1681 * query.c (start_pinentry): Use a timeout for the pinentry lock.
1683 2004-08-18 Werner Koch <wk@g10code.de>
1685 * protect-tool.c (get_passphrase): Make sure that the default
1686 prompts passed to gpg-agent are utf-8 encoded. Add new prompt values.
1687 (import_p12_file, import_p12_file, export_p12_file): Changed calls
1688 to get_passphrase so that better prompts are displayed.
1689 (get_new_passphrase): New.
1691 2004-07-22 Werner Koch <wk@g10code.de>
1693 * trustlist.c (read_list): Allow colons in the fingerprint.
1694 (headerblurb): Rephrased.
1696 * gpg-agent.c (handle_connections): Increase the stack size ot 256k.
1698 2004-06-20 Moritz Schulte <moritz@g10code.com>
1700 * gpg-agent.c: Include <sys/stat.h> (build fix for BSD).
1702 2004-05-11 Werner Koch <wk@gnupg.org>
1704 * gpg-agent.c (handle_signal): Reload the trustlist on SIGHUP.
1705 (start_connection_thread): Hack to simulate a ticker.
1706 * trustlist.c (agent_trustlist_housekeeping)
1707 (agent_reload_trustlist): New. Protected all global functions
1708 here with a simple counter which is sufficient for Pth.
1710 2004-05-03 Werner Koch <wk@gnupg.org>
1712 * gpg-agent.c: Remove help texts for options lile --lc-ctype.
1713 (main): New option --allow-mark-trusted.
1714 * trustlist.c (agent_marktrusted): Use it here.
1716 2004-04-30 Werner Koch <wk@gnupg.org>
1718 * protect-tool.c: New option --enable-status-msg.
1719 (store_private_key): Print status messages for imported keys.
1720 (read_and_unprotect): Ditto for bad passphrase.
1722 * gpg-agent.c (parse_rereadable_options): New arg REREAD. Allow
1724 (current_logfile): New.
1726 2004-04-26 Werner Koch <wk@gnupg.org>
1728 * call-scd.c (start_scd): Do not register an event signal if we
1729 are running as a pipe server.
1731 2004-04-21 Werner Koch <wk@gnupg.org>
1733 * call-scd.c (start_scd): Send event-signal option. Always check
1734 that the scdaemon is still running.
1736 * gpg-agent.c (handle_signal): Do not use SIGUSR{1,2} anymore for
1737 changing the verbosity.
1739 2004-04-16 Werner Koch <wk@gnupg.org>
1741 * gpg-agent.c (main): Tell the logging code that we are running
1744 2004-04-06 Werner Koch <wk@gnupg.org>
1746 * gpg-agent.c (main): Use new libgcrypt thread library register
1749 2004-03-23 Marcus Brinkmann <marcus@g10code.de>
1751 * gpg-agent.c (main): For now, always print the default config
1752 file name for --gpgconf-list.
1754 2004-03-17 Werner Koch <wk@gnupg.org>
1756 * gpg-agent.c (main) <gpgconf>: Fixed default value quoting.
1758 2004-03-16 Werner Koch <wk@gnupg.org>
1760 * gpg-agent.c (parse_rereadable_options): Use the new
1761 DEFAULT_CACHE_TTL macro.
1762 (main): Updated --gpgconf-list output.
1764 2004-02-21 Werner Koch <wk@gnupg.org>
1766 * command.c (cmd_passwd): Take acount of a key description.
1768 * genkey.c (reenter_compare_cb): Do not set the error text.
1769 (agent_protect_and_store, agent_genkey): Force a re-enter after a
1770 non-matching passphrase.
1771 * query.c (agent_askpin): Add new arg INITIAL_ERRTEXT; changed
1774 2004-02-19 Werner Koch <wk@gnupg.org>
1776 * protect-tool.c: New options --have-cert and --prompt.
1777 (export_p12_file): Read a certificate from STDIN and pass it to
1778 p12_build. Detect a keygrip and construct the filename in that
1779 case. Unprotcet a key if needed. Print error messages for key
1780 formats we can't handle.
1781 (release_passphrase): New.
1782 (get_passphrase): New arg PROMPTNO. Return the allocated
1783 string. Changed all callers.
1785 * minip12.c: Revamped the build part.
1786 (p12_build): New args CERT and CERTLEN.
1788 2004-02-18 Werner Koch <wk@gnupg.org>
1790 * protect-tool.c (main): Setup the used character set.
1791 * gpg-agent.c (main): Ditto.
1793 * gpg-agent.c (set_debug): New. New option --debug-level.
1794 (main): New option --gpgconf-list.
1796 2004-02-17 Werner Koch <wk@gnupg.org>
1798 * pksign.c (do_encode_md): Cleaned up by using gcry_sexp_build.
1800 * Makefile.am (gpg_protect_tool_SOURCES): Removed
1801 simple-pwquery.[ch], as we once moved it to ../common.
1803 2004-02-13 Werner Koch <wk@gnupg.org>
1805 * command.c (cmd_setkeydesc): New.
1806 (register_commands): Add command SETKEYDESC.
1807 (cmd_pksign, cmd_pkdecrypt): Use the key description.
1808 (reset_notify): Reset the description.
1809 * findkey.c (unprotect): Add arg DESC_TEXT.
1810 (agent_key_from_file): Ditto.
1811 * pksign.c (agent_pksign): Ditto.
1812 * pkdecrypt.c (agent_pkdecrypt): Ditto. Made CIPHERTEXT an
1815 * protect-tool.c (main): New options --no-fail-on-exist, --homedir.
1816 (store_private_key): Use them here.
1818 2004-02-12 Werner Koch <wk@gnupg.org>
1820 * protect-tool.c (read_file, main): Allow reading from stdin.
1822 * Makefile.am: Include cmacros.am for common flags.
1823 (libexec_PROGRAMS): Put gpg-protect-tool there.
1825 2004-02-10 Werner Koch <wk@gnupg.org>
1827 * minip12.c (parse_bag_encrypted_data): Finished implementation.
1828 (p12_parse): Add callback args.
1829 * protect-tool.c (import_p12_cert_cb): New.
1830 (import_p12_file): Use it.
1832 2004-02-06 Werner Koch <wk@gnupg.org>
1834 * minip12.c (crypt_block): Add arg CIPHER_ALGO; changed all callers.
1835 (set_key_iv): Add arg KEYBYTES; changed caller.
1837 2004-02-03 Werner Koch <wk@gnupg.org>
1839 * findkey.c (agent_key_from_file): Extra paranoid wipe.
1840 * protect.c (agent_unprotect): Ditto.
1841 (merge_lists): Ditto. Add arg RESULTLEN.
1842 * pkdecrypt.c (agent_pkdecrypt): Don't show the secret key even in
1845 * protect.c: Add DSA and Elgamal description.
1847 2004-01-29 Werner Koch <wk@gnupg.org>
1849 * agent.h (server_control_s): Add connection_fd field.
1850 * command.c (start_command_handler): Init it here.
1851 * gpg-agent.c (agent_init_default_ctrl): and here.
1852 * call-scd.c: Add the CTRL arg to all functions calling start_scd
1853 and pass it to start_scd. Changed all callers
1854 (start_scd): Keep track of the current active connection.
1855 (agent_reset_scd): New.
1856 * command.c (start_command_handler): Call it here.
1857 * learncard.c (agent_handle_learn): Add arg CTRL; changed caller.
1858 (send_cert_back): Ditto.
1860 2004-01-28 Werner Koch <wk@gnupg.org>
1862 * trustlist.c (agent_marktrusted): Check whether the trustlist is
1865 2004-01-27 Werner Koch <wk@gnupg.org>
1867 * sexp-parse.h: Moved to ../common.
1869 2004-01-24 Werner Koch <wk@gnupg.org>
1871 * call-scd.c (atfork_cb): New.
1872 (start_scd): Make sure secmem gets cleared.
1873 * query.c (atfork_cb): New.
1874 (start_pinentry): Make sure secmem gets cleared.
1876 2004-01-16 Werner Koch <wk@gnupg.org>
1878 * findkey.c (agent_key_from_file): Now return an error code so
1879 that we have more detailed error messages in the upper layers.
1880 This fixes the handling of pinentry's cancel button.
1881 * pksign.c (agent_pksign): Changed accordingly.
1882 * pkdecrypt.c (agent_pkdecrypt): Ditto.
1883 * command.c (cmd_passwd): Ditto.
1885 2003-12-16 Werner Koch <wk@gnupg.org>
1887 * gpg-agent.c (main): Set the prefixes for assuan logging.
1889 2003-12-15 Werner Koch <wk@gnupg.org>
1891 * protect.c (do_encryption): Use gcry_create_nonce instad of the
1892 obsolete WEAK_RANDOM.
1894 2003-11-20 Werner Koch <wk@gnupg.org>
1896 * sexp-parse.h (snext): Don't use atoi_1 and digitp macros, so
1897 that this file is useful by other applications too.
1899 2003-10-27 Werner Koch <wk@gnupg.org>
1901 * command.c (cmd_get_confirmation): New command.
1903 2003-08-20 Timo Schulz <twoaday@freakmail.de>
1905 * pksign.c (do_encode_md): Allocate enough space. Cast md
1906 byte to unsigned char to prevent sign extension.
1908 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1910 * pksign.c (do_encode_md): Due to the fact pkcs#1 padding
1911 is now in Libgcrypt, use the new interface.
1913 2003-07-31 Werner Koch <wk@gnupg.org>
1915 * Makefile.am (gpg_agent_LDADD): Added INTLLIBS.
1916 (gpg_protect_tool_SOURCES): Added simple-pwquery.[ch]
1918 2003-07-27 Werner Koch <wk@gnupg.org>
1920 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1922 2003-07-15 Werner Koch <wk@gnupg.org>
1924 * simple-pwquery.c, simple-pwquery.h: Moved to ../common.
1925 * Makefile.am (gpg_protect_tool_LDADD): Add simple-pwquery.o.
1926 Removed it from xx_SOURCES.
1928 2003-07-04 Werner Koch <wk@gnupg.org>
1930 * gpg-agent.c (handle_connections): Kludge to allow use of Pth 1
1933 2003-06-30 Werner Koch <wk@gnupg.org>
1935 * call-scd.c (learn_status_cb): Store the serialno in PARM.
1937 2003-06-26 Werner Koch <wk@gnupg.org>
1939 * call-scd.c (agent_card_serialno): Don't do a RESET anymore.
1941 2003-06-25 Werner Koch <wk@gnupg.org>
1943 * command.c (cmd_scd): New.
1944 * call-scd.c (agent_card_scd): New.
1945 * divert-scd.c (divert_generic_cmd): New
1947 * call-scd.c (agent_card_learn): New callback args SINFO.
1948 (learn_status_cb): Pass all other status lines to the sinfo
1950 * learncard.c (release_sinfo, sinfo_cb): New.
1951 (agent_handle_learn): Pass the new cb to the learn function and
1952 pass the collected information back to the client's assuan
1955 * gpg-agent.c (main): Moved pth_init before gcry_check_version.
1957 2003-06-24 Werner Koch <wk@gnupg.org>
1959 * gpg-agent.c (handle_connections): Adjusted for Pth 2.0
1961 Adjusted for changes in the libgcrypt API. Some more fixes for the
1964 2003-06-04 Werner Koch <wk@gnupg.org>
1966 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1968 2003-06-03 Werner Koch <wk@gnupg.org>
1970 Changed all error codes in all files to the new libgpg-error scheme.
1972 * agent.h: Include gpg-error.h and errno.h
1973 * Makefile.am: Link with libgpg-error
1975 * query.c: assuan.h is now a system header.
1976 * genkey.c (agent_genkey): Fixed silly use of xmalloc by
1979 2003-04-29 Werner Koch <wk@gnupg.org>
1981 * command.c (register_commands): Adjusted for new Assuan semantics.
1983 * Makefile.am: Don't override LDFLAGS.
1985 2002-12-04 Werner Koch <wk@gnupg.org>
1987 * gpg-agent.c: New variable config_filename.
1988 (parse_rereadable_options): New.
1989 (main): Use it here. Add setting of default values, set
1991 (reread_configuration): Filled with actual code.
1993 2002-12-03 Werner Koch <wk@gnupg.org>
1995 * protect-tool.c (read_key): Don't run make_canonical on a NULL
1998 * command.c (parse_hexstring): New.
1999 (cmd_sethash): Use it.
2000 (parse_keygrip): New.
2001 (cmd_havekey, cmd_sigkey): Use it.
2003 * genkey.c (agent_protect_and_store): New.
2004 (store_key): Add arg FORCE.
2005 (agent_genkey): Pass false to this force of store_key.
2007 2002-11-13 Werner Koch <wk@gnupg.org>
2009 * gpg-agent.c (main): Switch all messages to utf-8.
2011 * simple-pwquery.c (agent_send_all_options): Use $GPG_TTY and
2014 * cache.c (new_data): Uiih - /sizeof d/sizeof *d/.
2016 2002-11-10 Werner Koch <wk@gnupg.org>
2018 * command.c (option_handler): Fix keep_tty check.
2020 2002-11-06 Werner Koch <wk@gnupg.org>
2022 * gpg-agent.c (main): Make sure we have a default ttyname.
2023 * command.c (option_handler): Check opt.keep_tty here
2024 * query.c (start_pinentry): but not anymore here.
2026 2002-11-05 Werner Koch <wk@gnupg.org>
2028 * agent.h (opt,server_control_s): Move display and lc_ variables
2029 to the control struct so that they are per connection.
2030 * gpg-agent.c (agent_init_default_ctrl): New.
2031 (main): Assign those command line options to new default_* variables.
2032 Reset DISPLAY in server mode so that tehre is no implicit default.
2033 * command.c (start_command_handler): Initialize and deinitialize
2035 (option_handler): Work on the ctrl values and not on the opt.
2036 * query.c (start_pinentry): New argument CTRL to set the display
2037 connection specific. Changed all callers to pass this value.
2038 (agent_askpin,agent_get_passphrase,agent_get_confirmation): Add
2039 CTRL arg and pass it ot start_pinentry.
2040 * command.c (cmd_get_passphrase): Pass CTRL argument.
2041 * trustlist.c (agent_marktrusted): Add CTRL argument
2042 * command.c (cmd_marktrusted): Pass CTRL argument
2043 * divert-scd.c (ask_for_card): Add CTRL arg.
2044 (divert_pksign,divert_pkdecrypt): Ditto. Changed caller.
2045 (getpin_cb): Use OPAQUE to pass the CTRL variable. Changed both
2047 * findkey.c (unprotect): Add CTRL arg.
2048 (agent_key_from_file): Ditto.
2050 * query.c (unlock_pinentry): Disconnect the pinentry so that we
2051 start a new one for each request. This is required to support
2052 clients with different environments (e.g. X magic cookies).
2054 2002-09-05 Neal H. Walfield <neal@cs.uml.edu>
2056 * gpg-agent.c (main) [USE_GNU_PTH]: No need to call
2057 assuan_set_io_func as assuan is smart.
2059 2002-09-25 Werner Koch <wk@gnupg.org>
2061 * gpg-agent.c (handle_signal): Flush cache on SIGHUP.
2062 * cache.c (agent_flush_cache): New.
2064 * gpg-agent.c, agent.h: Add --keep-display and --keep-tty.
2065 * query.c (start_pinentry): Implement them. The option passing
2066 needs more thoughts.
2068 2002-09-09 Werner Koch <wk@gnupg.org>
2070 * gpg-agent.c (create_private_keys_directory)
2071 (create_directories): New.
2072 (main): Try to create a home directory.
2074 2002-09-04 Neal H. Walfield <neal@g10code.de>
2076 * gpg-agent.c (main): Use sigaction, not signal.
2078 2002-09-03 Neal H. Walfield <neal@g10code.de>
2080 * findkey.c: Include <fcntl.h>.
2081 (agent_write_private_key): Prefer POSIX compatibity, open and
2082 fdopen, over the simplicity of GNU extensions, fopen(file, "x").
2084 2002-08-22 Werner Koch <wk@gnupg.org>
2086 * query.c (agent_askpin): Provide the default desc text depending
2087 on the pininfo. Do the basic PIN verification only when
2090 2002-08-21 Werner Koch <wk@gnupg.org>
2092 * query.c (agent_askpin): Hack to show the right default prompt.
2093 (agent_get_passphrase): Ditto.
2095 * trans.c: Removed and replaced all usages with standard _()
2097 * divert-scd.c (getpin_cb): Pass a more descritive text to the
2100 * Makefile.am: Renamed the binary protect-tool to gpg-protect-tool.
2101 * protect-tool.c: Removed the note about internal use only.
2103 * gpg-agent.c (main): New option --daemon so that the program is
2104 not accidently started in the background.
2106 2002-08-16 Werner Koch <wk@gnupg.org>
2108 * call-scd.c (learn_status_cb): Handle CERTINFO status.
2109 (agent_card_learn): Add args for certinfo cb.
2110 * learncard.c (release_certinfo,certinfo_cb): New.
2111 (send_cert_back): New. With factored out code from ..
2112 (agent_handle_learn): here. Return certinfo stuff.
2114 2002-07-26 Werner Koch <wk@gnupg.org>
2116 * gpg-agent.c (main): New option --ignore-cache-for-signing.
2117 * command.c (option_handler): New server option
2118 use-cache-for-signing defaulting to true.
2119 (cmd_pksign): handle global and per session option.
2120 * findkey.c (agent_key_from_file, unprotect): New arg
2121 ignore_cache. Changed all callers.
2122 * pksign.c (agent_pksign): Likewise.
2124 2002-06-29 Werner Koch <wk@gnupg.org>
2126 * query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY.
2127 * call-scd.c (start_scd): Use GNUPG_DEFAULT_SCDAEMON.
2129 2002-06-28 Werner Koch <wk@gnupg.org>
2131 * protect-tool.c (export_p12_file): New.
2132 (main): New command --p12-export.
2133 * minip12.c (create_final,p12_build,compute_tag_length): New.
2134 (store_tag_length): New.
2136 2002-06-27 Werner Koch <wk@gnupg.org>
2138 * minip12.c (crypt_block): Renamed from decrypt_block, add arg to
2141 * Makefile.am (pkglib_PROGRAMS): Put protect-tool there.
2143 * findkey.c (agent_write_private_key,agent_key_from_file)
2144 (agent_key_available): Use GNUPG_PRIVATE_KEYS_DIR constant.
2145 * gpg-agent.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
2147 * protect-tool.c (store_private_key): New.
2148 (import_p12_file): Store the new file if requested.
2149 (main): New options --force and --store.
2151 * gpg-agent.c (main): Set a global flag when running detached.
2152 * query.c (start_pinentry): Pass the list of FD to keep in the
2153 child when not running detached.
2154 * call-scd.c (start_scd): Ditto.
2156 2002-06-26 Werner Koch <wk@gnupg.org>
2158 * command.c (cmd_istrusted, cmd_listtrusted, cmd_marktrusted)
2159 (cmd_pksign, cmd_pkdecrypt, cmd_genkey, cmd_get_passphrase)
2160 (cmd_learn): Print an error message for a failed operation.
2162 * simple-pwquery.c, simple-pwquery.h: New.
2163 * protect-tool. (get_passphrase): New, used to get a passphrase
2164 from the agent if none was given on the command line.
2166 2002-06-25 Werner Koch <wk@gnupg.org>
2168 * protect-tool.c (rsa_key_check): New.
2169 (import_p12_file): New.
2170 (main): New command --p12-import.
2171 * minip12.c, minip12.h: New.
2173 2002-06-24 Werner Koch <wk@gnupg.org>
2175 * protect-tool.c (read_file): New.
2176 (read_key): Factored most code out to read_file.
2178 2002-06-17 Werner Koch <wk@gnupg.org>
2180 * agent.h: Add a callback function to the pin_entry_info structure.
2181 * query.c (agent_askpin): Use the callback to check for a correct
2182 PIN. Removed the start_err_text argument because it is not
2183 anymore needed; changed callers.
2184 * findkey.c (unprotect): Replace our own check loop by a callback.
2185 (try_unprotect_cb): New.
2186 * genkey.c (reenter_compare_cb): New.
2187 (agent_genkey): Use this callback here. Fixed setting of the pi2
2188 variable and a segv in case of an empty PIN.
2190 * divert-scd.c (getpin_cb): Removed some unused stuff and
2191 explained what we still have to change.
2193 2002-06-12 Werner Koch <wk@gnupg.org>
2195 * gpg-agent.c (main): New option --disable-pth.
2197 2002-06-11 Werner Koch <wk@gnupg.org>
2199 * protect-tool.c: Add command --show-keygrip
2200 (show_keygrip): New.
2202 2002-05-23 Werner Koch <wk@gnupg.org>
2204 * call-scd.c: Seirialized all scdaeom access when using Pth.
2206 * cache.c: Made the cache Pth-thread-safe.
2207 (agent_unlock_cache_entry): New.
2208 * findkey.c (unprotect): Unlock the returned cache value.
2209 * command.c (cmd_get_passphrase): Ditto.
2211 * gpg-agent.c (main): Register pth_read/write with Assuan.
2213 2002-05-22 Werner Koch <wk@gnupg.org>
2215 * query.c: Serialized all pinentry access when using Pth.
2217 * gpg-agent.c (handle_signal,start_connection_thread)
2218 (handle_connections): New
2219 (main): Use the new Pth stuff to allow concurrent connections.
2220 * command.c (start_command_handler): Add new arg FD so that the
2221 fucntion can also be used for an already connected socket.
2222 * Makefile.am: Link with Pth.
2224 2002-05-14 Werner Koch <wk@gnupg.org>
2226 * cache.c (housekeeping, agent_put_cache): Use our time() wrapper.
2228 2002-04-26 Werner Koch <wk@gnupg.org>
2230 * cache.c (agent_put_cache): Reinitialize the creation time and
2231 the ttl when reusing a slot.
2233 * call-scd.c (start_scd): Print debug messages only with debug
2235 * query.c (start_pinentry): Ditto.
2237 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
2239 * agent.h (agent_get_confirmation): Replace paramter prompt with
2240 two parameters ok and cancel.
2241 * query.c (agent_get_confirmation): Likewise. Implement this.
2242 * trustlist.c (agent_marktrusted): Fix invocation of
2243 agent_get_confirmation.
2244 * divert-scd.c (ask_for_card): Likewise.
2246 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
2248 * agent.h (struct opt): Add members display, ttyname, ttytype,
2249 lc_ctype, and lc_messages.
2250 * gpg-agent.c (enum cmd_and_opt_values): Add oDisplay, oTTYname,
2251 oTTYtype, oLCctype, and LCmessages.
2252 (main): Handle these options.
2253 * command.c (option_handler): New function.
2254 (register_commands): Register option handler.
2255 * query.c (start_pinentry): Pass the various display and tty
2256 options to the pinentry.
2258 2002-04-05 Werner Koch <wk@gnupg.org>
2260 * protect-tool.c (show_file): New. Used as default action.
2262 2002-03-28 Werner Koch <wk@gnupg.org>
2264 * divert-scd.c (encode_md_for_card): Don't do the pkcs-1 padding,
2265 the scdaemon should take care of it.
2266 (ask_for_card): Hack to not display the trailing zero.
2268 2002-03-11 Werner Koch <wk@gnupg.org>
2270 * learncard.c (kpinfo_cb): Remove the content restrictions from
2273 2002-03-06 Werner Koch <wk@gnupg.org>
2276 * divert-scd.c (ask_for_card): The serial number is binary so
2277 convert it to hex here.
2278 * findkey.c (agent_write_private_key): New.
2279 * genkey.c (store_key): And use it here.
2281 * pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done.
2282 * divert-scd.c (divert_pkdecrypt): Changed interface and
2285 2002-03-05 Werner Koch <wk@gnupg.org>
2287 * call-scd.c (inq_needpin): New.
2288 (agent_card_pksign): Add getpin_cb args.
2289 (agent_card_pkdecrypt): New.
2291 2002-03-04 Werner Koch <wk@gnupg.org>
2293 * pksign.c (agent_pksign): Changed how the diversion is done.
2294 * divert-scd.c (divert_pksign): Changed interface and implemented it.
2295 (encode_md_for_card): New.
2296 * call-scd.c (agent_card_pksign): New.
2298 2002-02-28 Werner Koch <wk@gnupg.org>
2300 * pksign.c (agent_pksign): Detect whether a Smartcard is to be
2301 used and divert the operation in this case.
2302 * pkdecrypt.c (agent_pkdecrypt): Likewise
2303 * findkey.c (agent_key_from_file): Add optional arg shadow_info
2304 and have it return information about a shadowed key.
2305 * protect.c (agent_get_shadow_info): New.
2307 * protect.c (snext,sskip,smatch): Moved to
2308 * sexp-parse.h: New file.
2309 * divert-scd.c: New.
2311 2002-02-27 Werner Koch <wk@gnupg.org>
2313 * protect.c (agent_shadow_key): New.
2315 * command.c (cmd_learn): New command LEARN.
2316 * gpg-agent.c: New option --scdaemon-program.
2317 * call-scd.c (start_scd): New. Based on query.c
2318 * query.c: Add 2 more arguments to all uses of assuan_transact.
2320 2002-02-18 Werner Koch <wk@gnupg.org>
2322 * findkey.c (unprotect): Show an error message for a bad passphrase.
2324 * command.c (cmd_marktrusted): Implemented.
2325 * trustlist.c (agent_marktrusted): New.
2326 (open_list): Add APPEND arg.
2328 * query.c (agent_get_confirmation): New.
2330 2002-02-06 Werner Koch <wk@gnupg.org>
2332 * cache.c (housekeeping): Fixed linking in the remove case.
2334 2002-02-01 Werner Koch <wk@gnupg.org>
2336 * gpg-agent.c: New option --default-cache-ttl.
2337 * cache.c (agent_put_cache): Use it.
2339 * cache.c: Add a few debug outputs.
2341 * protect.c (agent_private_key_type): New.
2342 * agent.h: Add PRIVATE_KEY_ enums.
2343 * findkey.c (agent_key_from_file): Use it to decide whether we
2344 have to unprotect a key.
2345 (unprotect): Cache the passphrase.
2347 * findkey.c (agent_key_from_file,agent_key_available): The key
2348 files do now require a ".key" suffix to make a script's life
2350 * genkey.c (store_key): Ditto.
2352 2002-01-31 Werner Koch <wk@gnupg.org>
2354 * genkey.c (store_key): Protect the key.
2355 (agent_genkey): Ask for the passphrase.
2356 * findkey.c (unprotect): Actually unprotect the key.
2357 * query.c (agent_askpin): Add an optional start_err_text.
2359 2002-01-30 Werner Koch <wk@gnupg.org>
2362 (hash_passphrase): Based on the GnuPG 1.0.6 version.
2363 * protect-tool.c: New
2365 2002-01-29 Werner Koch <wk@gnupg.org>
2367 * findkey.c (agent_key_available): New.
2368 * command.c (cmd_havekey): New.
2369 (register_commands): And register new command.
2371 2002-01-20 Werner Koch <wk@gnupg.org>
2373 * command.c (cmd_get_passphrase): Remove the plus signs.
2375 * query.c (start_pinentry): Send no-grab option to pinentry
2376 * gpg-agent.c (main): Move variable grab as no_grab to agent.h.
2378 2002-01-19 Werner Koch <wk@gnupg.org>
2380 * gpg-agent.c (main): Disable core dumps.
2383 * command.c (cmd_get_passphrase): Use the cache.
2384 (cmd_clear_passphrase): Ditto.
2386 * gpg-agent.c: Removed unused cruft and implement the socket
2388 (my_strusage): Take bug report address from configure.ac.
2389 * command.c (start_command_handler): Add an argument to start as
2391 (start_command_handler): Enable Assuan logging.
2393 2002-01-15 Werner Koch <wk@gnupg.org>
2396 * command.c (cmd_istrusted, cmd_listtrusted, cmd_marktrusted): New.
2398 2002-01-07 Werner Koch <wk@gnupg.org>
2400 * genkey.c: Store the secret part and return the public part.
2402 2002-01-03 Werner Koch <wk@gnupg.org>
2404 * command.c (cmd_get_passphrase): New.
2405 (cmd_clear_passphrase): New.
2406 * query.c (agent_get_passphrase): New.
2408 2002-01-02 Werner Koch <wk@gnupg.org>
2411 * command.c (cmd_genkey): New.
2413 * command.c (rc_to_assuan_status): Removed and changed all callers
2414 to use map_to_assuan_status.
2416 2001-12-19 Werner Koch <wk@gnupg.org>
2418 * keyformat.txt: New.
2420 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
2422 * query.c (start_pinentry): Add new argument to assuan_pipe_connect.
2424 2001-12-18 Werner Koch <wk@gnupg.org>
2426 * Makefile.am: Use LIBGCRYPT macros
2428 2001-12-14 Werner Koch <wk@gnupg.org>
2430 * gpg-agent.c (main): New option --batch. New option --debug-wait
2431 n, so that it is possible to attach gdb when used in server mode.
2432 * query.c (agent_askpin): Don't ask in batch mode.
2434 * command.c: Removed the conversion macros as they are now in
2437 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
2439 * query.c (LINELENGTH): Removed.
2440 (agent_askpin): Use ASSUAN_LINELENGTH, not LINELENGTH.
2442 2001-11-19 Werner Koch <wk@gnupg.org>
2444 * gpg-agent.c: Removed all GUI code, removed code for old
2445 protocol. New code to use the Assuan protocol as a server and
2446 also to communicate with a new ask-passphrase utility.
2448 2000-11-22 Werner Koch <wk@gnupg.org>
2450 * gpg-agent.c (main): csh support by Dan Winship, new options --sh
2451 and --csh and set default by consulting $SHELL.
2453 Mon Aug 21 17:59:17 CEST 2000 Werner Koch <wk@openit.de>
2455 * gpg-agent.c (passphrase_dialog): Cleanup the window and added the
2456 user supplied text to the window.
2457 (main): Fixed segv in gtk_init when used without a command to start.
2459 * gpg-agent.c: --flush option.
2461 (req_clear_passphrase): Implemented.
2463 Fri Aug 18 14:27:14 CEST 2000 Werner Koch <wk@openit.de>
2469 Copyright 2001, 2002, 2003, 2004, 2005,
2470 2007, 2008, 2009 Free Software Foundation, Inc.
2472 This file is free software; as a special exception the author gives
2473 unlimited permission to copy and/or distribute it, with or without
2474 modifications, as long as this notice is preserved.
2476 This file is distributed in the hope that it will be useful, but
2477 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
2478 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.