pkcs15: Select application defined by path.aid for PIN verification
This commit is contained in:
parent
bc9e42ddd7
commit
c41153aa13
|
@ -358,7 +358,7 @@ int sc_pkcs15_verify_pin(struct sc_pkcs15_card *p15card,
|
||||||
LOG_TEST_RET(ctx, r, "sc_lock() failed");
|
LOG_TEST_RET(ctx, r, "sc_lock() failed");
|
||||||
|
|
||||||
/* the path in the pin object is optional */
|
/* the path in the pin object is optional */
|
||||||
if (auth_info->path.len > 0) {
|
if ((auth_info->path.len > 0) || ((auth_info->path.aid.len > 0))) {
|
||||||
r = sc_select_file(card, &auth_info->path, NULL);
|
r = sc_select_file(card, &auth_info->path, NULL);
|
||||||
if (r)
|
if (r)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in New Issue