Changeset 3502 for trunk/src/libopensc/pkcs15-tcos.c
- Timestamp:
- 04/28/08 09:57:03 (7 months ago)
- Files:
-
- 1 modified
-
trunk/src/libopensc/pkcs15-tcos.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libopensc/pkcs15-tcos.c
r3405 r3502 65 65 } 66 66 67 / / some certificates are prefixed by an OID67 /* some certificates are prefixed by an OID */ 68 68 if(cert[4]==0x06 && cert[5]<10 && cert[6+cert[5]]==0x30 && cert[7+cert[5]]==0x82){ 69 69 cert_info.path.index=6+cert[5]; … … 255 255 char dir[10], *c_auth; 256 256 257 / / NKS-Applikation ?257 /* NKS-Applikation ? */ 258 258 p.len=7; p.type=SC_PATH_TYPE_DF_NAME; 259 259 memcpy(p.value, "\xD2\x76\x00\x00\x03\x01\x02", p.len=7); … … 307 307 ); 308 308 309 / / SigG-Applikation ?309 /* SigG-Applikation ? */ 310 310 p.len=7; p.type=SC_PATH_TYPE_DF_NAME; 311 311 memcpy(p.value, "\xD2\x76\x00\x00\x66\x01", p.len=6); … … 438 438 int i, r; 439 439 440 / / check if we have the correct card OS unless SC_PKCS15EMU_FLAGS_NO_CHECK440 /* check if we have the correct card OS unless SC_PKCS15EMU_FLAGS_NO_CHECK */ 441 441 i=(opts && (opts->flags & SC_PKCS15EMU_FLAGS_NO_CHECK)); 442 442 if (!i && card->type!=SC_CARD_TYPE_TCOS_V2 && card->type!=SC_CARD_TYPE_TCOS_V3) return SC_ERROR_WRONG_CARD; 443 443 444 / / get the card serial number444 /* get the card serial number */ 445 445 r = sc_card_ctl(card, SC_CARDCTL_GET_SERIALNR, &serialnr); 446 446 if (r < 0) {
