Changeset 3502 for trunk/src/libopensc/card-muscle.c
- Timestamp:
- 04/28/08 07:57:03 (9 months ago)
- Files:
-
- 1 modified
-
trunk/src/libopensc/card-muscle.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libopensc/card-muscle.c
r3180 r3502 179 179 file = &fs->cache.array[fs->currentFileIndex]; 180 180 objectId = file->objectId; 181 // memcpy(objectId.id, file->objectId.id, 4); 181 /* memcpy(objectId.id, file->objectId.id, 4); */ 182 182 if(!file->ef) { 183 183 oid[0] = oid[2]; … … 202 202 203 203 objectId = file->objectId; 204 / /memcpy(objectId.id, file->objectId.id, 4);204 /* memcpy(objectId.id, file->objectId.id, 4); */ 205 205 if(!file->ef) { 206 206 oid[0] = oid[2]; … … 230 230 r = msc_update_object(card, objectId, idx, buf, count); 231 231 } 232 / /mscfs_clear_cache(fs);232 /* mscfs_clear_cache(fs); */ 233 233 return r; 234 234 } … … 269 269 oid[1] = oid[3]; 270 270 oid[2] = oid[3] = 0; 271 / / ??? objectId = objectId >> 16;271 /* ??? objectId = objectId >> 16; */ 272 272 } 273 273 if((0 == memcmp(oid, "\x3F\x00\x00\x00", 4)) … … 308 308 { 309 309 int key; 310 / / Everybody by default....310 /* Everybody by default.... */ 311 311 sc_file_add_acl_entry(file, operation, SC_AC_NONE, 0); 312 312 if(acl == 0xFFFF) { … … 585 585 /* CURRENTLY DONT SUPPOT EXTRACTING PRIVATE KEYS... */ 586 586 switch(info->keyType) { 587 case 1: / / RSA587 case 1: /* RSA */ 588 588 return msc_extract_rsa_public_key(card, 589 589 info->keyLocation, … … 601 601 /* CURRENTLY DONT SUPPOT EXTRACTING PRIVATE KEYS... */ 602 602 switch(info->keyType) { 603 case 0x02: / / RSA_PRIVATE604 case 0x03: / / RSA_PRIVATE_CRT603 case 0x02: /* RSA_PRIVATE */ 604 case 0x03: /* RSA_PRIVATE_CRT */ 605 605 return msc_import_key(card, 606 606 info->keyLocation, … … 676 676 return SC_ERROR_NOT_SUPPORTED; 677 677 } 678 / /if (env->flags & SC_SEC_ENV_FILE_REF_PRESENT)679 //if (memcmp(env->file_ref.value, "\x00\x12", 2) != 0) {680 //sc_error(card->ctx, "File reference is not 0012.\n");681 //return SC_ERROR_NOT_SUPPORTED;682 // }678 /* if (env->flags & SC_SEC_ENV_FILE_REF_PRESENT) 679 if (memcmp(env->file_ref.value, "\x00\x12", 2) != 0) { 680 sc_error(card->ctx, "File reference is not 0012.\n"); 681 return SC_ERROR_NOT_SUPPORTED; 682 } */ 683 683 priv->env = *env; 684 684 return 0;
