pkcs15: Select application defined by path.aid for PIN verification

This commit is contained in:
Andreas Schwier 2015-09-23 15:36:56 +02:00
parent bc9e42ddd7
commit c41153aa13
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ int sc_pkcs15_verify_pin(struct sc_pkcs15_card *p15card,
LOG_TEST_RET(ctx, r, "sc_lock() failed");
/* 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);
if (r)
goto out;