- some unneded functions are no longer available in header files

- cleaned memory leaks in pace-tool and ccid-emulator


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@264 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-09-14 20:37:43 +00:00
parent 4a7fc6c457
commit 8623c7fe6e
5 changed files with 72 additions and 30 deletions

View File

@@ -1280,7 +1280,8 @@ reset_ssc(struct pace_sm_ctx *psmctx)
return SC_SUCCESS;
}
int pace_sm_encrypt(sc_card_t *card, const struct sm_ctx *ctx,
static int
pace_sm_encrypt(sc_card_t *card, const struct sm_ctx *ctx,
const u8 *data, size_t datalen, u8 **enc)
{
BUF_MEM *encbuf = NULL, *databuf = NULL;
@@ -1322,7 +1323,8 @@ err:
return r;
}
int pace_sm_decrypt(sc_card_t *card, const struct sm_ctx *ctx,
static int
pace_sm_decrypt(sc_card_t *card, const struct sm_ctx *ctx,
const u8 *enc, size_t enclen, u8 **data)
{
BUF_MEM *encbuf = NULL, *databuf = NULL;
@@ -1364,7 +1366,8 @@ err:
return r;
}
int pace_sm_authenticate(sc_card_t *card, const struct sm_ctx *ctx,
static int
pace_sm_authenticate(sc_card_t *card, const struct sm_ctx *ctx,
const u8 *data, size_t datalen, u8 **macdata)
{
BUF_MEM *macbuf = NULL;
@@ -1405,7 +1408,8 @@ err:
return r;
}
int pace_sm_verify_authentication(sc_card_t *card, const struct sm_ctx *ctx,
static int
pace_sm_verify_authentication(sc_card_t *card, const struct sm_ctx *ctx,
const u8 *mac, size_t maclen,
const u8 *macdata, size_t macdatalen)
{
@@ -1448,14 +1452,15 @@ err:
return r;
}
int pace_sm_pre_transmit(sc_card_t *card, const struct sm_ctx *ctx,
static int
pace_sm_pre_transmit(sc_card_t *card, const struct sm_ctx *ctx,
sc_apdu_t *apdu)
{
SC_FUNC_RETURN(card->ctx, SC_LOG_TYPE_DEBUG,
increment_ssc(ctx->cipher_ctx));
}
int pace_sm_post_transmit(sc_card_t *card, const struct sm_ctx *ctx,
static int pace_sm_post_transmit(sc_card_t *card, const struct sm_ctx *ctx,
sc_apdu_t *sm_apdu)
{
SC_FUNC_RETURN(card->ctx, SC_LOG_TYPE_DEBUG,