OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* | 4 /* |
5 * Internal header file included only by files in pkcs11 dir, or in | 5 * Internal header file included only by files in pkcs11 dir, or in |
6 * pkcs11 specific client and server files. | 6 * pkcs11 specific client and server files. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef _SECMODTI_H_ | 9 #ifndef _SECMODTI_H_ |
10 #define _SECMODTI_H_ 1 | 10 #define _SECMODTI_H_ 1 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 PK11SymKey *freeSymKeysHead; | 65 PK11SymKey *freeSymKeysHead; |
66 int keyCount; | 66 int keyCount; |
67 int maxKeyCount; | 67 int maxKeyCount; |
68 /* Password control functions for this slot. many of these are only | 68 /* Password control functions for this slot. many of these are only |
69 * active if the appropriate flag is on in defaultFlags */ | 69 * active if the appropriate flag is on in defaultFlags */ |
70 int askpw; /* what our password options are */ | 70 int askpw; /* what our password options are */ |
71 int timeout; /* If we're ask_timeout, what is our timeout time is | 71 int timeout; /* If we're ask_timeout, what is our timeout time is |
72 * seconds */ | 72 * seconds */ |
73 int authTransact; /* allow multiple authentications off one password if | 73 int authTransact; /* allow multiple authentications off one password if |
74 * they are all part of the same transaction */ | 74 * they are all part of the same transaction */ |
75 int64 authTime; /* when were we last authenticated */ | 75 PRTime authTime;» /* when were we last authenticated */ |
76 int minPassword; /* smallest legal password */ | 76 int minPassword; /* smallest legal password */ |
77 int maxPassword; /* largest legal password */ | 77 int maxPassword; /* largest legal password */ |
78 uint16 series;» /* break up the slot info into various groups of | 78 PRUint16 series;» /* break up the slot info into various groups of |
79 * inserted tokens so that keys and certs can be | 79 * inserted tokens so that keys and certs can be |
80 * invalidated */ | 80 * invalidated */ |
81 uint16 flagSeries;» /* record the last series for the last event | 81 PRUint16 flagSeries;/* record the last series for the last event |
82 * returned for this slot */ | 82 * returned for this slot */ |
83 PRBool flagState; /* record the state of the last event returned for this | 83 PRBool flagState; /* record the state of the last event returned for this |
84 * slot. */ | 84 * slot. */ |
85 uint16 wrapKey;» /* current wrapping key for SSL master secrets */ | 85 PRUint16 wrapKey;» /* current wrapping key for SSL master secrets */ |
86 CK_MECHANISM_TYPE wrapMechanism; | 86 CK_MECHANISM_TYPE wrapMechanism; |
87 /* current wrapping mechanism for current wrapKey */ | 87 /* current wrapping mechanism for current wrapKey */ |
88 CK_OBJECT_HANDLE refKeys[1]; /* array of existing wrapping keys for */ | 88 CK_OBJECT_HANDLE refKeys[1]; /* array of existing wrapping keys for */ |
89 CK_MECHANISM_TYPE *mechanismList; /* list of mechanism supported by this | 89 CK_MECHANISM_TYPE *mechanismList; /* list of mechanism supported by this |
90 * token */ | 90 * token */ |
91 int mechanismCount; | 91 int mechanismCount; |
92 /* cache the certificates stored on the token of this slot */ | 92 /* cache the certificates stored on the token of this slot */ |
93 CERTCertificate **cert_array; | 93 CERTCertificate **cert_array; |
94 int array_size; | 94 int array_size; |
95 int cert_count; | 95 int cert_count; |
(...skipping 25 matching lines...) Expand all Loading... |
121 PK11SymKey *next; | 121 PK11SymKey *next; |
122 PRBool owner; | 122 PRBool owner; |
123 SECItem data; /* raw key data if available */ | 123 SECItem data; /* raw key data if available */ |
124 CK_SESSION_HANDLE session; | 124 CK_SESSION_HANDLE session; |
125 PRBool sessionOwner; | 125 PRBool sessionOwner; |
126 PRInt32 refCount; /* number of references to this key */ | 126 PRInt32 refCount; /* number of references to this key */ |
127 int size; /* key size in bytes */ | 127 int size; /* key size in bytes */ |
128 PK11Origin origin; /* where this key came from | 128 PK11Origin origin; /* where this key came from |
129 * (see def in secmodt.h) */ | 129 * (see def in secmodt.h) */ |
130 PK11SymKey *parent; /* potential owner key of the session */ | 130 PK11SymKey *parent; /* potential owner key of the session */ |
131 uint16 series;» » /* break up the slot info into various groups | 131 PRUint16 series;» » /* break up the slot info into various groups |
132 * of inserted tokens so that keys and certs | 132 * of inserted tokens so that keys and certs |
133 * can be invalidated */ | 133 * can be invalidated */ |
134 void *userData; /* random data the application can attach to | 134 void *userData; /* random data the application can attach to |
135 * this key */ | 135 * this key */ |
136 PK11FreeDataFunc freeFunc; /* function to free the user data */ | 136 PK11FreeDataFunc freeFunc; /* function to free the user data */ |
137 }; | 137 }; |
138 | 138 |
139 | 139 |
140 /* | 140 /* |
141 * hold a hash, encryption or signing context for multi-part operations. | 141 * hold a hash, encryption or signing context for multi-part operations. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 }; | 178 }; |
179 | 179 |
180 | 180 |
181 #define MAX_TEMPL_ATTRS 16 /* maximum attributes in template */ | 181 #define MAX_TEMPL_ATTRS 16 /* maximum attributes in template */ |
182 | 182 |
183 /* This mask includes all CK_FLAGs with an equivalent CKA_ attribute. */ | 183 /* This mask includes all CK_FLAGs with an equivalent CKA_ attribute. */ |
184 #define CKF_KEY_OPERATION_FLAGS 0x000e7b00UL | 184 #define CKF_KEY_OPERATION_FLAGS 0x000e7b00UL |
185 | 185 |
186 | 186 |
187 #endif /* _SECMODTI_H_ */ | 187 #endif /* _SECMODTI_H_ */ |
OLD | NEW |