Add option --card-timeout.
[gnupg.git] / scd / ChangeLog
index 85177e5..9ac21d6 100644 (file)
@@ -1,3 +1,87 @@
+2008-12-05  Werner Koch  <wk@g10code.com>
+
+       * app-openpgp.c (app_local_s): Add field ALGO_ATTR_CHANGE.
+       (app_select_openpgp): Parse new capability.
+       (show_caps): Show new capability.
+
+2008-12-03  Werner Koch  <wk@g10code.com>
+
+       * scdaemon.c (opts): Use ARGPARSE_ macros.  Add option
+       --card-timeout.
+       * command.c (update_reader_status_file): Implement it.
+
+2008-11-18  Werner Koch  <wk@g10code.com>
+
+       * scdaemon.c (make_libversion): New.
+       (my_strusage): Print libgcrypt and libksba version.
+
+2008-11-03  Werner Koch  <wk@g10code.com>
+
+       * command.c (server_local_s): Add field DISCONNECT_ALLOWED.
+       (cmd_disconnect): Implement command.
+       (open_card): Reset disconnect flag.
+       (update_reader_status_file): Disconnect if allowed.
+
+       * app-common.h (app_ctx_s): Remove INITIALIZED.  Make REF_COUNT
+       unsigned. 
+       * app.c (select_application): Remove INITIALIZED.
+       (app_write_learn_status, app_readcert, app_readkey, app_getattr)
+       (app_setattr, app_sign, app_decipher, app_writecert)
+       (app_writekey, app_get_challenge, app_change_pin, app_check_pin):
+       Replace INITIALIZED by REF_COUNT check.
+       (application_notify_card_removed): Rename to ..
+       (application_notify_card_reset): .. this.  Change all callers.
+       * command.c (do_reset): Call application_notify_card_reset after
+       sending a reset.
+       (update_reader_status_file): Add arg SET_CARD_REMOVED.
+       (scd_update_reader_status_file): Pass true for new flag.
+       (do_reset): Pass false for new flag.
+
+       * app.c (app_get_serial_and_stamp): Use bin2hex.
+       * app-help.c (app_help_get_keygrip_string): Ditto.
+       * app-p15.c (send_certinfo, send_keypairinfo, do_getattr): Ditto.
+       * app-openpgp.c (send_fpr_if_not_null, send_key_data) 
+       (retrieve_fpr_from_card, send_keypair_info): Ditto.
+       * app-nks.c (keygripstr_from_pk_file): Ditto.
+       * command.c (cmd_apdu): Ditto.
+
+2008-10-21  Marcus Brinkmann  <marcus@g10code.com>
+
+       * command.c (open_card): If connect error is SW_HOST_NO_CARD,
+       return a more descriptive error.
+
+2008-10-20  Werner Koch  <wk@g10code.com>
+
+       * pcsc-wrapper.c (read_32): Use provided arg and not stdin.  Is
+       called with stdin, though.
+       (handle_close): Mark unused arg.
+       (handle_status, handle_reset): Ditto.
+
+       * ccid-driver.c (ccid_check_card_presence): Mark not yet used arg.
+
+       * scdaemon.c (scd_deinit_default_ctrl): Mark unused arg.
+       * command.c (cmd_unlock, cmd_restart, cmd_disconnect): Ditto.
+       * apdu.c (ct_get_status): Ditto.
+       (ct_send_apdu, pcsc_send_apdu_wrapped)
+       (apdu_open_remote_reader): Ditto.
+       * app.c (select_application): Ditto.
+       * app-openpgp.c (do_writecert, do_change_pin, do_writekey): Ditto.
+       * app-nks.c (do_change_pin, do_check_pin): Ditto.
+
+2008-10-16  Werner Koch  <wk@g10code.com>
+
+       * command.c (cmd_disconnect): New dummy command.
+       (register_commands): Register command.
+
+2008-10-15  Werner Koch  <wk@g10code.com>
+
+       * command.c (scd_command_handler): Return true if there is no more
+       active session.
+       * scdaemon.c (start_connection_thread): Set shutdown flag if
+       requested by command handler.
+       (main): Make PIPE_SERVER module global.
+       (handle_connections): Disable listen_fd if a shutdown is pending.
+
 2008-10-14  Werner Koch  <wk@g10code.com>