- added sc_pkcs15init_set_secret

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1146 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2003-05-17 09:10:32 +00:00
parent 705103d4d8
commit a496e8e42b
2 changed files with 10 additions and 0 deletions

View File

@ -219,6 +219,8 @@ extern int sc_pkcs15init_get_label(struct sc_profile *, const char **);
extern void sc_pkcs15init_set_pin_data(struct sc_profile *, int,
const void *, size_t);
extern void sc_pkcs15init_set_secret(struct sc_profile *,
int, int, u8 *, size_t);
extern int sc_pkcs15init_get_secret(struct sc_profile *,
struct sc_card *, int, int, u8 *, size_t *);

View File

@ -1665,6 +1665,14 @@ do_verify_pin(struct sc_profile *pro, struct sc_card *card,
pinbuf, &pinsize, 1);
}
void
sc_pkcs15init_set_secret(struct sc_profile *pro,
int type, int reference,
u8 *key, size_t len)
{
sc_profile_set_secret(pro, type, reference, key, len);
}
int
sc_pkcs15init_get_secret(struct sc_profile *pro, struct sc_card *card,
int type, int reference,