From 34b91882da8791b384a3c92749cc1181584d30d7 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Thu, 20 May 2010 19:26:16 +0000 Subject: [PATCH] fixed class byte generation for sm apdu git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@110 96b47cad-a561-4643-ad3b-153ac7d7599c --- ccid/src/sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccid/src/sm.c b/ccid/src/sm.c index 652c862..355f062 100644 --- a/ccid/src/sm.c +++ b/ccid/src/sm.c @@ -266,7 +266,7 @@ static int sm_encrypt(const struct sm_ctx *ctx, sc_card_t *card, sm_apdu->sensitive = 0; sm_apdu->control = apdu->control; sm_apdu->flags = apdu->flags; - sm_apdu->cla = 0x0C; + sm_apdu->cla = apdu->cla|0x0C; sm_apdu->ins = apdu->ins; sm_apdu->p1 = apdu->p1; sm_apdu->p2 = apdu->p2;