From: leslie Date: Tue, 24 Mar 2009 13:03:28 +0000 (+0800) Subject: sc-cryptoworks: new disable PIN cmds X-Git-Tag: 0.9.2~48 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=a7eae572e0b79dca8acbede4b9a5fa97795c23fe;p=sasc-ng.git sc-cryptoworks: new disable PIN cmds --- diff --git a/systems/sc-cryptoworks/sc-cryptoworks.c b/systems/sc-cryptoworks/sc-cryptoworks.c index 9f16889..fa54bff 100644 --- a/systems/sc-cryptoworks/sc-cryptoworks.c +++ b/systems/sc-cryptoworks/sc-cryptoworks.c @@ -426,14 +426,16 @@ bool cSmartCardCryptoworks::Init(void) } } if(pinOK) { - static const unsigned char ins24[] = { 0xA4,0x24,0x00,0x01,0x05 }; + //static const unsigned char ins[] = { 0xA4,0x24,0x00,0x01,0x05 }; + static const unsigned char ins[] = { 0xA4,0x20,0x00,0x00,0x04 }; // verify PIN + //static const unsigned char ins[] = { 0xA4,0x26,0x00,0x00,0x04 }; // disable PIN PRINTF(L_SC_INIT,"your card PIN is %.4s",&buff[2]); // parental rating // 0x00 - undefined // 0x01-0x0f - minimum age=rating+3 years // 0x10-0xff - reserved for provider usage buff[6]=0; - if(IsoWrite(ins24,&buff[2]) && Status()) + if(IsoWrite(ins,&buff[2]) && Status()) PRINTF(L_SC_INIT,"parental rating set to %02x",buff[6]); else PRINTF(L_SC_ERROR,"failed to set parental rating.");