moved sm_stop() to OpenSC as sc_sm_stop()

This commit is contained in:
Frank Morgner
2015-04-07 16:51:19 +02:00
parent cc12a61001
commit b4ebc4882b
7 changed files with 10 additions and 38 deletions

View File

@@ -720,20 +720,6 @@ int iso_sm_start(struct sc_card *card, struct iso_sm_ctx *sctx)
return SC_SUCCESS;
}
int sm_stop(struct sc_card *card)
{
int r = SC_SUCCESS;
if (card) {
if (card->sm_ctx.sm_mode == SM_MODE_TRANSMIT
&& card->sm_ctx.ops.close)
r = card->sm_ctx.ops.close(card);
card->sm_ctx.sm_mode = SM_MODE_NONE;
}
return r;
}
#else
int iso_sm_close(struct sc_card *card)
@@ -760,9 +746,4 @@ int iso_sm_start(struct sc_card *card, struct iso_sm_ctx *sctx)
return SC_ERROR_NOT_SUPPORTED;
}
int sm_stop(struct sc_card *card)
{
return SC_ERROR_NOT_SUPPORTED;
}
#endif