- fixed compiling errors

- adjusted secure messaging to support extended length apdus
- card has to support extended length, this is hardcoded at the moment, but should better be done in the appropriate card driver


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@274 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-09-23 12:56:34 +00:00
parent 6bfdafde8a
commit f6d92dfece
4 changed files with 13 additions and 9 deletions

View File

@@ -1161,6 +1161,10 @@ int EstablishPACEChannel(const struct sm_ctx *oldpacectx, sc_card_t *card,
sctx->block_length = EVP_CIPHER_block_size(pctx->cipher);
sctx->active = 1;
/* All cards with PACE support extended length
* XXX this should better be done by the card driver */
card->caps |= SC_CARD_CAP_APDU_EXT;
err:
if (info)
PACEInfo_free(info);