- added sc_pkcs15init_present_pin for juha

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@421 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2002-04-02 14:27:00 +00:00
parent 3e6525539a
commit efa136e3cd
2 changed files with 12 additions and 0 deletions

View File

@ -134,6 +134,8 @@ extern int sc_pkcs15init_update_file(struct sc_profile *,
struct sc_card *, struct sc_file *, void *, unsigned int);
extern int sc_pkcs15init_authenticate(struct sc_profile *,
struct sc_card *, struct sc_file *, int);
extern int sc_pkcs15init_present_pin(struct sc_profile *,
struct sc_card *, unsigned int);
extern int sc_pkcs15init_fixup_file(struct sc_profile *, struct sc_file *);
extern int sc_pkcs15init_fixup_acls(struct sc_profile *,
struct sc_file *,

View File

@ -841,6 +841,16 @@ no_secret:
return 0;
}
/*
* Present a single PIN to the card
*/
int
sc_pkcs15init_present_pin(struct sc_profile *profile, struct sc_card *card,
unsigned int id)
{
return do_verify_pin(profile, card, SC_AC_SYMBOLIC, id);
}
/*
* Present any authentication info as required by the file.
*