libopensc emu: sorry, fix

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4098 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2010-03-09 17:11:31 +00:00
parent 6cb0c93ee3
commit 0027a21204
2 changed files with 3 additions and 3 deletions

View File

@ -1354,7 +1354,7 @@ void sc_pkcs15_free_object(struct sc_pkcs15_object *obj)
int sc_pkcs15_add_df(struct sc_pkcs15_card *p15card,
unsigned int type, const sc_path_t *path,
const sc_file_t *file,
int (*parse_handler)(struct sc_pkcs15_card *, unsigned))
int (*parse_handler)(struct sc_pkcs15_card *, struct sc_pkcs15_df *))
{
struct sc_pkcs15_df *p, *newdf;
@ -1477,7 +1477,7 @@ int sc_pkcs15_parse_df(struct sc_pkcs15_card *p15card,
const u8 **nbuf, size_t *nbufsize) = NULL;
if (df->parse_handler)
return df->parse_handler(p15card, df->type);
return df->parse_handler(p15card, df);
switch (df->type) {
case SC_PKCS15_PRKDF:

View File

@ -655,7 +655,7 @@ void sc_pkcs15_remove_object(struct sc_pkcs15_card *p15card,
struct sc_pkcs15_object *obj);
int sc_pkcs15_add_df(struct sc_pkcs15_card *p15card, unsigned int type,
const sc_path_t *path, const struct sc_file *file,
int (*)(struct sc_pkcs15_card *, unsigned));
int (*)(struct sc_pkcs15_card *, struct sc_pkcs15_df *));
void sc_pkcs15_remove_df(struct sc_pkcs15_card *p15card,
struct sc_pkcs15_df *df);