1 2006-06-09 Marcus Brinkmann <marcus@g10code.de>
3 * Makefile.am (gpg_agent_LDADD): Add $(NETLIBS).
4 (gpg_protect_tool_LDADD): Likewise.
5 (gpg_preset_passphrase_LDADD): Likewise.
7 2006-04-09 Moritz Schulte <moritz@g10code.com>
9 * command-ssh.c (ssh_request_process): Removed FIXME mentioning a
12 2006-04-01 Moritz Schulte <moritz@g10code.com>
14 * command-ssh.c (ssh_identity_register): Make KEY_GRIP_RAW be 20
15 instead of 21 bytes long; do not fill KEY_GRIP_RAW[20] with NUL
16 byte - KEY_GRIP_RAW is a raw binary string anyway.
18 2006-02-09 Werner Koch <wk@g10code.com>
20 * call-scd.c (struct scd_local_s): New field next_local.
21 (scd_local_list): New.
22 (start_scd): Put new local into list.
23 (agent_reset_scd): Remove it from the list.
24 (agent_scd_check_aliveness): Here is the actual reason why we need
26 (agent_reset_scd): Send the new command RESTART instead of RESET.
28 2005-12-16 Werner Koch <wk@g10code.com>
30 * minip12.c (cram_octet_string): New
31 (p12_parse): Use it for NDEFed bags.
32 (parse_bag_data): Ditto.
33 (string_to_key, set_key_iv, crypt_block): New arg SALTLEN.
34 (p12_build): Use old value 8 for new arg.
35 (parse_bag_encrypted_data, parse_bag_data): Allow for salts of 8
36 to 16 bytes. Add new arg R_CONSUMED.
38 2005-11-24 Werner Koch <wk@g10code.com>
40 * minip12.c (p12_parse): Fixed for case that the key object comes
41 prior to the certificate.
43 2005-10-19 Werner Koch <wk@g10code.com>
45 * divert-scd.c (getpin_cb): Hack to use it for a keypad message.
47 * call-scd.c (inq_needpin): Reworked to support the new KEYPADINFO.
49 * query.c (start_pinentry): Keep track of the owner.
50 (popup_message_thread, agent_popup_message_start)
51 (agent_popup_message_stop, agent_reset_query): New.
52 * command.c (start_command_handler): Make sure a popup window gets
55 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
57 * Makefile.am (gpg_protect_tool_LDADD): Add ../gl/libgnu.a.
58 (gpg_preset_passphrase_LDADD, t_common_ldadd): Likewise.
59 (gpg_agent_LDADD): Add ../gl/libgnu.a after ../common/libcommon.a.
61 2005-09-16 Werner Koch <wk@g10code.com>
63 * minip12.c (build_key_sequence, build_cert_sequence): Fixed
66 2005-09-15 Moritz Schulte <moritz@g10code.com>
68 * t-protect.c (test_agent_protect): Implemented.
69 (main): Disable use of secure memory.
71 2005-09-09 Werner Koch <wk@g10code.com>
73 * minip12.c (p12_build): Oops, array needs to be larger for the
75 (build_cert_bag): Fixed yesterdays change.
77 * command-ssh.c (card_key_available): Let the card handler decide
78 whether the card is supported here. Also get a short serial
79 number to return from the card handler.
81 2005-09-08 Werner Koch <wk@g10code.com>
83 * minip12.c (build_cert_bag): Use a non constructed object.
84 i.e. 0x80 and not 0xa0.
86 2005-08-16 Werner Koch <wk@g10code.com>
88 * gpg-agent.c (main): Use a default file name for --write-env-file.
90 2005-07-25 Werner Koch <wk@g10code.com>
92 * findkey.c (agent_public_key_from_file): Fixed array assignment.
93 This was the cause for random segvs.
95 2005-06-29 Werner Koch <wk@g10code.com>
97 * command-ssh.c (data_sign): Removed empty statement.
99 2005-06-21 Werner Koch <wk@g10code.com>
101 * minip12.c (create_final): Cast size_t to ulong for printf.
102 (build_key_bag, build_cert_bag, build_cert_sequence): Ditto.
104 2005-06-16 Werner Koch <wk@g10code.com>
106 * protect-tool.c (make_advanced): Makde RESULT a plain char.
107 * call-scd.c (unescape_status_string): Need to cast unsigned char*
109 (agent_card_pksign): Made arg R_BUF an unsigned char**.
110 * divert-scd.c (divert_pksign): Made SIGVAL unsigned char*.
111 (encode_md_for_card): Initialize R_VAL and R_LEN.
112 * genkey.c (store_key): Made BUF unsigned.
113 * protect.c (do_encryption): Ditto.
114 (do_encryption): Made arg PROTBEGIN unsigned. Initialize RESULT
115 and RESULTLEN even on error.
116 (merge_lists): Need to cast unsigned char * for strcpy. Initialize
117 RESULTand RESULTLEN even on error.
118 (agent_unprotect): Likewise for strtoul.
119 (make_shadow_info): Made P and INFO plain char.
120 (agent_shadow_key): Made P plain char.
122 2005-06-15 Werner Koch <wk@g10code.com>
124 * query.c (agent_get_passphrase): Made HEXSTRING a char*.
125 * command-ssh.c (ssh_key_grip): Made arg BUFFER unsigned.
126 (ssh_key_grip): Simplified.
127 (data_sign): Initialize variables with the definition.
128 (ssh_convert_key_to_blob): Make sure that BLOB and BLOB_SIZE
129 are set to NULL on error. Cool, gcc-4 detects uninitialized stuff
130 beyond function boundaries; well it can't know that we do error
131 proper error handling so that this was not a real error.
132 (file_to_buffer): Likewise for BUFFER and BUFFER_N.
133 (data_sign): Likewise for SIG and SIG_N.
134 (stream_read_byte): Set B to a value even on error.
135 * command.c (cmd_genkey): Changed VALUE to char.
136 (cmd_readkey): Cast arg for gcry_sexp_sprint.
137 * agent.h (struct server_control_s): Made KEYGRIP unsigned.
139 2005-06-13 Werner Koch <wk@g10code.com>
141 * command-ssh.c (start_command_handler_ssh): Reset the SCD.
143 2005-06-09 Werner Koch <wk@g10code.com>
145 * gpg-agent.c (create_socket_name): New option --max-cache-ttl-ssh.
146 * cache.c (housekeeping): Use it.
147 (agent_put_cache): Use a switch to get the default ttl so that it
148 is easier to add more cases.
150 2005-06-06 Werner Koch <wk@g10code.com>
152 * gpg-agent.c: New option --default-cache-ttl-ssh.
153 * agent.h (cache_mode_t): New.
154 * pksign.c (agent_pksign_do): New arg CACHE_MODE to replace the
155 ARG IGNORE_CACHE. Changed all callers.
156 (agent_pksign): Ditto.
157 * findkey.c (agent_key_from_file): Ditto. Canged all callers.
159 * command-ssh.c (data_sign): Use CACHE_MODE_SSH.
160 * cache.c (agent_get_cache): New arg CACHE_MODE.
161 (agent_put_cache): Ditto. Store it in the cache.
163 * query.c (agent_query_dump_state, dump_mutex_state): New.
164 (unlock_pinentry): Reset the global context before releasing the
166 * gpg-agent.c (handle_signal): Dump query.c info on SIGUSR1.
168 * call-scd.c (agent_scd_check_aliveness): Always do a waitpid and
169 add a timeout to the locking.
171 2005-06-03 Werner Koch <wk@g10code.com>
173 * command.c (cmd_updatestartuptty): New.
175 * gpg-agent.c: New option --write-env-file.
177 * gpg-agent.c (handle_connections): Make sure that the signals we
178 are handling are not blocked.Block signals while creating new
181 2005-06-02 Werner Koch <wk@g10code.com>
183 * call-scd.c (agent_scd_dump_state, dump_mutex_state): New.
184 * gpg-agent.c (handle_signal): Print it on SIGUSR1.
185 (handle_connections): Include the file descriptor into the
188 2005-06-01 Werner Koch <wk@g10code.com>
190 * gpg-agent.c: Include setenv.h.
192 2005-05-31 Werner Koch <wk@g10code.com>
194 * agent.h (out_of_core): s/__inline__/inine. Noted by Ray Link.
196 2005-05-25 Werner Koch <wk@g10code.com>
198 * gpg-agent.c (main): Do not unset the DISPLAY when we are
201 2005-05-24 Werner Koch <wk@g10code.com>
203 * call-scd.c (inq_needpin): Skip leading spaces in of PIN
205 * divert-scd.c (getpin_cb): Enhanced to cope with description
207 * query.c (agent_askpin): Add arg PROMPT_TEXT. Changed all
210 2005-05-21 Werner Koch <wk@g10code.com>
212 * call-scd.c (start_scd): Don't test for an alive scdaemon here.
213 (agent_scd_check_aliveness): New.
214 * gpg-agent.c (handle_tick): Test for an alive scdaemon.
215 (handle_signal): Print thread info on SIGUSR1.
217 2005-05-20 Werner Koch <wk@g10code.com>
219 * protect-tool.c: New option --canonical.
220 (show_file): Implement it.
222 * keyformat.txt: Define the created-at attribute for keys.
224 2005-05-18 Werner Koch <wk@g10code.com>
226 * divert-scd.c (ask_for_card): Removed the card reset kludge.
228 2005-05-17 Werner Koch <wk@g10code.com>
230 * call-scd.c (unlock_scd): Add new arg CTRL. Changed all callers.
231 (start_scd): Reoworked to allow for additional connections.
232 * agent.h (ctrl_t): Add local data for the SCdaemon.
233 * command.c (start_command_handler): Release SERVER_LOCAL.
235 * gpg-agent.c (create_server_socket): Use xmalloc.
236 (main): Removed option --disable-pth a dummy. Removed non-pth
238 (cleanup_sh): Removed. Not needed anymore.
240 2005-05-05 Moritz Schulte <moritz@g10code.com>
242 * command-ssh.c (ssh_key_to_buffer): Rename to ...
243 (ssh_key_to_protected_buffer): ... this; change callers.
244 Improved documentation.
245 Use ssh_key_grip(), where gcry_pk_get_keygrip() has been used
247 (ssh_handler_sign_request): Removed unusued variable P.
249 2005-04-20 Moritz Schulte <moritz@g10code.com>
251 * command-ssh.c (ssh_handler_request_identities): Removed
252 debugging code (sleep call), which was commited unintenionally.
254 2005-04-20 Werner Koch <wk@g10code.com>
256 * minip12.c (parse_bag_encrypted_data): Fix the unpadding hack.
258 * gpg-agent.c: New option --disable-scdaemon.
259 (handle_connections): Add time event to drive ...
260 (handle_tick): New function.
261 (main): Record the parent PID. Fixed segv when using ssh and a
264 * call-scd.c (start_scd): Take care of this option.
266 2005-04-03 Moritz Schulte <moritz@g10code.com>
268 * command-ssh.c (ssh_request_spec): New member: secret_input.
269 (REQUEST_SPEC_DEFINE): New argument: secret_input.
270 (request_specs): Add secret_input flag.
271 (request_spec_lookup): New function ...
272 (ssh_request_process): ... use it here; depending on secret_input
273 flag allocate secure or non-secure memory.
275 2005-03-02 Moritz Schulte <moritz@g10code.com>
277 * command-ssh.c (sexp_key_extract): Removed FIXME, since
278 xtrymallos does set errno correctly by now.
279 (sexp_extract_identifier): Remove const attribute from identifier.
280 (ssh_handler_request_identities): Remove const attribute from
281 key_type; removes ugly casts and FIXME.
282 (sexp_key_extract): Remove const attribute from comment.
283 (ssh_send_key_public): Remove const attribute from
284 key_type/comment; removes ugly cast.
285 (data_sign): Remove const attribute from identifier; removes ugly
287 (key_secret_to_public): Remove const attribute from comment;
289 (ssh_handler_sign_request): Remove const attribute from p.
290 (sexp_key_extract): Use make_cstring().
291 (ssh_key_extract_comment): Likewise.
292 (ssh_key_to_buffer): Use secure memory for memory area to hold the
296 2005-02-25 Werner Koch <wk@g10code.com>
298 * findkey.c (modify_description): Keep invalid % escapes, so that
299 %0A may pass through.
301 * agent.h (server_control_s): New field USE_AUTH_CALL.
302 * call-scd.c (agent_card_pksign): Make use of it.
303 * command-ssh.c (data_sign): Set the flag.
304 (ssh_send_key_public): New arg OVERRIDE_COMMENT.
305 (card_key_available): Add new arg CARDSN.
306 (ssh_handler_request_identities): Use the card s/n as comment.
307 (sexp_key_extract): Use GCRYMPI_FMT_STD.
310 * learncard.c (make_shadow_info): Moved to ..
311 * protect.c (make_shadow_info): .. here. Return NULL on malloc
312 failure. Made global.
313 * agent.h: Add prototype.
315 2005-02-24 Werner Koch <wk@g10code.com>
317 * call-scd.c (unescape_status_string): New. Actual a copy of
319 (card_getattr_cb, agent_card_getattr): New.
321 * command-ssh.c (card_key_available): New.
322 (ssh_handler_request_identities): First see whether a card key is
325 * gpg-agent.c (handle_connections): Need to check for events if
326 select returns with -1.
328 2005-02-23 Werner Koch <wk@g10code.com>
330 * command-ssh.c (get_passphrase): Removed.
331 (ssh_identity_register): Partly rewritten.
332 (open_control_file, search_control_file, add_control_entry): New.
333 (ssh_handler_request_identities): Return only files listed in our
336 * findkey.c (unprotect): Check for allocation error.
338 * agent.h (opt): Add fields to record the startup terminal
340 * gpg-agent.c (main): Record them and do not force keep display
341 with --enable-ssh-support.
342 * command-ssh.c (start_command_handler_ssh): Use them here.
344 * gpg-agent.c: Renamed option --ssh-support to
345 --enable-ssh-support.
347 * command.c (cmd_readkey): New.
348 (register_commands): Register new command "READKEY".
350 * command-ssh.c (ssh_request_process): Improved logging.
352 * findkey.c (agent_write_private_key): Always use plain open.
353 Don't depend on an umask for permissions.
354 (agent_key_from_file): Factored file reading code out to ..
355 (read_key_file): .. new function.
356 (agent_public_key_from_file): New.
358 2005-02-22 Werner Koch <wk@g10code.com>
360 * command-ssh.c (stream_read_string): Removed call to abort on
361 memory error because the CVS version of libgcrypt makes sure
362 that ERRNO gets always set on error even with a faulty user
365 2005-02-19 Moritz Schulte <moritz@g10code.com>
367 * command-ssh.c (ssh_receive_mpint_list): Slightly rewritten, do
368 not use elems_secret member of key_spec.
369 (ssh_key_type_spec): Removed member: elems_secret.
370 (ssh_key_types): Removed elems_secret data.
371 (ssh_sexp_construct): Renamed to ...
372 (sexp_key_construct): ... this; changed callers.
373 (ssh_sexp_extract): Renamed to ...
374 (sexp_key_extract): ... this; changed callers.
375 (ssh_sexp_extract_key_type): Renamed to ...
376 (sexp_extract_identifier): ... this; changed callers; use
380 2005-02-18 Moritz Schulte <moritz@g10code.com>
382 * command-ssh.c (ssh_sexp_construct): Rewritten generation of sexp
384 (ssh_sexp_extract): Support shadowed-private-key-sexp; treat
385 protected-private key and shadowed-private-key as public keys.
386 (key_secret_to_public): Rewritten: simply use ssh_sexp_extract()
387 and ssh_sexp_construct().
389 2005-02-15 Werner Koch <wk@g10code.com>
391 * findkey.c (modify_description): Don't increment OUT_LEN during
394 2005-02-14 Moritz Schulte <moritz@g10code.com>
396 * command-ssh.c (es_read_byte): Renamed to ...
397 (stream_es_read_byte): ... this; changed callers.
398 (es_write_byte): Renamed to ...
399 (stream_write_byte): ... this; changed callers.
400 (es_read_uint32): Renamed to ...
401 (stream_read_uint32): ... this; changed callers.
402 (es_write_uint32): Renamed to ...
403 (stream_write_uint32): ... this; changed callers.
404 (es_read_data): Renamed to ...
405 (stream_read_data): ... this; changed callers.
406 (es_write_data): Renamed to ...
407 (stream_write_data): ... this; changed callers.
408 (es_read_string): Renamed to ...
409 (stream_read_string): ... this; changed callers.
410 (es_read_cstring): Renamed to ...
411 (stream_read_cstring): ... this; changed callers.
412 (es_write_string): Renamed to ...
413 (stream_write_string): ... this; changed callers.
414 (es_write_cstring): Renamed to ...
415 (stream_write_cstring): ... this; changed callers.
416 (es_read_mpi): Renamed to ...
417 (stream_read_mpi): ... this; changed callers.
418 (es_write_mpi): Renamed to ...
419 (stream_write_mpi): ... this; changed callers.
420 (es_copy): Renamed to ...
421 (stream_copy): ... this; changed callers.
422 (es_read_file): Renamed to ...
423 (file_to_buffer): ... this; changed callers.
424 (ssh_identity_register): Removed variable description_length;
425 changed code to use asprintf for description.
426 (stream_write_uint32): Do not filter out the last byte of shift
428 (uint32_construct): New macro ...
429 (stream_read_uint32): ... use it; removed unnecessary cast.
431 2005-02-03 Werner Koch <wk@g10code.com>
433 * agent.h (agent_exit): Add JNLIB_GCC_A_NR to indicate that this
434 function won't return.
436 * gpg-agent.c (check_for_running_agent): Initialize pid to a
437 default value if not needed.
439 * command-ssh.c: Removed stdint.h. s/byte_t/unsigned char/,
440 s/uint32/u32/ becuase that is what we have always used in GnuPG.
441 (ssh_request_specs): Moved to top of file.
442 (ssh_key_types): Ditto.
443 (make_cstring): Ditto.
444 (data_sign): Don't use a variable for the passphrase prompt, make
446 (ssh_request_process):
449 * findkey.c (modify_description): Renamed arguments for clarity,
450 polished documentation. Make comment a C-string. Fixed case of
451 DESCRIPTION being just "%".
452 (agent_key_from_file): Make sure comment string to a C-string.
454 * gpg-agent.c (create_socket_name): Cleanup the implemntation, use
455 DIMof, agent_exit, removed superflous args and return the
456 allocated string as value. Documented. Changed callers.
457 (create_server_socket): Cleanups similar to above. Changed callers.
458 (cleanup_do): Renamed to ..
459 (remove_socket): .. this. Changed caller.
460 (handle_connections): The signals are to be handled in the select
461 and not in the accept. Test all FDs after returning from a
462 select. Remove the event tests from the accept calls. The select
463 already assured that the accept won't block.
465 2005-01-29 Moritz Schulte <moritz@g10code.com>
467 * command-ssh.c (ssh_handler_request_identities)
468 (ssh_handler_sign_request, ssh_handler_add_identity)
469 (ssh_handler_remove_identity, ssh_handler_remove_all_identities)
470 (ssh_handler_lock, ssh_handler_unlock): Changed to return an error
471 code instead of a boolean.
472 (ssh_request_process): Changed to return a boolean instead of an
473 error; adjust caller.
474 (ssh_request_handle_t): Adjusted type.
475 (ssh_request_spec): New member: identifier.
476 (REQUEST_SPEC_DEFINE): New macro; use it for initialization of
478 (ssh_request_process): In debugging mode, log identifier of
480 (start_command_handler_ssh): Moved most of the stream handling
482 (ssh_request_process): ... here.
484 2005-01-28 Moritz Schulte <moritz@g10code.com>
486 * command-ssh.c (ssh_handler_add_identity): Pass ctrl to
487 ssh_identity_register().
488 (ssh_identity_register): New argument: ctrl; pass ctrl to
490 (get_passphrase): Pass ctrl instead of NULL to agent_askpin().
491 (start_command_handler_ssh): Use agent_init_default_ctrl();
492 deallocate structure members, which might be dynamically
494 (lifetime_default): Removed variable.
495 (ssh_handler_add_identity): Fix ttl handling; renamed variable
497 (ssh_identity_register): Fix key grip handling.
499 2005-01-26 Moritz Schulte <moritz@g10code.com>
501 * command-ssh.c (ssh_handler_sign_request): Confirm to agent
502 protocol in case of failure.
504 * command-ssh.c: New file.
506 * Makefile.am (gpg_agent_SOURCES): New source file: command-ssh.c.
508 * findkey.c (modify_description): New function.
509 (agent_key_from_file): Support comment field in key s-expressions.
511 * gpg-agent.c (enum cmd_and_opt_values): New item: oSSHSupport.
512 (opts) New entry for oSSHSupport.
513 New variable: socket_name_ssh.
514 (cleanup_do): New function based on cleanup().
515 (cleanup): Use cleanup_do() for socket_name and socket_name_ssh.
516 (main): New switch case for oSSHSupport.
517 (main): Move socket name creation code to ...
518 (create_socket_name): ... this new function.
519 (main): Use create_socket_name() for creating socket names for
520 socket_name and for socket_name_ssh in case ssh support is
522 Move socket creation code to ...
523 (create_server_socket): ... this new function.
524 (main): Use create_server_socket() for creating sockets.
525 In case standard_socket is set, do not only store a socket name in
526 socket_name, but also in socket_name_ssh.
527 Generate additional environment info strings for ssh support.
528 Pass additional ssh socket argument to handle_connections.
529 (start_connection_thread_ssh): New function.
530 (handle_connections): Use select to multiplex between gpg-agent
531 and ssh-agent protocol.
533 * agent.h (struct opt): New member: ssh_support.
534 (start_command_handler_ssh): Add prototype.
536 2005-01-04 Werner Koch <wk@g10code.com>
538 * trustlist.c (agent_marktrusted): Use "Cancel" for the first
539 confirmation and made the strings translatable.
541 * cache.c (agent_put_cache): Fix the test for using the default
544 2004-12-21 Werner Koch <wk@g10code.com>
546 * preset-passphrase.c (preset_passphrase): Handle --passphrase.
548 * Makefile.am (gpg_preset_passphrase_LDADD): Reorder libs so that
549 pwquery may use stuff from jnlib. Conditionally add -lwsock2
550 (gpg_protect_tool_LDADD): Ditto.
552 * preset-passphrase.c (main): Use default_homedir().
553 (main) [W32]: Initialize sockets.
555 2004-12-21 Marcus Brinkmann <marcus@g10code.de>
557 * Makefile.am (libexec_PROGRAMS): Add gpg-preset-passphrase.
558 (gpg_preset_passphrase_SOURCES, gpg_preset_passphrase_LDADD): New
560 * agent.h (opt): New member allow_cache_passphrase.
561 * cache.c (housekeeping): Check if R->ttl is not negative.
562 (agent_put_cache): Allow ttl to be negative.
563 * command.c (parse_hexstring): Allow something to follow the
565 (cmd_cache_passphrase): New function.
566 (register_commands): Add it.
567 * gpg-agent.c: Handle --allow-preset-passphrase.
568 * preset-passphrase.c: New file.
570 2004-12-21 Werner Koch <wk@g10code.com>
572 * gpg-agent.c (main): Use default_homedir().
573 * protect-tool.c (main): Ditto.
575 2004-12-20 Werner Koch <wk@g10code.com>
577 * gpg-agent.c (main) [W32]: Now that Mutexes work we can remove
579 (main): Add new options --[no-]use-standard-socket.
580 (check_for_running_agent): Check whether it is running on the
583 * call-scd.c (init_membuf, put_membuf, get_membuf): Removed. We
584 now use the identical implementation from ../common/membuf.c.
586 * pksign.c (agent_pksign): Changed arg OUTFP to OUTBUF and use
587 membuf functions to return the value.
588 * pkdecrypt.c (agent_pkdecrypt): Ditto.
589 * genkey.c (agent_genkey): Ditto.
590 * command.c (cmd_pksign, cmd_pkdecrypt, cmd_genkey): Replaced
591 assuan_get_data_fp() by a the membuf scheme.
592 (clear_outbuf, write_and_clear_outbuf): New.
594 2004-12-19 Werner Koch <wk@g10code.com>
596 * query.c (initialize_module_query): New.
597 * call-scd.c (initialize_module_call_scd): New.
598 * gpg-agent.c (main): Call them.
600 2004-12-18 Werner Koch <wk@g10code.com>
602 * gpg-agent.c (main): Remove special Pth initialize.
604 * agent.h (map_assuan_err): Define in terms of
605 map_assuan_err_with_source.
607 2004-12-17 Moritz Schulte <moritz@g10code.com>
609 * query.c: Undo change from 2004-12-05.
611 2004-12-15 Werner Koch <wk@g10code.com>
613 * gpg-agent.c [W32]: Various hacks to make it work.
615 * findkey.c (agent_write_private_key) [W32]: Adjust open call.
617 * call-scd.c (start_scd) [W32]: Don't check whether the daemon
618 didn't died. To hard to do under Windows.
619 (start_scd) [W32]: Disable sending of the event signal option.
621 * protect-tool.c (read_file, export_p12_file) [W32]: Use setmode
622 to get stdout and stin into binary mode.
624 2004-12-05 Moritz Schulte <moritz@g10code.com>
626 * query.c (start_pinentry): Allow CTRL be NULL.
628 2004-10-22 Werner Koch <wk@g10code.com>
630 * gpg-agent.c (parse_rereadable_options): Return "not handled"
631 when the log file has not beend hadled. This is will let the main
632 option processing continue. Fixed a bug introduced on 2004-09-4
633 resulting in logging to stderr until a HUP has been given.
634 (main): Don't close the listen FD.
636 2004-09-30 Werner Koch <wk@g10code.com>
638 * Makefile.am: Adjusted from gettext 1.14.
640 2004-09-29 Werner Koch <wk@g10code.com>
642 * minip12.c (parse_bag_encrypted_data): Print error if a bad
643 passphrase has been given.
645 2004-09-28 Werner Koch <wk@g10code.com>
647 * protect.c (agent_unprotect): Fixed wiping of CLEARTEXT. Thanks
648 to Moritz for pointing this out.
650 2004-09-25 Moritz Schulte <moritz@g10code.com>
652 * agent.h: Declare: agent_pksign_do.
653 (struct server_control_s): New member: raw_value.
655 * pksign.c (do_encode_md): New argument: raw_value; support
656 generation of raw (non-pkcs1) data objects; adjust callers.
657 (agent_pksign_do): New function, based on code ripped
658 out from agent_pksign.
659 (agent_pksign): Use agent_pksign_do.
661 * command.c (start_command_handler): Set ctrl.digest.raw_value.
663 2004-09-09 Werner Koch <wk@g10code.de>
665 * gpg-agent.c (check_for_running_agent): New.
666 (main): The default action is now to check for an already running
668 (parse_rereadable_options): Set logfile only on reread.
669 (main): Do not print the "is development version" note.
671 2004-08-20 Werner Koch <wk@g10code.de>
673 * gpg-agent.c: New option --max-cache-ttl. Suggested by Alexander
675 * cache.c (housekeeping): Use it here instead of the hardwired
678 * query.c (start_pinentry): Use a timeout for the pinentry lock.
680 2004-08-18 Werner Koch <wk@g10code.de>
682 * protect-tool.c (get_passphrase): Make sure that the default
683 prompts passed to gpg-agent are utf-8 encoded. Add new prompt values.
684 (import_p12_file, import_p12_file, export_p12_file): Changed calls
685 to get_passphrase so that better prompts are displayed.
686 (get_new_passphrase): New.
688 2004-07-22 Werner Koch <wk@g10code.de>
690 * trustlist.c (read_list): Allow colons in the fingerprint.
691 (headerblurb): Rephrased.
693 * gpg-agent.c (handle_connections): Increase the stack size ot 256k.
695 2004-06-20 Moritz Schulte <moritz@g10code.com>
697 * gpg-agent.c: Include <sys/stat.h> (build fix for BSD).
699 2004-05-11 Werner Koch <wk@gnupg.org>
701 * gpg-agent.c (handle_signal): Reload the trustlist on SIGHUP.
702 (start_connection_thread): Hack to simulate a ticker.
703 * trustlist.c (agent_trustlist_housekeeping)
704 (agent_reload_trustlist): New. Protected all global functions
705 here with a simple counter which is sufficient for Pth.
707 2004-05-03 Werner Koch <wk@gnupg.org>
709 * gpg-agent.c: Remove help texts for options lile --lc-ctype.
710 (main): New option --allow-mark-trusted.
711 * trustlist.c (agent_marktrusted): Use it here.
713 2004-04-30 Werner Koch <wk@gnupg.org>
715 * protect-tool.c: New option --enable-status-msg.
716 (store_private_key): Print status messages for imported keys.
717 (read_and_unprotect): Ditto for bad passphrase.
719 * gpg-agent.c (parse_rereadable_options): New arg REREAD. Allow
721 (current_logfile): New.
723 2004-04-26 Werner Koch <wk@gnupg.org>
725 * call-scd.c (start_scd): Do not register an event signal if we
726 are running as a pipe server.
728 2004-04-21 Werner Koch <wk@gnupg.org>
730 * call-scd.c (start_scd): Send event-signal option. Always check
731 that the scdaemon is still running.
733 * gpg-agent.c (handle_signal): Do not use SIGUSR{1,2} anymore for
734 changing the verbosity.
736 2004-04-16 Werner Koch <wk@gnupg.org>
738 * gpg-agent.c (main): Tell the logging code that we are running
741 2004-04-06 Werner Koch <wk@gnupg.org>
743 * gpg-agent.c (main): Use new libgcrypt thread library register
746 2004-03-23 Marcus Brinkmann <marcus@g10code.de>
748 * gpg-agent.c (main): For now, always print the default config
749 file name for --gpgconf-list.
751 2004-03-17 Werner Koch <wk@gnupg.org>
753 * gpg-agent.c (main) <gpgconf>: Fixed default value quoting.
755 2004-03-16 Werner Koch <wk@gnupg.org>
757 * gpg-agent.c (parse_rereadable_options): Use the new
758 DEFAULT_CACHE_TTL macro.
759 (main): Updated --gpgconf-list output.
761 2004-02-21 Werner Koch <wk@gnupg.org>
763 * command.c (cmd_passwd): Take acount of a key description.
765 * genkey.c (reenter_compare_cb): Do not set the error text.
766 (agent_protect_and_store, agent_genkey): Force a re-enter after a
767 non-matching passphrase.
768 * query.c (agent_askpin): Add new arg INITIAL_ERRTEXT; changed
771 2004-02-19 Werner Koch <wk@gnupg.org>
773 * protect-tool.c: New options --have-cert and --prompt.
774 (export_p12_file): Read a certificate from STDIN and pass it to
775 p12_build. Detect a keygrip and construct the filename in that
776 case. Unprotcet a key if needed. Print error messages for key
777 formats we can't handle.
778 (release_passphrase): New.
779 (get_passphrase): New arg PROMPTNO. Return the allocated
780 string. Changed all callers.
782 * minip12.c: Revamped the build part.
783 (p12_build): New args CERT and CERTLEN.
785 2004-02-18 Werner Koch <wk@gnupg.org>
787 * protect-tool.c (main): Setup the used character set.
788 * gpg-agent.c (main): Ditto.
790 * gpg-agent.c (set_debug): New. New option --debug-level.
791 (main): New option --gpgconf-list.
793 2004-02-17 Werner Koch <wk@gnupg.org>
795 * pksign.c (do_encode_md): Cleaned up by using gcry_sexp_build.
797 * Makefile.am (gpg_protect_tool_SOURCES): Removed
798 simple-pwquery.[ch], as we once moved it to ../common.
800 2004-02-13 Werner Koch <wk@gnupg.org>
802 * command.c (cmd_setkeydesc): New.
803 (register_commands): Add command SETKEYDESC.
804 (cmd_pksign, cmd_pkdecrypt): Use the key description.
805 (reset_notify): Reset the description.
806 * findkey.c (unprotect): Add arg DESC_TEXT.
807 (agent_key_from_file): Ditto.
808 * pksign.c (agent_pksign): Ditto.
809 * pkdecrypt.c (agent_pkdecrypt): Ditto. Made CIPHERTEXT an
812 * protect-tool.c (main): New options --no-fail-on-exist, --homedir.
813 (store_private_key): Use them here.
815 2004-02-12 Werner Koch <wk@gnupg.org>
817 * protect-tool.c (read_file, main): Allow reading from stdin.
819 * Makefile.am: Include cmacros.am for common flags.
820 (libexec_PROGRAMS): Put gpg-protect-tool there.
822 2004-02-10 Werner Koch <wk@gnupg.org>
824 * minip12.c (parse_bag_encrypted_data): Finished implementation.
825 (p12_parse): Add callback args.
826 * protect-tool.c (import_p12_cert_cb): New.
827 (import_p12_file): Use it.
829 2004-02-06 Werner Koch <wk@gnupg.org>
831 * minip12.c (crypt_block): Add arg CIPHER_ALGO; changed all callers.
832 (set_key_iv): Add arg KEYBYTES; changed caller.
834 2004-02-03 Werner Koch <wk@gnupg.org>
836 * findkey.c (agent_key_from_file): Extra paranoid wipe.
837 * protect.c (agent_unprotect): Ditto.
838 (merge_lists): Ditto. Add arg RESULTLEN.
839 * pkdecrypt.c (agent_pkdecrypt): Don't show the secret key even in
842 * protect.c: Add DSA and Elgamal description.
844 2004-01-29 Werner Koch <wk@gnupg.org>
846 * agent.h (server_control_s): Add connection_fd field.
847 * command.c (start_command_handler): Init it here.
848 * gpg-agent.c (agent_init_default_ctrl): and here.
849 * call-scd.c: Add the CTRL arg to all functions calling start_scd
850 and pass it to start_scd. Changed all callers
851 (start_scd): Keep track of the current active connection.
852 (agent_reset_scd): New.
853 * command.c (start_command_handler): Call it here.
854 * learncard.c (agent_handle_learn): Add arg CTRL; changed caller.
855 (send_cert_back): Ditto.
857 2004-01-28 Werner Koch <wk@gnupg.org>
859 * trustlist.c (agent_marktrusted): Check whether the trustlist is
862 2004-01-27 Werner Koch <wk@gnupg.org>
864 * sexp-parse.h: Moved to ../common.
866 2004-01-24 Werner Koch <wk@gnupg.org>
868 * call-scd.c (atfork_cb): New.
869 (start_scd): Make sure secmem gets cleared.
870 * query.c (atfork_cb): New.
871 (start_pinentry): Make sure secmem gets cleared.
873 2004-01-16 Werner Koch <wk@gnupg.org>
875 * findkey.c (agent_key_from_file): Now return an error code so
876 that we have more detailed error messages in the upper layers.
877 This fixes the handling of pinentry's cancel button.
878 * pksign.c (agent_pksign): Changed accordingly.
879 * pkdecrypt.c (agent_pkdecrypt): Ditto.
880 * command.c (cmd_passwd): Ditto.
882 2003-12-16 Werner Koch <wk@gnupg.org>
884 * gpg-agent.c (main): Set the prefixes for assuan logging.
886 2003-12-15 Werner Koch <wk@gnupg.org>
888 * protect.c (do_encryption): Use gcry_create_nonce instad of the
889 obsolete WEAK_RANDOM.
891 2003-11-20 Werner Koch <wk@gnupg.org>
893 * sexp-parse.h (snext): Don't use atoi_1 and digitp macros, so
894 that this file is useful by other applications too.
896 2003-10-27 Werner Koch <wk@gnupg.org>
898 * command.c (cmd_get_confirmation): New command.
900 2003-08-20 Timo Schulz <twoaday@freakmail.de>
902 * pksign.c (do_encode_md): Allocate enough space. Cast md
903 byte to unsigned char to prevent sign extension.
905 2003-08-14 Timo Schulz <twoaday@freakmail.de>
907 * pksign.c (do_encode_md): Due to the fact pkcs#1 padding
908 is now in Libgcrypt, use the new interface.
910 2003-07-31 Werner Koch <wk@gnupg.org>
912 * Makefile.am (gpg_agent_LDADD): Added INTLLIBS.
913 (gpg_protect_tool_SOURCES): Added simple-pwquery.[ch]
915 2003-07-27 Werner Koch <wk@gnupg.org>
917 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
919 2003-07-15 Werner Koch <wk@gnupg.org>
921 * simple-pwquery.c, simple-pwquery.h: Moved to ../common.
922 * Makefile.am (gpg_protect_tool_LDADD): Add simple-pwquery.o.
923 Removed it from xx_SOURCES.
925 2003-07-04 Werner Koch <wk@gnupg.org>
927 * gpg-agent.c (handle_connections): Kludge to allow use of Pth 1
930 2003-06-30 Werner Koch <wk@gnupg.org>
932 * call-scd.c (learn_status_cb): Store the serialno in PARM.
934 2003-06-26 Werner Koch <wk@gnupg.org>
936 * call-scd.c (agent_card_serialno): Don't do a RESET anymore.
938 2003-06-25 Werner Koch <wk@gnupg.org>
940 * command.c (cmd_scd): New.
941 * call-scd.c (agent_card_scd): New.
942 * divert-scd.c (divert_generic_cmd): New
944 * call-scd.c (agent_card_learn): New callback args SINFO.
945 (learn_status_cb): Pass all other status lines to the sinfo
947 * learncard.c (release_sinfo, sinfo_cb): New.
948 (agent_handle_learn): Pass the new cb to the learn function and
949 pass the collected information back to the client's assuan
952 * gpg-agent.c (main): Moved pth_init before gcry_check_version.
954 2003-06-24 Werner Koch <wk@gnupg.org>
956 * gpg-agent.c (handle_connections): Adjusted for Pth 2.0
958 Adjusted for changes in the libgcrypt API. Some more fixes for the
961 2003-06-04 Werner Koch <wk@gnupg.org>
963 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
965 2003-06-03 Werner Koch <wk@gnupg.org>
967 Changed all error codes in all files to the new libgpg-error scheme.
969 * agent.h: Include gpg-error.h and errno.h
970 * Makefile.am: Link with libgpg-error
972 * query.c: assuan.h is now a system header.
973 * genkey.c (agent_genkey): Fixed silly use of xmalloc by
976 2003-04-29 Werner Koch <wk@gnupg.org>
978 * command.c (register_commands): Adjusted for new Assuan semantics.
980 * Makefile.am: Don't override LDFLAGS.
982 2002-12-04 Werner Koch <wk@gnupg.org>
984 * gpg-agent.c: New variable config_filename.
985 (parse_rereadable_options): New.
986 (main): Use it here. Add setting of default values, set
988 (reread_configuration): Filled with actual code.
990 2002-12-03 Werner Koch <wk@gnupg.org>
992 * protect-tool.c (read_key): Don't run make_canonical on a NULL
995 * command.c (parse_hexstring): New.
996 (cmd_sethash): Use it.
997 (parse_keygrip): New.
998 (cmd_havekey, cmd_sigkey): Use it.
1000 * genkey.c (agent_protect_and_store): New.
1001 (store_key): Add arg FORCE.
1002 (agent_genkey): Pass false to this force of store_key.
1004 2002-11-13 Werner Koch <wk@gnupg.org>
1006 * gpg-agent.c (main): Switch all messages to utf-8.
1008 * simple-pwquery.c (agent_send_all_options): Use $GPG_TTY and
1011 * cache.c (new_data): Uiih - /sizeof d/sizeof *d/.
1013 2002-11-10 Werner Koch <wk@gnupg.org>
1015 * command.c (option_handler): Fix keep_tty check.
1017 2002-11-06 Werner Koch <wk@gnupg.org>
1019 * gpg-agent.c (main): Make sure we have a default ttyname.
1020 * command.c (option_handler): Check opt.keep_tty here
1021 * query.c (start_pinentry): but not anymore here.
1023 2002-11-05 Werner Koch <wk@gnupg.org>
1025 * agent.h (opt,server_control_s): Move display and lc_ variables
1026 to the control struct so that they are per connection.
1027 * gpg-agent.c (agent_init_default_ctrl): New.
1028 (main): Assign those command line options to new default_* variables.
1029 Reset DISPLAY in server mode so that tehre is no implicit default.
1030 * command.c (start_command_handler): Initialize and deinitialize
1032 (option_handler): Work on the ctrl values and not on the opt.
1033 * query.c (start_pinentry): New argument CTRL to set the display
1034 connection specific. Changed all callers to pass this value.
1035 (agent_askpin,agent_get_passphrase,agent_get_confirmation): Add
1036 CTRL arg and pass it ot start_pinentry.
1037 * command.c (cmd_get_passphrase): Pass CTRL argument.
1038 * trustlist.c (agent_marktrusted): Add CTRL argument
1039 * command.c (cmd_marktrusted): Pass CTRL argument
1040 * divert-scd.c (ask_for_card): Add CTRL arg.
1041 (divert_pksign,divert_pkdecrypt): Ditto. Changed caller.
1042 (getpin_cb): Use OPAQUE to pass the CTRL variable. Changed both
1044 * findkey.c (unprotect): Add CTRL arg.
1045 (agent_key_from_file): Ditto.
1047 * query.c (unlock_pinentry): Disconnect the pinentry so that we
1048 start a new one for each request. This is required to support
1049 clients with different environments (e.g. X magic cookies).
1051 2002-09-05 Neal H. Walfield <neal@cs.uml.edu>
1053 * gpg-agent.c (main) [USE_GNU_PTH]: No need to call
1054 assuan_set_io_func as assuan is smart.
1056 2002-09-25 Werner Koch <wk@gnupg.org>
1058 * gpg-agent.c (handle_signal): Flush cache on SIGHUP.
1059 * cache.c (agent_flush_cache): New.
1061 * gpg-agent.c, agent.h: Add --keep-display and --keep-tty.
1062 * query.c (start_pinentry): Implement them. The option passing
1063 needs more thoughts.
1065 2002-09-09 Werner Koch <wk@gnupg.org>
1067 * gpg-agent.c (create_private_keys_directory)
1068 (create_directories): New.
1069 (main): Try to create a home directory.
1071 2002-09-04 Neal H. Walfield <neal@g10code.de>
1073 * gpg-agent.c (main): Use sigaction, not signal.
1075 2002-09-03 Neal H. Walfield <neal@g10code.de>
1077 * findkey.c: Include <fcntl.h>.
1078 (agent_write_private_key): Prefer POSIX compatibity, open and
1079 fdopen, over the simplicity of GNU extensions, fopen(file, "x").
1081 2002-08-22 Werner Koch <wk@gnupg.org>
1083 * query.c (agent_askpin): Provide the default desc text depending
1084 on the pininfo. Do the basic PIN verification only when
1087 2002-08-21 Werner Koch <wk@gnupg.org>
1089 * query.c (agent_askpin): Hack to show the right default prompt.
1090 (agent_get_passphrase): Ditto.
1092 * trans.c: Removed and replaced all usages with standard _()
1094 * divert-scd.c (getpin_cb): Pass a more descritive text to the
1097 * Makefile.am: Renamed the binary protect-tool to gpg-protect-tool.
1098 * protect-tool.c: Removed the note about internal use only.
1100 * gpg-agent.c (main): New option --daemon so that the program is
1101 not accidently started in the background.
1103 2002-08-16 Werner Koch <wk@gnupg.org>
1105 * call-scd.c (learn_status_cb): Handle CERTINFO status.
1106 (agent_card_learn): Add args for certinfo cb.
1107 * learncard.c (release_certinfo,certinfo_cb): New.
1108 (send_cert_back): New. With factored out code from ..
1109 (agent_handle_learn): here. Return certinfo stuff.
1111 2002-07-26 Werner Koch <wk@gnupg.org>
1113 * gpg-agent.c (main): New option --ignore-cache-for-signing.
1114 * command.c (option_handler): New server option
1115 use-cache-for-signing defaulting to true.
1116 (cmd_pksign): handle global and per session option.
1117 * findkey.c (agent_key_from_file, unprotect): New arg
1118 ignore_cache. Changed all callers.
1119 * pksign.c (agent_pksign): Likewise.
1121 2002-06-29 Werner Koch <wk@gnupg.org>
1123 * query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY.
1124 * call-scd.c (start_scd): Use GNUPG_DEFAULT_SCDAEMON.
1126 2002-06-28 Werner Koch <wk@gnupg.org>
1128 * protect-tool.c (export_p12_file): New.
1129 (main): New command --p12-export.
1130 * minip12.c (create_final,p12_build,compute_tag_length): New.
1131 (store_tag_length): New.
1133 2002-06-27 Werner Koch <wk@gnupg.org>
1135 * minip12.c (crypt_block): Renamed from decrypt_block, add arg to
1138 * Makefile.am (pkglib_PROGRAMS): Put protect-tool there.
1140 * findkey.c (agent_write_private_key,agent_key_from_file)
1141 (agent_key_available): Use GNUPG_PRIVATE_KEYS_DIR constant.
1142 * gpg-agent.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
1144 * protect-tool.c (store_private_key): New.
1145 (import_p12_file): Store the new file if requested.
1146 (main): New options --force and --store.
1148 * gpg-agent.c (main): Set a global flag when running detached.
1149 * query.c (start_pinentry): Pass the list of FD to keep in the
1150 child when not running detached.
1151 * call-scd.c (start_scd): Ditto.
1153 2002-06-26 Werner Koch <wk@gnupg.org>
1155 * command.c (cmd_istrusted, cmd_listtrusted, cmd_marktrusted)
1156 (cmd_pksign, cmd_pkdecrypt, cmd_genkey, cmd_get_passphrase)
1157 (cmd_learn): Print an error message for a failed operation.
1159 * simple-pwquery.c, simple-pwquery.h: New.
1160 * protect-tool. (get_passphrase): New, used to get a passphrase
1161 from the agent if none was given on the command line.
1163 2002-06-25 Werner Koch <wk@gnupg.org>
1165 * protect-tool.c (rsa_key_check): New.
1166 (import_p12_file): New.
1167 (main): New command --p12-import.
1168 * minip12.c, minip12.h: New.
1170 2002-06-24 Werner Koch <wk@gnupg.org>
1172 * protect-tool.c (read_file): New.
1173 (read_key): Factored most code out to read_file.
1175 2002-06-17 Werner Koch <wk@gnupg.org>
1177 * agent.h: Add a callback function to the pin_entry_info structure.
1178 * query.c (agent_askpin): Use the callback to check for a correct
1179 PIN. Removed the start_err_text argument because it is not
1180 anymore needed; changed callers.
1181 * findkey.c (unprotect): Replace our own check loop by a callback.
1182 (try_unprotect_cb): New.
1183 * genkey.c (reenter_compare_cb): New.
1184 (agent_genkey): Use this callback here. Fixed setting of the pi2
1185 variable and a segv in case of an empty PIN.
1187 * divert-scd.c (getpin_cb): Removed some unused stuff and
1188 explained what we still have to change.
1190 2002-06-12 Werner Koch <wk@gnupg.org>
1192 * gpg-agent.c (main): New option --disable-pth.
1194 2002-06-11 Werner Koch <wk@gnupg.org>
1196 * protect-tool.c: Add command --show-keygrip
1197 (show_keygrip): New.
1199 2002-05-23 Werner Koch <wk@gnupg.org>
1201 * call-scd.c: Seirialized all scdaeom access when using Pth.
1203 * cache.c: Made the cache Pth-thread-safe.
1204 (agent_unlock_cache_entry): New.
1205 * findkey.c (unprotect): Unlock the returned cache value.
1206 * command.c (cmd_get_passphrase): Ditto.
1208 * gpg-agent.c (main): Register pth_read/write with Assuan.
1210 2002-05-22 Werner Koch <wk@gnupg.org>
1212 * query.c: Serialized all pinentry access when using Pth.
1214 * gpg-agent.c (handle_signal,start_connection_thread)
1215 (handle_connections): New
1216 (main): Use the new Pth stuff to allow concurrent connections.
1217 * command.c (start_command_handler): Add new arg FD so that the
1218 fucntion can also be used for an already connected socket.
1219 * Makefile.am: Link with Pth.
1221 2002-05-14 Werner Koch <wk@gnupg.org>
1223 * cache.c (housekeeping, agent_put_cache): Use our time() wrapper.
1225 2002-04-26 Werner Koch <wk@gnupg.org>
1227 * cache.c (agent_put_cache): Reinitialize the creation time and
1228 the ttl when reusing a slot.
1230 * call-scd.c (start_scd): Print debug messages only with debug
1232 * query.c (start_pinentry): Ditto.
1234 2002-04-25 Marcus Brinkmann <marcus@g10code.de>
1236 * agent.h (agent_get_confirmation): Replace paramter prompt with
1237 two parameters ok and cancel.
1238 * query.c (agent_get_confirmation): Likewise. Implement this.
1239 * trustlist.c (agent_marktrusted): Fix invocation of
1240 agent_get_confirmation.
1241 * divert-scd.c (ask_for_card): Likewise.
1243 2002-04-24 Marcus Brinkmann <marcus@g10code.de>
1245 * agent.h (struct opt): Add members display, ttyname, ttytype,
1246 lc_ctype, and lc_messages.
1247 * gpg-agent.c (enum cmd_and_opt_values): Add oDisplay, oTTYname,
1248 oTTYtype, oLCctype, and LCmessages.
1249 (main): Handle these options.
1250 * command.c (option_handler): New function.
1251 (register_commands): Register option handler.
1252 * query.c (start_pinentry): Pass the various display and tty
1253 options to the pinentry.
1255 2002-04-05 Werner Koch <wk@gnupg.org>
1257 * protect-tool.c (show_file): New. Used as default action.
1259 2002-03-28 Werner Koch <wk@gnupg.org>
1261 * divert-scd.c (encode_md_for_card): Don't do the pkcs-1 padding,
1262 the scdaemon should take care of it.
1263 (ask_for_card): Hack to not display the trailing zero.
1265 2002-03-11 Werner Koch <wk@gnupg.org>
1267 * learncard.c (kpinfo_cb): Remove the content restrictions from
1270 2002-03-06 Werner Koch <wk@gnupg.org>
1273 * divert-scd.c (ask_for_card): The serial number is binary so
1274 convert it to hex here.
1275 * findkey.c (agent_write_private_key): New.
1276 * genkey.c (store_key): And use it here.
1278 * pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done.
1279 * divert-scd.c (divert_pkdecrypt): Changed interface and
1282 2002-03-05 Werner Koch <wk@gnupg.org>
1284 * call-scd.c (inq_needpin): New.
1285 (agent_card_pksign): Add getpin_cb args.
1286 (agent_card_pkdecrypt): New.
1288 2002-03-04 Werner Koch <wk@gnupg.org>
1290 * pksign.c (agent_pksign): Changed how the diversion is done.
1291 * divert-scd.c (divert_pksign): Changed interface and implemented it.
1292 (encode_md_for_card): New.
1293 * call-scd.c (agent_card_pksign): New.
1295 2002-02-28 Werner Koch <wk@gnupg.org>
1297 * pksign.c (agent_pksign): Detect whether a Smartcard is to be
1298 used and divert the operation in this case.
1299 * pkdecrypt.c (agent_pkdecrypt): Likewise
1300 * findkey.c (agent_key_from_file): Add optional arg shadow_info
1301 and have it return information about a shadowed key.
1302 * protect.c (agent_get_shadow_info): New.
1304 * protect.c (snext,sskip,smatch): Moved to
1305 * sexp-parse.h: New file.
1306 * divert-scd.c: New.
1308 2002-02-27 Werner Koch <wk@gnupg.org>
1310 * protect.c (agent_shadow_key): New.
1312 * command.c (cmd_learn): New command LEARN.
1313 * gpg-agent.c: New option --scdaemon-program.
1314 * call-scd.c (start_scd): New. Based on query.c
1315 * query.c: Add 2 more arguments to all uses of assuan_transact.
1317 2002-02-18 Werner Koch <wk@gnupg.org>
1319 * findkey.c (unprotect): Show an error message for a bad passphrase.
1321 * command.c (cmd_marktrusted): Implemented.
1322 * trustlist.c (agent_marktrusted): New.
1323 (open_list): Add APPEND arg.
1325 * query.c (agent_get_confirmation): New.
1327 2002-02-06 Werner Koch <wk@gnupg.org>
1329 * cache.c (housekeeping): Fixed linking in the remove case.
1331 2002-02-01 Werner Koch <wk@gnupg.org>
1333 * gpg-agent.c: New option --default-cache-ttl.
1334 * cache.c (agent_put_cache): Use it.
1336 * cache.c: Add a few debug outputs.
1338 * protect.c (agent_private_key_type): New.
1339 * agent.h: Add PRIVATE_KEY_ enums.
1340 * findkey.c (agent_key_from_file): Use it to decide whether we
1341 have to unprotect a key.
1342 (unprotect): Cache the passphrase.
1344 * findkey.c (agent_key_from_file,agent_key_available): The key
1345 files do now require a ".key" suffix to make a script's life
1347 * genkey.c (store_key): Ditto.
1349 2002-01-31 Werner Koch <wk@gnupg.org>
1351 * genkey.c (store_key): Protect the key.
1352 (agent_genkey): Ask for the passphrase.
1353 * findkey.c (unprotect): Actually unprotect the key.
1354 * query.c (agent_askpin): Add an optional start_err_text.
1356 2002-01-30 Werner Koch <wk@gnupg.org>
1359 (hash_passphrase): Based on the GnuPG 1.0.6 version.
1360 * protect-tool.c: New
1362 2002-01-29 Werner Koch <wk@gnupg.org>
1364 * findkey.c (agent_key_available): New.
1365 * command.c (cmd_havekey): New.
1366 (register_commands): And register new command.
1368 2002-01-20 Werner Koch <wk@gnupg.org>
1370 * command.c (cmd_get_passphrase): Remove the plus signs.
1372 * query.c (start_pinentry): Send no-grab option to pinentry
1373 * gpg-agent.c (main): Move variable grab as no_grab to agent.h.
1375 2002-01-19 Werner Koch <wk@gnupg.org>
1377 * gpg-agent.c (main): Disable core dumps.
1380 * command.c (cmd_get_passphrase): Use the cache.
1381 (cmd_clear_passphrase): Ditto.
1383 * gpg-agent.c: Removed unused cruft and implement the socket
1385 (my_strusage): Take bug report address from configure.ac.
1386 * command.c (start_command_handler): Add an argument to start as
1388 (start_command_handler): Enable Assuan logging.
1390 2002-01-15 Werner Koch <wk@gnupg.org>
1393 * command.c (cmd_istrusted, cmd_listtrusted, cmd_marktrusted): New.
1395 2002-01-07 Werner Koch <wk@gnupg.org>
1397 * genkey.c: Store the secret part and return the public part.
1399 2002-01-03 Werner Koch <wk@gnupg.org>
1401 * command.c (cmd_get_passphrase): New.
1402 (cmd_clear_passphrase): New.
1403 * query.c (agent_get_passphrase): New.
1405 2002-01-02 Werner Koch <wk@gnupg.org>
1408 * command.c (cmd_genkey): New.
1410 * command.c (rc_to_assuan_status): Removed and changed all callers
1411 to use map_to_assuan_status.
1413 2001-12-19 Werner Koch <wk@gnupg.org>
1415 * keyformat.txt: New.
1417 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
1419 * query.c (start_pinentry): Add new argument to assuan_pipe_connect.
1421 2001-12-18 Werner Koch <wk@gnupg.org>
1423 * Makefile.am: Use LIBGCRYPT macros
1425 2001-12-14 Werner Koch <wk@gnupg.org>
1427 * gpg-agent.c (main): New option --batch. New option --debug-wait
1428 n, so that it is possible to attach gdb when used in server mode.
1429 * query.c (agent_askpin): Don't ask in batch mode.
1431 * command.c: Removed the conversion macros as they are now in
1434 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
1436 * query.c (LINELENGTH): Removed.
1437 (agent_askpin): Use ASSUAN_LINELENGTH, not LINELENGTH.
1439 2001-11-19 Werner Koch <wk@gnupg.org>
1441 * gpg-agent.c: Removed all GUI code, removed code for old
1442 protocol. New code to use the Assuan protocol as a server and
1443 also to communicate with a new ask-passphrase utility.
1445 2000-11-22 Werner Koch <wk@gnupg.org>
1447 * gpg-agent.c (main): csh support by Dan Winship, new options --sh
1448 and --csh and set default by consulting $SHELL.
1450 Mon Aug 21 17:59:17 CEST 2000 Werner Koch <wk@openit.de>
1452 * gpg-agent.c (passphrase_dialog): Cleanup the window and added the
1453 user supplied text to the window.
1454 (main): Fixed segv in gtk_init when used without a command to start.
1456 * gpg-agent.c: --flush option.
1458 (req_clear_passphrase): Implemented.
1460 Fri Aug 18 14:27:14 CEST 2000 Werner Koch <wk@openit.de>
1466 Copyright 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
1468 This file is free software; as a special exception the author gives
1469 unlimited permission to copy and/or distribute it, with or without
1470 modifications, as long as this notice is preserved.
1472 This file is distributed in the hope that it will be useful, but
1473 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
1474 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.