Douglas E. Engert: The pkcs15-gemsafeV1.c does not detect of the
card present is in fact a gemsafeV1 card, and thus it can end up issuing commands to the wrong cards. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3709 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
8529b7ba3e
commit
d9cd831b4f
|
@ -206,7 +206,9 @@ static int gemsafe_get_cert_len(sc_card_t *card, sc_path_t *path,
|
|||
|
||||
static int gemsafe_detect_card( sc_pkcs15_card_t *p15card)
|
||||
{
|
||||
sc_debug(p15card->card->ctx, "In gemsafe_detect_card\n");
|
||||
if (strcmp(p15card->card->name, "GemSAFE V1"))
|
||||
return SC_ERROR_WRONG_CARD;
|
||||
|
||||
return SC_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue