Show
Ignore:
Timestamp:
04/28/08 07:57:03 (9 months ago)
Author:
ludovic.rousseau
Message:

convert C++ in C comment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/card-muscle.c

    r3180 r3502  
    179179        file = &fs->cache.array[fs->currentFileIndex]; 
    180180        objectId = file->objectId; 
    181 //      memcpy(objectId.id, file->objectId.id, 4); 
     181        /* memcpy(objectId.id, file->objectId.id, 4); */ 
    182182        if(!file->ef) { 
    183183                oid[0] = oid[2]; 
     
    202202         
    203203        objectId = file->objectId; 
    204         //memcpy(objectId.id, file->objectId.id, 4); 
     204        /* memcpy(objectId.id, file->objectId.id, 4); */ 
    205205        if(!file->ef) { 
    206206                oid[0] = oid[2]; 
     
    230230                r = msc_update_object(card, objectId, idx, buf, count); 
    231231        } 
    232         //mscfs_clear_cache(fs); 
     232        /* mscfs_clear_cache(fs); */ 
    233233        return r; 
    234234} 
     
    269269                oid[1] = oid[3]; 
    270270                oid[2] = oid[3] = 0; 
    271                 // ??? objectId = objectId >> 16; 
     271                /* ??? objectId = objectId >> 16; */ 
    272272        } 
    273273        if((0 == memcmp(oid, "\x3F\x00\x00\x00", 4)) 
     
    308308{ 
    309309        int key; 
    310         // Everybody by default.... 
     310        /* Everybody by default.... */ 
    311311        sc_file_add_acl_entry(file, operation, SC_AC_NONE, 0); 
    312312        if(acl == 0xFFFF) { 
     
    585585        /* CURRENTLY DONT SUPPOT EXTRACTING PRIVATE KEYS... */ 
    586586        switch(info->keyType) { 
    587         case 1: // RSA 
     587        case 1: /* RSA */ 
    588588                return msc_extract_rsa_public_key(card,  
    589589                        info->keyLocation,  
     
    601601        /* CURRENTLY DONT SUPPOT EXTRACTING PRIVATE KEYS... */ 
    602602        switch(info->keyType) { 
    603         case 0x02: // RSA_PRIVATE 
    604         case 0x03: // RSA_PRIVATE_CRT 
     603        case 0x02: /* RSA_PRIVATE */ 
     604        case 0x03: /* RSA_PRIVATE_CRT */ 
    605605                return msc_import_key(card,  
    606606                        info->keyLocation,  
     
    676676                return SC_ERROR_NOT_SUPPORTED; 
    677677        } 
    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                } */ 
    683683        priv->env = *env; 
    684684        return 0;