Changeset 5569 in opensc


Ignore:
Timestamp:
06/13/11 09:23:30 (11 months ago)
Author:
vtarasov
Message:

pkcs15: add comments for the authentication object data type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/pkcs15.h

    r5562 r5569  
    7171 
    7272#define SC_PKCS15_PIN_AUTH_TYPE_PIN                     0 
    73 #define SC_PKCS15_PIN_AUTH_TYPE_AUTH_KEY                1 
    74 #define SC_PKCS15_PIN_AUTH_TYPE_SM_KEY                  2 
    75  
     73#define SC_PKCS15_PIN_AUTH_TYPE_BIOMETRIC               1 
     74#define SC_PKCS15_PIN_AUTH_TYPE_AUTH_KEY                2 
     75#define SC_PKCS15_PIN_AUTH_TYPE_SM_KEY                  3 
     76 
     77/* PinAttributes as they defined in PKCS#15 v1.1 for PIN authentication object */ 
    7678struct sc_pkcs15_pin_attributes { 
    7779        unsigned int  flags, type; 
     
    8082        u8  pad_char; 
    8183}; 
     84/* AuthKeyAttributes of the authKey authentication object */ 
    8285struct sc_pkcs15_authkey_attributes { 
    8386        int derived; 
    8487        struct sc_pkcs15_id skey_id; 
    8588}; 
     89/* BiometricAttributes of the biometricTemplate authentication object */ 
    8690struct sc_pkcs15_biometric_attributes { 
    8791        unsigned int flags; 
     
    9094}; 
    9195struct sc_pkcs15_auth_info { 
     96        /* CommonAuthenticationObjectAttributes */ 
    9297        struct sc_pkcs15_id  auth_id; 
     98 
     99        /* AuthObjectAttributes */ 
    93100        struct sc_path  path; 
    94101        unsigned auth_type; 
     
    98105                struct sc_pkcs15_authkey_attributes authkey; 
    99106        } attrs; 
     107 
     108        /* authentication method: CHV, SEN, SYMBOLIC, ... */ 
    100109        unsigned int  auth_method; 
     110 
    101111        int  tries_left, max_tries; 
    102112 }; 
Note: See TracChangeset for help on using the changeset viewer.