Fix detection of card removal and insertion.
authorWerner Koch <wk@gnupg.org>
Mon, 12 Dec 2011 19:34:12 +0000 (20:34 +0100)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 25 Jun 2012 01:04:22 +0000 (10:04 +0900)
commit1e0a9498fee878fef5b7ee68cdaa5473a2584cea
treecb94388ee1d11b3ad58071407b5a2c4a41480030
parent8dff0096132fff70a5ee29a50222aebcd9b41ec7
Fix detection of card removal and insertion.

* scd/apdu.c (apdu_connect): Return status codes for no card available
and inactive card.
* scd/command.c (TEST_CARD_REMOVAL): Also test for GPG_ERR_CARD_RESET.
(open_card): Map apdu_connect status to GPG_ERR_CARD_RESET.
scd/apdu.c
scd/command.c