- 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:
parent
3e6525539a
commit
efa136e3cd
|
@ -134,6 +134,8 @@ extern int sc_pkcs15init_update_file(struct sc_profile *,
|
||||||
struct sc_card *, struct sc_file *, void *, unsigned int);
|
struct sc_card *, struct sc_file *, void *, unsigned int);
|
||||||
extern int sc_pkcs15init_authenticate(struct sc_profile *,
|
extern int sc_pkcs15init_authenticate(struct sc_profile *,
|
||||||
struct sc_card *, struct sc_file *, int);
|
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_file(struct sc_profile *, struct sc_file *);
|
||||||
extern int sc_pkcs15init_fixup_acls(struct sc_profile *,
|
extern int sc_pkcs15init_fixup_acls(struct sc_profile *,
|
||||||
struct sc_file *,
|
struct sc_file *,
|
||||||
|
|
|
@ -841,6 +841,16 @@ no_secret:
|
||||||
return 0;
|
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.
|
* Present any authentication info as required by the file.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue