mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
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.
This commit is contained in:
parent
0a5f742466
commit
b04901468f
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -405,7 +405,12 @@ open_card (ctrl_t ctrl, const char *apptype)
|
||||
select_application. */
|
||||
int sw = apdu_connect (slot);
|
||||
if (sw && sw != SW_HOST_ALREADY_CONNECTED)
|
||||
err = gpg_error (GPG_ERR_CARD);
|
||||
{
|
||||
if (sw == SW_HOST_NO_CARD)
|
||||
err = gpg_error (GPG_ERR_CARD_NOT_PRESENT);
|
||||
else
|
||||
err = gpg_error (GPG_ERR_CARD);
|
||||
}
|
||||
else
|
||||
err = select_application (ctrl, slot, apptype, &ctrl->app_ctx);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user