pkcs15: without AID specified return the first available PKCS#15 application ...
revert accidential commit, thanks to Pierre Ossman. http://www.opensc-project.org/pipermail/opensc-devel/2011-March/016149.html git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5232 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
b1a1dc245a
commit
a076397671
|
@ -675,7 +675,7 @@ struct sc_app_info * sc_find_app(struct sc_card *card, struct sc_aid *aid)
|
|||
return NULL;
|
||||
|
||||
if (!aid || !aid->len)
|
||||
return card->app[card->app_count - 1];
|
||||
return card->app[0];
|
||||
|
||||
for (ii=0; ii < card->app_count; ii++) {
|
||||
if (card->app[ii]->aid.len != aid->len)
|
||||
|
|
Loading…
Reference in New Issue