int sc_pkcs15emu_oberthur_init_ex(struct sc_pkcs15_card * p15card, struct sc_pkcs15emu_opt * opts) { int rv; SC_FUNC_CALLED(p15card->card->ctx, SC_LOG_DEBUG_VERBOSE); if (opts && opts->flags & SC_PKCS15EMU_FLAGS_NO_CHECK) { rv = sc_pkcs15emu_oberthur_init(p15card); } else { rv = oberthur_detect_card(p15card); if (!rv) rv = sc_pkcs15emu_oberthur_init(p15card); } SC_FUNC_RETURN(p15card->card->ctx, SC_LOG_DEBUG_NORMAL, rv); }
int sc_pkcs15emu_oberthur_init_ex(struct sc_pkcs15_card * p15card, struct sc_aid *aid, struct sc_pkcs15emu_opt * opts) { int rv; LOG_FUNC_CALLED(p15card->card->ctx); if (opts && opts->flags & SC_PKCS15EMU_FLAGS_NO_CHECK) { rv = sc_pkcs15emu_oberthur_init(p15card); } else { rv = oberthur_detect_card(p15card); if (!rv) rv = sc_pkcs15emu_oberthur_init(p15card); } LOG_FUNC_RETURN(p15card->card->ctx, rv); }