Fix a comment and allow cardos 4.3B too.
Thanks to JP for testing. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3568 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
cbf0c28d63
commit
aee10c8a13
@ -528,7 +528,7 @@ static int cardos_format()
|
||||
printf("aborting\n");
|
||||
return 1;
|
||||
|
||||
/* we can leave manufacturing mode with PHASE CYCLE,
|
||||
/* we can leave manufacturing mode with FORMAT,
|
||||
* but before we do that, we need to change the secret
|
||||
* siemens start key to the default 0xff start key.
|
||||
* we know the APDU for that, but it is secreat and
|
||||
@ -675,13 +675,12 @@ admin_state:
|
||||
printf("did not receive version info, aborting\n");
|
||||
return 1;
|
||||
}
|
||||
if (rbuf[0] != 0xc8 || rbuf[1] != 0x09) {
|
||||
printf("currently only CardOS M4.2B is supported, aborting\n");
|
||||
if ((rbuf[0] != 0xc8 || rbuf[1] != 0x09) && /* V4.2B */
|
||||
((rbuf[0] != 0xc8 || rbuf[1] != 0x08)) { /* V4.3B */
|
||||
printf("currently only CardOS M4.2B and V4.3B is supported, aborting\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* GET DATA for startkey index - 00 ca 01 96
|
||||
* returns 6 bytes PackageLoadKey.Version, PackageLoadKey.Retry
|
||||
* Startkey.Version, Startkey.Retry, 2 internal data byes */
|
||||
|
Loading…
Reference in New Issue
Block a user