- added support for IDicc

- fixed parse error of pace output buffer


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@202 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-07-07 16:38:34 +00:00
parent 4a3c04a755
commit bb1f1d91e6
4 changed files with 619 additions and 345 deletions

View File

@@ -1199,6 +1199,16 @@ int EstablishPACEChannel(const struct sm_ctx *oldpacectx, sc_card_t *card,
goto err;
}
/* get enough memory for IDicc */
p = realloc(*out, (*outlen) + 2);
if (!p) {
r = SC_ERROR_OUT_OF_MEMORY;
goto err;
}
*out = p;
memset((*out) + (*outlen), 0, 2);
*outlen += 2;
/* XXX parse CHAT to check role of terminal */
sctx->authentication_ctx = pace_sm_ctx_create(k_mac,