* call-scd.c (unescape_status_string): New. Actual a copy of
authorWerner Koch <wk@gnupg.org>
Thu, 24 Feb 2005 21:40:48 +0000 (21:40 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 24 Feb 2005 21:40:48 +0000 (21:40 +0000)
commit1f1f28555a19f76a97824ad7e5a85228b1c16ea9
tree4f72836c650fe9ba1b3c1451d420858641ac827d
parent3af261572bdf938f0a2fdde4d9aec82153a7e0e4
* call-scd.c (unescape_status_string): New. Actual a copy of
../g10/call-agent.c
(card_getattr_cb, agent_card_getattr): New.

* command-ssh.c (card_key_available): New.
(ssh_handler_request_identities): First see whether a card key is
available.

* app.c (app_getattr): Return APPTYPE or SERIALNO type even if the
application does dot support the getattr call.

* app.c (select_application): Return an error code and the
application context in an new arg.
* command.c (open_card): Adjusted for that.  Don't use the
fallback if no card is present.  Return an error if the card has
been removed without a reset.
(do_reset, cmd_serialno): Clear that error flag.
(TEST_CARD_REMOVAL): New. Use it with all command handlers.
(scd_update_reader_status_file): Set the error flag on all changes.
agent/ChangeLog
agent/agent.h
agent/call-scd.c
agent/command-ssh.c
scd/ChangeLog
scd/app.c
scd/command.c