Changeset 2892 for releases

Show
Ignore:
Timestamp:
04/24/06 18:42:27 (3 years ago)
Author:
aj
Message:

tcos updates by Peter Koch.

Location:
releases/opensc-0.11.0/src/libopensc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • releases/opensc-0.11.0/src/libopensc/card-tcos.c

    r2650 r2892  
    628628        if (se_num) SC_FUNC_RETURN(ctx, 1, SC_ERROR_INVALID_ARGUMENTS); 
    629629 
    630         if(ctx->debug >= 3) sc_debug(ctx, "Security Environment %d:%02X\n", env->key_ref_len, *env->key_ref); 
     630        if(ctx->debug >= 3) sc_debug(ctx, "Security Environment Ref=%d:%02X\n", env->key_ref_len, *env->key_ref); 
    631631        if(env->operation == SC_SEC_OPERATION_SIGN && 
    632632           (!(env->flags & SC_SEC_ENV_KEY_REF_PRESENT) || (env->key_ref_len==1 && *env->key_ref==0x80)) 
     
    713713 
    714714        if(((tcos_data *)card->drv_data)->sign_with_def_env){ 
     715                if(datalen>48){ 
     716                        sc_error(card->ctx, "Data to be signed is too long (TCOS supports max. 48 bytes)\n"); 
     717                        SC_FUNC_RETURN(card->ctx, 4, SC_ERROR_INVALID_ARGUMENTS); 
     718                } 
    715719                sc_format_apdu(card, &apdu, SC_APDU_CASE_4_SHORT, 0x2A, 0x9E, 0x9A); 
    716720                memcpy(sbuf, data, datalen); 
  • releases/opensc-0.11.0/src/libopensc/pkcs15-tcos.c

    r2859 r2892  
    5757                {-1, 0x46, 1, "DF014371",     "Authentifizierungs Zertifikat 1"}, 
    5858                {-1, 0x46, 1, "DF014372",     "Authentifizierungs Zertifikat 2"}, 
    59                 {-1, 0x47, 0, "DF01C200",     "Telesec Verschlüsselungs Zertifikat"}, 
    60                 {-1, 0x47, 1, "DF0143B1",     "Verschlüsselungs Zertifikat 1"}, 
    61                 {-1, 0x47, 1, "DF0143B2",     "Verschlüsselungs Zertifikat 2"}, 
     59                {-1, 0x47, 0, "DF01C200",     "Telesec Verschluesselungs Zertifikat"}, 
     60                {-1, 0x47, 1, "DF0143B1",     "Verschluesselungs Zertifikat 1"}, 
     61                {-1, 0x47, 1, "DF0143B2",     "Verschluesselungs Zertifikat 2"}, 
    6262                {-1, 0x48, 1, "41014352",     "W2K Logon Zertifikat"}, 
    6363                { 2, 0x45, 1, "8000DF01C000", "SignTrust Signatur Zertifikat"}, 
    64                 {-2, 0x46, 1, "800082008220", "SignTrust Authentifizierungs Zertifikat"}, 
    65                 {-2, 0x47, 1, "800083008320", "SignTrust Verschlüsselungs Zertifikat"}, 
     64                {-2, 0x46, 1, "800082008220", "SignTrust Verschluesselungs Zertifikat"}, 
     65                {-2, 0x47, 1, "800083008320", "SignTrust Authentifizierungs Zertifikat"}, 
    6666                { 3, 0x45, 1, "41014352",     "Smartkey Zertifikat A1"}, 
    6767                {-3, 0x46, 1, "41014353",     "Smartkey Zertifikat A2"}, 
     
    7979                const char   *label; 
    8080        } keylist[]={ 
    81                 {1, 0x45, 4, "DF015331",     0x80, "Signatur Schlüssel"}, 
    82                 {1, 0x46, 3, "DF015371",     0x82, "Authentifizierungs Schlüssel"}, 
    83                 {1, 0x47, 3, "DF0153B1",     0x81, "Verschlüsselungs Schlüssel"}, 
    84                 {1, 0x48, 1, "41015103",     0x83, "W2K Logon Schlüssel"}, 
    85                 {2, 0x45, 1, "8000DF015331", 0x80, "Signatur Schlüssel"}, 
    86                 {2, 0x46, 2, "800082008210", 0x80, "Authentifzierungs Schlüssel"}, 
    87                 {2, 0x47, 3, "800083008310", 0x80, "Verschlüsselungs Schlüssel"}, 
    88                 {3, 0x45, 1, "41015103",     0x83, "Smartkey Schlüssel A1"}, 
    89                 {3, 0x46, 1, "41015104",     0x84, "Smartkey Schlüssel A2"}, 
    90                 {3, 0x47, 1, "42015103",     0x83, "Smartkey Schlüssel B1"}, 
    91                 {3, 0x48, 1, "42015104",     0x84, "Smartkey Schlüssel B2"}, 
    92                 {3, 0x49, 1, "43015103",     0x83, "Smartkey Schlüssel C1"}, 
    93                 {3, 0x4A, 1, "43015104",     0x84, "Smartkey Schlüssel C2"}, 
    94                 {4, 0x45, 1, "3F004100",     0x83, "UniCard Giessen Schlüssel"}, 
     81                {1, 0x45, 4, "DF015331",     0x80, "Signatur Schluessel"}, 
     82                {1, 0x46, 3, "DF015371",     0x82, "Authentifizierungs Schluessel"}, 
     83                {1, 0x47, 3, "DF0153B1",     0x81, "Verschluesselungs Schluessel"}, 
     84                {1, 0x48, 1, "41015103",     0x83, "W2K Logon Schluessel"}, 
     85                {2, 0x45, 1, "8000DF015331", 0x80, "Signatur Schluessel"}, 
     86                {2, 0x46, 2, "800082008210", 0x80, "Verschluesselungs Schluessel"}, 
     87                {2, 0x47, 3, "800083008310", 0x80, "Authentifizierungs Schluessel"}, 
     88                {3, 0x45, 1, "41015103",     0x83, "Smartkey Schluessel A1"}, 
     89                {3, 0x46, 1, "41015104",     0x84, "Smartkey Schluessel A2"}, 
     90                {3, 0x47, 1, "42015103",     0x83, "Smartkey Schluessel B1"}, 
     91                {3, 0x48, 1, "42015104",     0x84, "Smartkey Schluessel B2"}, 
     92                {3, 0x49, 1, "43015103",     0x83, "Smartkey Schluessel C1"}, 
     93                {3, 0x4A, 1, "43015104",     0x84, "Smartkey Schluessel C2"}, 
     94                {4, 0x45, 1, "3F004100",     0x83, "UniCard Giessen Schluessel"}, 
    9595                {0, 0, 0, NULL, 0, NULL} 
    9696        }; 
     
    117117                        SC_PKCS15_PIN_FLAG_CASE_SENSITIVE | SC_PKCS15_PIN_FLAG_LOCAL | 
    118118                        SC_PKCS15_PIN_FLAG_INITIALIZED}, 
    119                 {2, 2, 0, 6, 0x81, "800082000040", "Authentifizierungs PIN", 
    120                         SC_PKCS15_PIN_FLAG_CASE_SENSITIVE | SC_PKCS15_PIN_FLAG_LOCAL | 
    121                         SC_PKCS15_PIN_FLAG_INITIALIZED}, 
    122                 {2, 3, 0, 6, 0x81, "800083000040", "Verschlüsselungs PIN", 
     119                {2, 2, 0, 6, 0x81, "800082000040", "Verschluesselungs PIN", 
     120                        SC_PKCS15_PIN_FLAG_CASE_SENSITIVE | SC_PKCS15_PIN_FLAG_LOCAL | 
     121                        SC_PKCS15_PIN_FLAG_INITIALIZED}, 
     122                {2, 3, 0, 6, 0x81, "800083000040", "Authentifizierungs PIN", 
    123123                        SC_PKCS15_PIN_FLAG_CASE_SENSITIVE | SC_PKCS15_PIN_FLAG_LOCAL | 
    124124                        SC_PKCS15_PIN_FLAG_INITIALIZED},