Fix detection of card removal and insertion.
authorWerner Koch <wk@gnupg.org>
Mon, 12 Dec 2011 19:34:12 +0000 (20:34 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 12 Dec 2011 19:34:12 +0000 (20:34 +0100)
commitcd29dc0f1cf7f3bd7938ffa65bf13f9a75d8c156
treeb262c6244c3043c43eaf200ea029c71060d77bc9
parentea0a21410b8fa460882c0f8de90b9291345fd4fc
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