implemented npa_logout

This commit is contained in:
Frank Morgner
2014-08-08 03:54:59 +02:00
parent 74d6f6555a
commit 68f59aabc9

View File

@@ -361,7 +361,13 @@ err:
SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_NORMAL, r); SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_NORMAL, r);
} }
static struct sc_card_driver *npa_get_driver(void) static int npa_logout(sc_card_t *card)
{
sm_stop(card);
return sc_select_file(card, sc_get_mf_path(), NULL);
}
struct sc_card_driver *npa_get_driver(void)
{ {
struct sc_card_driver *iso_drv = sc_get_iso7816_driver(); struct sc_card_driver *iso_drv = sc_get_iso7816_driver();
@@ -370,6 +376,7 @@ static struct sc_card_driver *npa_get_driver(void)
npa_ops.init = npa_init; npa_ops.init = npa_init;
npa_ops.finish = npa_finish; npa_ops.finish = npa_finish;
npa_ops.pin_cmd = npa_pin_cmd; npa_ops.pin_cmd = npa_pin_cmd;
npa_ops.logout = npa_logout;
return &npa_drv; return &npa_drv;
} }