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 #ifndef DEV_H | 5 #ifndef DEV_H |
6 #define DEV_H | 6 #define DEV_H |
7 | 7 |
8 /* | 8 /* |
9 * dev.h | 9 * dev.h |
10 * | 10 * |
(...skipping 22 matching lines...) Expand all Loading... |
33 * nss_GetLoadedModules | 33 * nss_GetLoadedModules |
34 * | 34 * |
35 * nssGlobalModuleList_Add | 35 * nssGlobalModuleList_Add |
36 * nssGlobalModuleList_Remove | 36 * nssGlobalModuleList_Remove |
37 * nssGlobalModuleList_FindModuleByName | 37 * nssGlobalModuleList_FindModuleByName |
38 * nssGlobalModuleList_FindSlotByName | 38 * nssGlobalModuleList_FindSlotByName |
39 * nssGlobalModuleList_FindTokenByName | 39 * nssGlobalModuleList_FindTokenByName |
40 */ | 40 */ |
41 | 41 |
42 NSS_EXTERN PRStatus | 42 NSS_EXTERN PRStatus |
43 nss_InitializeGlobalModuleList | 43 nss_InitializeGlobalModuleList( |
44 ( | 44 void); |
45 void | |
46 ); | |
47 | 45 |
48 NSS_EXTERN PRStatus | 46 NSS_EXTERN PRStatus |
49 nss_DestroyGlobalModuleList | 47 nss_DestroyGlobalModuleList( |
50 ( | 48 void); |
51 void | |
52 ); | |
53 | 49 |
54 NSS_EXTERN NSSModule ** | 50 NSS_EXTERN NSSModule ** |
55 nss_GetLoadedModules | 51 nss_GetLoadedModules( |
56 ( | 52 void); |
57 void | |
58 ); | |
59 | 53 |
60 NSS_EXTERN PRStatus | 54 NSS_EXTERN PRStatus |
61 nssGlobalModuleList_Add | 55 nssGlobalModuleList_Add( |
62 ( | 56 NSSModule *module); |
63 NSSModule *module | |
64 ); | |
65 | 57 |
66 NSS_EXTERN PRStatus | 58 NSS_EXTERN PRStatus |
67 nssGlobalModuleList_Remove | 59 nssGlobalModuleList_Remove( |
68 ( | 60 NSSModule *module); |
69 NSSModule *module | |
70 ); | |
71 | 61 |
72 NSS_EXTERN NSSModule * | 62 NSS_EXTERN NSSModule * |
73 nssGlobalModuleList_FindModuleByName | 63 nssGlobalModuleList_FindModuleByName( |
74 ( | 64 NSSUTF8 *moduleName); |
75 NSSUTF8 *moduleName | |
76 ); | |
77 | 65 |
78 NSS_EXTERN NSSSlot * | 66 NSS_EXTERN NSSSlot * |
79 nssGlobalModuleList_FindSlotByName | 67 nssGlobalModuleList_FindSlotByName( |
80 ( | 68 NSSUTF8 *slotName); |
81 NSSUTF8 *slotName | |
82 ); | |
83 | 69 |
84 NSS_EXTERN NSSToken * | 70 NSS_EXTERN NSSToken * |
85 nssGlobalModuleList_FindTokenByName | 71 nssGlobalModuleList_FindTokenByName( |
86 ( | 72 NSSUTF8 *tokenName); |
87 NSSUTF8 *tokenName | |
88 ); | |
89 | 73 |
90 NSS_EXTERN NSSToken * | 74 NSS_EXTERN NSSToken * |
91 nss_GetDefaultCryptoToken | 75 nss_GetDefaultCryptoToken( |
92 ( | 76 void); |
93 void | |
94 ); | |
95 | 77 |
96 NSS_EXTERN NSSToken * | 78 NSS_EXTERN NSSToken * |
97 nss_GetDefaultDatabaseToken | 79 nss_GetDefaultDatabaseToken( |
98 ( | 80 void); |
99 void | |
100 ); | |
101 | 81 |
102 /* | 82 /* |
103 * |-----------|<---> NSSSlot <--> NSSToken | 83 * |-----------|<---> NSSSlot <--> NSSToken |
104 * | NSSModule |<---> NSSSlot <--> NSSToken | 84 * | NSSModule |<---> NSSSlot <--> NSSToken |
105 * |-----------|<---> NSSSlot <--> NSSToken | 85 * |-----------|<---> NSSSlot <--> NSSToken |
106 */ | 86 */ |
107 | 87 |
108 /* NSSModule | 88 /* NSSModule |
109 * | 89 * |
110 * nssModule_Create | 90 * nssModule_Create |
111 * nssModule_CreateFromSpec | 91 * nssModule_CreateFromSpec |
112 * nssModule_AddRef | 92 * nssModule_AddRef |
113 * nssModule_GetName | 93 * nssModule_GetName |
114 * nssModule_GetSlots | 94 * nssModule_GetSlots |
115 * nssModule_FindSlotByName | 95 * nssModule_FindSlotByName |
116 * nssModule_FindTokenByName | 96 * nssModule_FindTokenByName |
117 * nssModule_GetCertOrder | 97 * nssModule_GetCertOrder |
118 */ | 98 */ |
119 | 99 |
120 NSS_EXTERN NSSModule * | 100 NSS_EXTERN NSSModule * |
121 nssModule_Create | 101 nssModule_Create( |
122 ( | 102 NSSUTF8 *moduleOpt, |
123 NSSUTF8 *moduleOpt, | 103 NSSUTF8 *uriOpt, |
124 NSSUTF8 *uriOpt, | 104 NSSUTF8 *opaqueOpt, |
125 NSSUTF8 *opaqueOpt, | 105 void *reserved); |
126 void *reserved | |
127 ); | |
128 | 106 |
129 /* This is to use the new loading mechanism. */ | 107 /* This is to use the new loading mechanism. */ |
130 NSS_EXTERN NSSModule * | 108 NSS_EXTERN NSSModule * |
131 nssModule_CreateFromSpec | 109 nssModule_CreateFromSpec( |
132 ( | 110 NSSUTF8 *moduleSpec, |
133 NSSUTF8 *moduleSpec, | 111 NSSModule *parent, |
134 NSSModule *parent, | 112 PRBool loadSubModules); |
135 PRBool loadSubModules | |
136 ); | |
137 | 113 |
138 NSS_EXTERN PRStatus | 114 NSS_EXTERN PRStatus |
139 nssModule_Destroy | 115 nssModule_Destroy( |
140 ( | 116 NSSModule *mod); |
141 NSSModule *mod | |
142 ); | |
143 | 117 |
144 NSS_EXTERN NSSModule * | 118 NSS_EXTERN NSSModule * |
145 nssModule_AddRef | 119 nssModule_AddRef( |
146 ( | 120 NSSModule *mod); |
147 NSSModule *mod | |
148 ); | |
149 | 121 |
150 NSS_EXTERN NSSUTF8 * | 122 NSS_EXTERN NSSUTF8 * |
151 nssModule_GetName | 123 nssModule_GetName( |
152 ( | 124 NSSModule *mod); |
153 NSSModule *mod | |
154 ); | |
155 | 125 |
156 NSS_EXTERN NSSSlot ** | 126 NSS_EXTERN NSSSlot ** |
157 nssModule_GetSlots | 127 nssModule_GetSlots( |
158 ( | 128 NSSModule *mod); |
159 NSSModule *mod | |
160 ); | |
161 | 129 |
162 NSS_EXTERN NSSSlot * | 130 NSS_EXTERN NSSSlot * |
163 nssModule_FindSlotByName | 131 nssModule_FindSlotByName( |
164 ( | 132 NSSModule *mod, |
165 NSSModule *mod, | 133 NSSUTF8 *slotName); |
166 NSSUTF8 *slotName | |
167 ); | |
168 | 134 |
169 NSS_EXTERN NSSToken * | 135 NSS_EXTERN NSSToken * |
170 nssModule_FindTokenByName | 136 nssModule_FindTokenByName( |
171 ( | 137 NSSModule *mod, |
172 NSSModule *mod, | 138 NSSUTF8 *tokenName); |
173 NSSUTF8 *tokenName | |
174 ); | |
175 | 139 |
176 NSS_EXTERN PRInt32 | 140 NSS_EXTERN PRInt32 |
177 nssModule_GetCertOrder | 141 nssModule_GetCertOrder( |
178 ( | 142 NSSModule *module); |
179 NSSModule *module | |
180 ); | |
181 | 143 |
182 /* NSSSlot | 144 /* NSSSlot |
183 * | 145 * |
184 * nssSlot_Destroy | 146 * nssSlot_Destroy |
185 * nssSlot_AddRef | 147 * nssSlot_AddRef |
186 * nssSlot_GetName | 148 * nssSlot_GetName |
187 * nssSlot_GetTokenName | 149 * nssSlot_GetTokenName |
188 * nssSlot_IsTokenPresent | 150 * nssSlot_IsTokenPresent |
189 * nssSlot_IsPermanent | 151 * nssSlot_IsPermanent |
190 * nssSlot_IsFriendly | 152 * nssSlot_IsFriendly |
191 * nssSlot_IsHardware | 153 * nssSlot_IsHardware |
192 * nssSlot_Refresh | 154 * nssSlot_Refresh |
193 * nssSlot_GetModule | 155 * nssSlot_GetModule |
194 * nssSlot_GetToken | 156 * nssSlot_GetToken |
195 * nssSlot_Login | 157 * nssSlot_Login |
196 * nssSlot_Logout | 158 * nssSlot_Logout |
197 * nssSlot_SetPassword | 159 * nssSlot_SetPassword |
198 * nssSlot_CreateSession | 160 * nssSlot_CreateSession |
199 */ | 161 */ |
200 | 162 |
201 NSS_EXTERN PRStatus | 163 NSS_EXTERN PRStatus |
202 nssSlot_Destroy | 164 nssSlot_Destroy( |
203 ( | 165 NSSSlot *slot); |
204 NSSSlot *slot | |
205 ); | |
206 | 166 |
207 NSS_EXTERN NSSSlot * | 167 NSS_EXTERN NSSSlot * |
208 nssSlot_AddRef | 168 nssSlot_AddRef( |
209 ( | 169 NSSSlot *slot); |
210 NSSSlot *slot | |
211 ); | |
212 | 170 |
213 NSS_EXTERN void | 171 NSS_EXTERN void |
214 nssSlot_ResetDelay | 172 nssSlot_ResetDelay( |
215 ( | 173 NSSSlot *slot); |
216 NSSSlot *slot | |
217 ); | |
218 | 174 |
219 NSS_EXTERN NSSUTF8 * | 175 NSS_EXTERN NSSUTF8 * |
220 nssSlot_GetName | 176 nssSlot_GetName( |
221 ( | 177 NSSSlot *slot); |
222 NSSSlot *slot | |
223 ); | |
224 | 178 |
225 NSS_EXTERN NSSUTF8 * | 179 NSS_EXTERN NSSUTF8 * |
226 nssSlot_GetTokenName | 180 nssSlot_GetTokenName( |
227 ( | 181 NSSSlot *slot); |
228 NSSSlot *slot | |
229 ); | |
230 | 182 |
231 NSS_EXTERN NSSModule * | 183 NSS_EXTERN NSSModule * |
232 nssSlot_GetModule | 184 nssSlot_GetModule( |
233 ( | 185 NSSSlot *slot); |
234 NSSSlot *slot | |
235 ); | |
236 | 186 |
237 NSS_EXTERN NSSToken * | 187 NSS_EXTERN NSSToken * |
238 nssSlot_GetToken | 188 nssSlot_GetToken( |
239 ( | 189 NSSSlot *slot); |
240 NSSSlot *slot | |
241 ); | |
242 | 190 |
243 NSS_EXTERN PRBool | 191 NSS_EXTERN PRBool |
244 nssSlot_IsTokenPresent | 192 nssSlot_IsTokenPresent( |
245 ( | 193 NSSSlot *slot); |
246 NSSSlot *slot | |
247 ); | |
248 | 194 |
249 NSS_EXTERN PRBool | 195 NSS_EXTERN PRBool |
250 nssSlot_IsPermanent | 196 nssSlot_IsPermanent( |
251 ( | 197 NSSSlot *slot); |
252 NSSSlot *slot | |
253 ); | |
254 | 198 |
255 NSS_EXTERN PRBool | 199 NSS_EXTERN PRBool |
256 nssSlot_IsFriendly | 200 nssSlot_IsFriendly( |
257 ( | 201 NSSSlot *slot); |
258 NSSSlot *slot | |
259 ); | |
260 | 202 |
261 NSS_EXTERN PRBool | 203 NSS_EXTERN PRBool |
262 nssSlot_IsHardware | 204 nssSlot_IsHardware( |
263 ( | 205 NSSSlot *slot); |
264 NSSSlot *slot | |
265 ); | |
266 | 206 |
267 NSS_EXTERN PRBool | 207 NSS_EXTERN PRBool |
268 nssSlot_IsLoggedIn | 208 nssSlot_IsLoggedIn( |
269 ( | 209 NSSSlot *slot); |
270 NSSSlot *slot | |
271 ); | |
272 | 210 |
273 NSS_EXTERN PRStatus | 211 NSS_EXTERN PRStatus |
274 nssSlot_Refresh | 212 nssSlot_Refresh( |
275 ( | 213 NSSSlot *slot); |
276 NSSSlot *slot | |
277 ); | |
278 | 214 |
279 NSS_EXTERN PRStatus | 215 NSS_EXTERN PRStatus |
280 nssSlot_Login | 216 nssSlot_Login( |
281 ( | 217 NSSSlot *slot, |
282 NSSSlot *slot, | 218 NSSCallback *pwcb); |
283 NSSCallback *pwcb | |
284 ); | |
285 extern const NSSError NSS_ERROR_INVALID_PASSWORD; | 219 extern const NSSError NSS_ERROR_INVALID_PASSWORD; |
286 extern const NSSError NSS_ERROR_USER_CANCELED; | 220 extern const NSSError NSS_ERROR_USER_CANCELED; |
287 | 221 |
288 NSS_EXTERN PRStatus | 222 NSS_EXTERN PRStatus |
289 nssSlot_Logout | 223 nssSlot_Logout( |
290 ( | 224 NSSSlot *slot, |
291 NSSSlot *slot, | 225 nssSession *sessionOpt); |
292 nssSession *sessionOpt | |
293 ); | |
294 | 226 |
295 NSS_EXTERN void | 227 NSS_EXTERN void |
296 nssSlot_EnterMonitor | 228 nssSlot_EnterMonitor( |
297 ( | 229 NSSSlot *slot); |
298 NSSSlot *slot | |
299 ); | |
300 | 230 |
301 NSS_EXTERN void | 231 NSS_EXTERN void |
302 nssSlot_ExitMonitor | 232 nssSlot_ExitMonitor( |
303 ( | 233 NSSSlot *slot); |
304 NSSSlot *slot | |
305 ); | |
306 | 234 |
307 #define NSSSLOT_ASK_PASSWORD_FIRST_TIME -1 | 235 #define NSSSLOT_ASK_PASSWORD_FIRST_TIME -1 |
308 #define NSSSLOT_ASK_PASSWORD_EVERY_TIME 0 | 236 #define NSSSLOT_ASK_PASSWORD_EVERY_TIME 0 |
309 NSS_EXTERN void | 237 NSS_EXTERN void |
310 nssSlot_SetPasswordDefaults | 238 nssSlot_SetPasswordDefaults( |
311 ( | 239 NSSSlot *slot, |
312 NSSSlot *slot, | 240 PRInt32 askPasswordTimeout); |
313 PRInt32 askPasswordTimeout | |
314 ); | |
315 | 241 |
316 NSS_EXTERN PRStatus | 242 NSS_EXTERN PRStatus |
317 nssSlot_SetPassword | 243 nssSlot_SetPassword( |
318 ( | 244 NSSSlot *slot, |
319 NSSSlot *slot, | 245 NSSUTF8 *oldPasswordOpt, |
320 NSSUTF8 *oldPasswordOpt, | 246 NSSUTF8 *newPassword); |
321 NSSUTF8 *newPassword | |
322 ); | |
323 extern const NSSError NSS_ERROR_INVALID_PASSWORD; | 247 extern const NSSError NSS_ERROR_INVALID_PASSWORD; |
324 extern const NSSError NSS_ERROR_USER_CANCELED; | 248 extern const NSSError NSS_ERROR_USER_CANCELED; |
325 | 249 |
326 /* | 250 /* |
327 * nssSlot_IsLoggedIn | 251 * nssSlot_IsLoggedIn |
328 */ | 252 */ |
329 | 253 |
330 NSS_EXTERN nssSession * | 254 NSS_EXTERN nssSession * |
331 nssSlot_CreateSession | 255 nssSlot_CreateSession( |
332 ( | 256 NSSSlot *slot, |
333 NSSSlot *slot, | 257 NSSArena *arenaOpt, |
334 NSSArena *arenaOpt, | 258 PRBool readWrite /* so far, this is the only flag used */ |
335 PRBool readWrite /* so far, this is the only flag used */ | 259 ); |
336 ); | |
337 | 260 |
338 /* NSSToken | 261 /* NSSToken |
339 * | 262 * |
340 * nssToken_Destroy | 263 * nssToken_Destroy |
341 * nssToken_AddRef | 264 * nssToken_AddRef |
342 * nssToken_GetName | 265 * nssToken_GetName |
343 * nssToken_GetModule | 266 * nssToken_GetModule |
344 * nssToken_GetSlot | 267 * nssToken_GetSlot |
345 * nssToken_NeedsPINInitialization | 268 * nssToken_NeedsPINInitialization |
346 * nssToken_ImportCertificate | 269 * nssToken_ImportCertificate |
(...skipping 12 matching lines...) Expand all Loading... |
359 * nssToken_FindCRLsBySubject | 282 * nssToken_FindCRLsBySubject |
360 * nssToken_FindPrivateKeys | 283 * nssToken_FindPrivateKeys |
361 * nssToken_FindPrivateKeyByID | 284 * nssToken_FindPrivateKeyByID |
362 * nssToken_Digest | 285 * nssToken_Digest |
363 * nssToken_BeginDigest | 286 * nssToken_BeginDigest |
364 * nssToken_ContinueDigest | 287 * nssToken_ContinueDigest |
365 * nssToken_FinishDigest | 288 * nssToken_FinishDigest |
366 */ | 289 */ |
367 | 290 |
368 NSS_EXTERN PRStatus | 291 NSS_EXTERN PRStatus |
369 nssToken_Destroy | 292 nssToken_Destroy( |
370 ( | 293 NSSToken *tok); |
371 NSSToken *tok | |
372 ); | |
373 | 294 |
374 NSS_EXTERN NSSToken * | 295 NSS_EXTERN NSSToken * |
375 nssToken_AddRef | 296 nssToken_AddRef( |
376 ( | 297 NSSToken *tok); |
377 NSSToken *tok | |
378 ); | |
379 | 298 |
380 NSS_EXTERN NSSUTF8 * | 299 NSS_EXTERN NSSUTF8 * |
381 nssToken_GetName | 300 nssToken_GetName( |
382 ( | 301 NSSToken *tok); |
383 NSSToken *tok | |
384 ); | |
385 | 302 |
386 NSS_EXTERN NSSModule * | 303 NSS_EXTERN NSSModule * |
387 nssToken_GetModule | 304 nssToken_GetModule( |
388 ( | 305 NSSToken *token); |
389 NSSToken *token | |
390 ); | |
391 | 306 |
392 NSS_EXTERN NSSSlot * | 307 NSS_EXTERN NSSSlot * |
393 nssToken_GetSlot | 308 nssToken_GetSlot( |
394 ( | 309 NSSToken *tok); |
395 NSSToken *tok | |
396 ); | |
397 | 310 |
398 NSS_EXTERN PRBool | 311 NSS_EXTERN PRBool |
399 nssToken_NeedsPINInitialization | 312 nssToken_NeedsPINInitialization( |
400 ( | 313 NSSToken *token); |
401 NSSToken *token | |
402 ); | |
403 | 314 |
404 NSS_EXTERN nssCryptokiObject * | 315 NSS_EXTERN nssCryptokiObject * |
405 nssToken_ImportCertificate | 316 nssToken_ImportCertificate( |
406 ( | 317 NSSToken *tok, |
407 NSSToken *tok, | 318 nssSession *sessionOpt, |
408 nssSession *sessionOpt, | 319 NSSCertificateType certType, |
409 NSSCertificateType certType, | 320 NSSItem *id, |
410 NSSItem *id, | 321 const NSSUTF8 *nickname, |
411 const NSSUTF8 *nickname, | 322 NSSDER *encoding, |
412 NSSDER *encoding, | 323 NSSDER *issuer, |
413 NSSDER *issuer, | 324 NSSDER *subject, |
414 NSSDER *subject, | 325 NSSDER *serial, |
415 NSSDER *serial, | 326 NSSASCII7 *emailAddr, |
416 NSSASCII7 *emailAddr, | 327 PRBool asTokenObject); |
417 PRBool asTokenObject | |
418 ); | |
419 | 328 |
420 NSS_EXTERN nssCryptokiObject * | 329 NSS_EXTERN nssCryptokiObject * |
421 nssToken_ImportTrust | 330 nssToken_ImportTrust( |
422 ( | 331 NSSToken *tok, |
423 NSSToken *tok, | 332 nssSession *sessionOpt, |
424 nssSession *sessionOpt, | 333 NSSDER *certEncoding, |
425 NSSDER *certEncoding, | 334 NSSDER *certIssuer, |
426 NSSDER *certIssuer, | 335 NSSDER *certSerial, |
427 NSSDER *certSerial, | 336 nssTrustLevel serverAuth, |
428 nssTrustLevel serverAuth, | 337 nssTrustLevel clientAuth, |
429 nssTrustLevel clientAuth, | 338 nssTrustLevel codeSigning, |
430 nssTrustLevel codeSigning, | 339 nssTrustLevel emailProtection, |
431 nssTrustLevel emailProtection, | 340 PRBool stepUpApproved, |
432 PRBool stepUpApproved, | 341 PRBool asTokenObject); |
433 PRBool asTokenObject | |
434 ); | |
435 | 342 |
436 NSS_EXTERN nssCryptokiObject * | 343 NSS_EXTERN nssCryptokiObject * |
437 nssToken_ImportCRL | 344 nssToken_ImportCRL( |
438 ( | 345 NSSToken *token, |
439 NSSToken *token, | 346 nssSession *sessionOpt, |
440 nssSession *sessionOpt, | 347 NSSDER *subject, |
441 NSSDER *subject, | 348 NSSDER *encoding, |
442 NSSDER *encoding, | 349 PRBool isKRL, |
443 PRBool isKRL, | 350 NSSUTF8 *url, |
444 NSSUTF8 *url, | 351 PRBool asTokenObject); |
445 PRBool asTokenObject | |
446 ); | |
447 | 352 |
448 /* Permanently remove an object from the token. */ | 353 /* Permanently remove an object from the token. */ |
449 NSS_EXTERN PRStatus | 354 NSS_EXTERN PRStatus |
450 nssToken_DeleteStoredObject | 355 nssToken_DeleteStoredObject( |
451 ( | 356 nssCryptokiObject *instance); |
452 nssCryptokiObject *instance | |
453 ); | |
454 | 357 |
455 NSS_EXTERN nssCryptokiObject ** | 358 NSS_EXTERN nssCryptokiObject ** |
456 nssToken_FindObjects | 359 nssToken_FindObjects( |
457 ( | 360 NSSToken *token, |
458 NSSToken *token, | 361 nssSession *sessionOpt, |
459 nssSession *sessionOpt, | 362 CK_OBJECT_CLASS objclass, |
460 CK_OBJECT_CLASS objclass, | 363 nssTokenSearchType searchType, |
461 nssTokenSearchType searchType, | 364 PRUint32 maximumOpt, |
462 PRUint32 maximumOpt, | 365 PRStatus *statusOpt); |
463 PRStatus *statusOpt | |
464 ); | |
465 | 366 |
466 NSS_EXTERN nssCryptokiObject ** | 367 NSS_EXTERN nssCryptokiObject ** |
467 nssToken_FindCertificatesBySubject | 368 nssToken_FindCertificatesBySubject( |
468 ( | 369 NSSToken *token, |
469 NSSToken *token, | 370 nssSession *sessionOpt, |
470 nssSession *sessionOpt, | 371 NSSDER *subject, |
471 NSSDER *subject, | 372 nssTokenSearchType searchType, |
472 nssTokenSearchType searchType, | 373 PRUint32 maximumOpt, |
473 PRUint32 maximumOpt, | 374 PRStatus *statusOpt); |
474 PRStatus *statusOpt | |
475 ); | |
476 | 375 |
477 NSS_EXTERN nssCryptokiObject ** | 376 NSS_EXTERN nssCryptokiObject ** |
478 nssToken_FindCertificatesByNickname | 377 nssToken_FindCertificatesByNickname( |
479 ( | 378 NSSToken *token, |
480 NSSToken *token, | 379 nssSession *sessionOpt, |
481 nssSession *sessionOpt, | 380 const NSSUTF8 *name, |
482 const NSSUTF8 *name, | 381 nssTokenSearchType searchType, |
483 nssTokenSearchType searchType, | 382 PRUint32 maximumOpt, |
484 PRUint32 maximumOpt, | 383 PRStatus *statusOpt); |
485 PRStatus *statusOpt | |
486 ); | |
487 | 384 |
488 NSS_EXTERN nssCryptokiObject ** | 385 NSS_EXTERN nssCryptokiObject ** |
489 nssToken_FindCertificatesByEmail | 386 nssToken_FindCertificatesByEmail( |
490 ( | 387 NSSToken *token, |
491 NSSToken *token, | 388 nssSession *sessionOpt, |
492 nssSession *sessionOpt, | 389 NSSASCII7 *email, |
493 NSSASCII7 *email, | 390 nssTokenSearchType searchType, |
494 nssTokenSearchType searchType, | 391 PRUint32 maximumOpt, |
495 PRUint32 maximumOpt, | 392 PRStatus *statusOpt); |
496 PRStatus *statusOpt | |
497 ); | |
498 | 393 |
499 NSS_EXTERN nssCryptokiObject ** | 394 NSS_EXTERN nssCryptokiObject ** |
500 nssToken_FindCertificatesByID | 395 nssToken_FindCertificatesByID( |
501 ( | 396 NSSToken *token, |
502 NSSToken *token, | 397 nssSession *sessionOpt, |
503 nssSession *sessionOpt, | 398 NSSItem *id, |
504 NSSItem *id, | 399 nssTokenSearchType searchType, |
505 nssTokenSearchType searchType, | 400 PRUint32 maximumOpt, |
506 PRUint32 maximumOpt, | 401 PRStatus *statusOpt); |
507 PRStatus *statusOpt | |
508 ); | |
509 | 402 |
510 NSS_EXTERN nssCryptokiObject * | 403 NSS_EXTERN nssCryptokiObject * |
511 nssToken_FindCertificateByIssuerAndSerialNumber | 404 nssToken_FindCertificateByIssuerAndSerialNumber( |
512 ( | 405 NSSToken *token, |
513 NSSToken *token, | 406 nssSession *sessionOpt, |
514 nssSession *sessionOpt, | 407 NSSDER *issuer, |
515 NSSDER *issuer, | 408 NSSDER *serial, |
516 NSSDER *serial, | 409 nssTokenSearchType searchType, |
517 nssTokenSearchType searchType, | 410 PRStatus *statusOpt); |
518 PRStatus *statusOpt | |
519 ); | |
520 | 411 |
521 NSS_EXTERN nssCryptokiObject * | 412 NSS_EXTERN nssCryptokiObject * |
522 nssToken_FindCertificateByEncodedCertificate | 413 nssToken_FindCertificateByEncodedCertificate( |
523 ( | 414 NSSToken *token, |
524 NSSToken *token, | 415 nssSession *sessionOpt, |
525 nssSession *sessionOpt, | 416 NSSBER *encodedCertificate, |
526 NSSBER *encodedCertificate, | 417 nssTokenSearchType searchType, |
527 nssTokenSearchType searchType, | 418 PRStatus *statusOpt); |
528 PRStatus *statusOpt | |
529 ); | |
530 | 419 |
531 NSS_EXTERN nssCryptokiObject * | 420 NSS_EXTERN nssCryptokiObject * |
532 nssToken_FindTrustForCertificate | 421 nssToken_FindTrustForCertificate( |
533 ( | 422 NSSToken *token, |
534 NSSToken *token, | 423 nssSession *sessionOpt, |
535 nssSession *sessionOpt, | 424 NSSDER *certEncoding, |
536 NSSDER *certEncoding, | 425 NSSDER *certIssuer, |
537 NSSDER *certIssuer, | 426 NSSDER *certSerial, |
538 NSSDER *certSerial, | 427 nssTokenSearchType searchType); |
539 nssTokenSearchType searchType | |
540 ); | |
541 | 428 |
542 NSS_EXTERN nssCryptokiObject ** | 429 NSS_EXTERN nssCryptokiObject ** |
543 nssToken_FindCRLsBySubject | 430 nssToken_FindCRLsBySubject( |
544 ( | 431 NSSToken *token, |
545 NSSToken *token, | 432 nssSession *sessionOpt, |
546 nssSession *sessionOpt, | 433 NSSDER *subject, |
547 NSSDER *subject, | 434 nssTokenSearchType searchType, |
548 nssTokenSearchType searchType, | 435 PRUint32 maximumOpt, |
549 PRUint32 maximumOpt, | 436 PRStatus *statusOpt); |
550 PRStatus *statusOpt | |
551 ); | |
552 | 437 |
553 NSS_EXTERN nssCryptokiObject ** | 438 NSS_EXTERN nssCryptokiObject ** |
554 nssToken_FindPrivateKeys | 439 nssToken_FindPrivateKeys( |
555 ( | 440 NSSToken *token, |
556 NSSToken *token, | 441 nssSession *sessionOpt, |
557 nssSession *sessionOpt, | 442 nssTokenSearchType searchType, |
558 nssTokenSearchType searchType, | 443 PRUint32 maximumOpt, |
559 PRUint32 maximumOpt, | 444 PRStatus *statusOpt); |
560 PRStatus *statusOpt | |
561 ); | |
562 | 445 |
563 NSS_EXTERN nssCryptokiObject * | 446 NSS_EXTERN nssCryptokiObject * |
564 nssToken_FindPrivateKeyByID | 447 nssToken_FindPrivateKeyByID( |
565 ( | 448 NSSToken *token, |
566 NSSToken *token, | 449 nssSession *sessionOpt, |
567 nssSession *sessionOpt, | 450 NSSItem *keyID); |
568 NSSItem *keyID | |
569 ); | |
570 | 451 |
571 NSS_EXTERN nssCryptokiObject * | 452 NSS_EXTERN nssCryptokiObject * |
572 nssToken_FindPublicKeyByID | 453 nssToken_FindPublicKeyByID( |
573 ( | 454 NSSToken *token, |
574 NSSToken *token, | 455 nssSession *sessionOpt, |
575 nssSession *sessionOpt, | 456 NSSItem *keyID); |
576 NSSItem *keyID | |
577 ); | |
578 | 457 |
579 NSS_EXTERN NSSItem * | 458 NSS_EXTERN NSSItem * |
580 nssToken_Digest | 459 nssToken_Digest( |
581 ( | 460 NSSToken *tok, |
582 NSSToken *tok, | 461 nssSession *sessionOpt, |
583 nssSession *sessionOpt, | 462 NSSAlgorithmAndParameters *ap, |
584 NSSAlgorithmAndParameters *ap, | 463 NSSItem *data, |
585 NSSItem *data, | 464 NSSItem *rvOpt, |
586 NSSItem *rvOpt, | 465 NSSArena *arenaOpt); |
587 NSSArena *arenaOpt | |
588 ); | |
589 | 466 |
590 NSS_EXTERN PRStatus | 467 NSS_EXTERN PRStatus |
591 nssToken_BeginDigest | 468 nssToken_BeginDigest( |
592 ( | 469 NSSToken *tok, |
593 NSSToken *tok, | 470 nssSession *sessionOpt, |
594 nssSession *sessionOpt, | 471 NSSAlgorithmAndParameters *ap); |
595 NSSAlgorithmAndParameters *ap | |
596 ); | |
597 | 472 |
598 NSS_EXTERN PRStatus | 473 NSS_EXTERN PRStatus |
599 nssToken_ContinueDigest | 474 nssToken_ContinueDigest( |
600 ( | 475 NSSToken *tok, |
601 NSSToken *tok, | 476 nssSession *sessionOpt, |
602 nssSession *sessionOpt, | 477 NSSItem *item); |
603 NSSItem *item | |
604 ); | |
605 | 478 |
606 NSS_EXTERN NSSItem * | 479 NSS_EXTERN NSSItem * |
607 nssToken_FinishDigest | 480 nssToken_FinishDigest( |
608 ( | 481 NSSToken *tok, |
609 NSSToken *tok, | 482 nssSession *sessionOpt, |
610 nssSession *sessionOpt, | 483 NSSItem *rvOpt, |
611 NSSItem *rvOpt, | 484 NSSArena *arenaOpt); |
612 NSSArena *arenaOpt | |
613 ); | |
614 | 485 |
615 /* nssSession | 486 /* nssSession |
616 * | 487 * |
617 * nssSession_Destroy | 488 * nssSession_Destroy |
618 * nssSession_EnterMonitor | 489 * nssSession_EnterMonitor |
619 * nssSession_ExitMonitor | 490 * nssSession_ExitMonitor |
620 * nssSession_IsReadWrite | 491 * nssSession_IsReadWrite |
621 */ | 492 */ |
622 | 493 |
623 NSS_EXTERN PRStatus | 494 NSS_EXTERN PRStatus |
624 nssSession_Destroy | 495 nssSession_Destroy( |
625 ( | 496 nssSession *s); |
626 nssSession *s | |
627 ); | |
628 | 497 |
629 /* would like to inline */ | 498 /* would like to inline */ |
630 NSS_EXTERN PRStatus | 499 NSS_EXTERN PRStatus |
631 nssSession_EnterMonitor | 500 nssSession_EnterMonitor( |
632 ( | 501 nssSession *s); |
633 nssSession *s | |
634 ); | |
635 | 502 |
636 /* would like to inline */ | 503 /* would like to inline */ |
637 NSS_EXTERN PRStatus | 504 NSS_EXTERN PRStatus |
638 nssSession_ExitMonitor | 505 nssSession_ExitMonitor( |
639 ( | 506 nssSession *s); |
640 nssSession *s | |
641 ); | |
642 | 507 |
643 /* would like to inline */ | 508 /* would like to inline */ |
644 NSS_EXTERN PRBool | 509 NSS_EXTERN PRBool |
645 nssSession_IsReadWrite | 510 nssSession_IsReadWrite( |
646 ( | 511 nssSession *s); |
647 nssSession *s | |
648 ); | |
649 | 512 |
650 /* nssCryptokiObject | 513 /* nssCryptokiObject |
651 * | 514 * |
652 * An object living on a cryptoki token. | 515 * An object living on a cryptoki token. |
653 * Not really proper to mix up the object types just because | 516 * Not really proper to mix up the object types just because |
654 * nssCryptokiObject itself is generic, but doing so anyway. | 517 * nssCryptokiObject itself is generic, but doing so anyway. |
655 * | 518 * |
656 * nssCryptokiObject_Destroy | 519 * nssCryptokiObject_Destroy |
657 * nssCryptokiObject_Equal | 520 * nssCryptokiObject_Equal |
658 * nssCryptokiObject_Clone | 521 * nssCryptokiObject_Clone |
659 * nssCryptokiCertificate_GetAttributes | 522 * nssCryptokiCertificate_GetAttributes |
660 * nssCryptokiPrivateKey_GetAttributes | 523 * nssCryptokiPrivateKey_GetAttributes |
661 * nssCryptokiPublicKey_GetAttributes | 524 * nssCryptokiPublicKey_GetAttributes |
662 * nssCryptokiTrust_GetAttributes | 525 * nssCryptokiTrust_GetAttributes |
663 * nssCryptokiCRL_GetAttributes | 526 * nssCryptokiCRL_GetAttributes |
664 */ | 527 */ |
665 | 528 |
666 NSS_EXTERN void | 529 NSS_EXTERN void |
667 nssCryptokiObject_Destroy | 530 nssCryptokiObject_Destroy( |
668 ( | 531 nssCryptokiObject *object); |
669 nssCryptokiObject *object | |
670 ); | |
671 | 532 |
672 NSS_EXTERN PRBool | 533 NSS_EXTERN PRBool |
673 nssCryptokiObject_Equal | 534 nssCryptokiObject_Equal( |
674 ( | 535 nssCryptokiObject *object1, |
675 nssCryptokiObject *object1, | 536 nssCryptokiObject *object2); |
676 nssCryptokiObject *object2 | |
677 ); | |
678 | 537 |
679 NSS_EXTERN nssCryptokiObject * | 538 NSS_EXTERN nssCryptokiObject * |
680 nssCryptokiObject_Clone | 539 nssCryptokiObject_Clone( |
681 ( | 540 nssCryptokiObject *object); |
682 nssCryptokiObject *object | |
683 ); | |
684 | 541 |
685 NSS_EXTERN PRStatus | 542 NSS_EXTERN PRStatus |
686 nssCryptokiCertificate_GetAttributes | 543 nssCryptokiCertificate_GetAttributes( |
687 ( | 544 nssCryptokiObject *object, |
688 nssCryptokiObject *object, | 545 nssSession *sessionOpt, |
689 nssSession *sessionOpt, | 546 NSSArena *arenaOpt, |
690 NSSArena *arenaOpt, | 547 NSSCertificateType *certTypeOpt, |
691 NSSCertificateType *certTypeOpt, | 548 NSSItem *idOpt, |
692 NSSItem *idOpt, | 549 NSSDER *encodingOpt, |
693 NSSDER *encodingOpt, | 550 NSSDER *issuerOpt, |
694 NSSDER *issuerOpt, | 551 NSSDER *serialOpt, |
695 NSSDER *serialOpt, | 552 NSSDER *subjectOpt); |
696 NSSDER *subjectOpt | |
697 ); | |
698 | 553 |
699 NSS_EXTERN PRStatus | 554 NSS_EXTERN PRStatus |
700 nssCryptokiTrust_GetAttributes | 555 nssCryptokiTrust_GetAttributes( |
701 ( | 556 nssCryptokiObject *trustObject, |
702 nssCryptokiObject *trustObject, | 557 nssSession *sessionOpt, |
703 nssSession *sessionOpt, | 558 NSSItem *sha1_hash, |
704 NSSItem *sha1_hash, | 559 nssTrustLevel *serverAuth, |
705 nssTrustLevel *serverAuth, | 560 nssTrustLevel *clientAuth, |
706 nssTrustLevel *clientAuth, | 561 nssTrustLevel *codeSigning, |
707 nssTrustLevel *codeSigning, | 562 nssTrustLevel *emailProtection, |
708 nssTrustLevel *emailProtection, | 563 PRBool *stepUpApproved); |
709 PRBool *stepUpApproved | |
710 ); | |
711 | 564 |
712 NSS_EXTERN PRStatus | 565 NSS_EXTERN PRStatus |
713 nssCryptokiCRL_GetAttributes | 566 nssCryptokiCRL_GetAttributes( |
714 ( | 567 nssCryptokiObject *crlObject, |
715 nssCryptokiObject *crlObject, | 568 nssSession *sessionOpt, |
716 nssSession *sessionOpt, | 569 NSSArena *arenaOpt, |
717 NSSArena *arenaOpt, | 570 NSSItem *encodingOpt, |
718 NSSItem *encodingOpt, | 571 NSSItem *subjectOpt, |
719 NSSItem * subjectOpt, | 572 CK_ULONG *crl_class, |
720 CK_ULONG * crl_class, | 573 NSSUTF8 **urlOpt, |
721 NSSUTF8 **urlOpt, | 574 PRBool *isKRLOpt); |
722 PRBool *isKRLOpt | |
723 ); | |
724 | 575 |
725 /* I'm including this to handle import of certificates in NSS 3.5. This | 576 /* I'm including this to handle import of certificates in NSS 3.5. This |
726 * function will set the cert-related attributes of a key, in order to | 577 * function will set the cert-related attributes of a key, in order to |
727 * associate it with a cert. Does it stay like this for 4.0? | 578 * associate it with a cert. Does it stay like this for 4.0? |
728 */ | 579 */ |
729 NSS_EXTERN PRStatus | 580 NSS_EXTERN PRStatus |
730 nssCryptokiPrivateKey_SetCertificate | 581 nssCryptokiPrivateKey_SetCertificate( |
731 ( | 582 nssCryptokiObject *keyObject, |
732 nssCryptokiObject *keyObject, | 583 nssSession *sessionOpt, |
733 nssSession *sessionOpt, | 584 const NSSUTF8 *nickname, |
734 const NSSUTF8 *nickname, | 585 NSSItem *id, |
735 NSSItem *id, | 586 NSSDER *subject); |
736 NSSDER *subject | |
737 ); | |
738 | 587 |
739 NSS_EXTERN void | 588 NSS_EXTERN void |
740 nssModuleArray_Destroy | 589 nssModuleArray_Destroy( |
741 ( | 590 NSSModule **modules); |
742 NSSModule **modules | |
743 ); | |
744 | 591 |
745 /* nssSlotArray | 592 /* nssSlotArray |
746 * | 593 * |
747 * nssSlotArray_Destroy | 594 * nssSlotArray_Destroy |
748 */ | 595 */ |
749 | 596 |
750 NSS_EXTERN void | 597 NSS_EXTERN void |
751 nssSlotArray_Destroy | 598 nssSlotArray_Destroy( |
752 ( | 599 NSSSlot **slots); |
753 NSSSlot **slots | |
754 ); | |
755 | 600 |
756 /* nssTokenArray | 601 /* nssTokenArray |
757 * | 602 * |
758 * nssTokenArray_Destroy | 603 * nssTokenArray_Destroy |
759 */ | 604 */ |
760 | 605 |
761 NSS_EXTERN void | 606 NSS_EXTERN void |
762 nssTokenArray_Destroy | 607 nssTokenArray_Destroy( |
763 ( | 608 NSSToken **tokens); |
764 NSSToken **tokens | |
765 ); | |
766 | 609 |
767 /* nssCryptokiObjectArray | 610 /* nssCryptokiObjectArray |
768 * | 611 * |
769 * nssCryptokiObjectArray_Destroy | 612 * nssCryptokiObjectArray_Destroy |
770 */ | 613 */ |
771 NSS_EXTERN void | 614 NSS_EXTERN void |
772 nssCryptokiObjectArray_Destroy | 615 nssCryptokiObjectArray_Destroy( |
773 ( | 616 nssCryptokiObject **object); |
774 nssCryptokiObject **object | |
775 ); | |
776 | 617 |
777 /* nssSlotList | 618 /* nssSlotList |
778 * | 619 * |
779 * An ordered list of slots. The order can be anything, it is set in the | 620 * An ordered list of slots. The order can be anything, it is set in the |
780 * Add methods. Perhaps it should be CreateInCertOrder, ...? | 621 * Add methods. Perhaps it should be CreateInCertOrder, ...? |
781 * | 622 * |
782 * nssSlotList_Create | 623 * nssSlotList_Create |
783 * nssSlotList_Destroy | 624 * nssSlotList_Destroy |
784 * nssSlotList_Add | 625 * nssSlotList_Add |
785 * nssSlotList_AddModuleSlots | 626 * nssSlotList_AddModuleSlots |
786 * nssSlotList_GetSlots | 627 * nssSlotList_GetSlots |
787 * nssSlotList_FindSlotByName | 628 * nssSlotList_FindSlotByName |
788 * nssSlotList_FindTokenByName | 629 * nssSlotList_FindTokenByName |
789 * nssSlotList_GetBestSlot | 630 * nssSlotList_GetBestSlot |
790 * nssSlotList_GetBestSlotForAlgorithmAndParameters | 631 * nssSlotList_GetBestSlotForAlgorithmAndParameters |
791 * nssSlotList_GetBestSlotForAlgorithmsAndParameters | 632 * nssSlotList_GetBestSlotForAlgorithmsAndParameters |
792 */ | 633 */ |
793 | 634 |
794 /* nssSlotList_Create | 635 /* nssSlotList_Create |
795 */ | 636 */ |
796 NSS_EXTERN nssSlotList * | 637 NSS_EXTERN nssSlotList * |
797 nssSlotList_Create | 638 nssSlotList_Create( |
798 ( | 639 NSSArena *arenaOpt); |
799 NSSArena *arenaOpt | |
800 ); | |
801 | 640 |
802 /* nssSlotList_Destroy | 641 /* nssSlotList_Destroy |
803 */ | 642 */ |
804 NSS_EXTERN void | 643 NSS_EXTERN void |
805 nssSlotList_Destroy | 644 nssSlotList_Destroy( |
806 ( | 645 nssSlotList *slotList); |
807 nssSlotList *slotList | |
808 ); | |
809 | 646 |
810 /* nssSlotList_Add | 647 /* nssSlotList_Add |
811 * | 648 * |
812 * Add the given slot in the given order. | 649 * Add the given slot in the given order. |
813 */ | 650 */ |
814 NSS_EXTERN PRStatus | 651 NSS_EXTERN PRStatus |
815 nssSlotList_Add | 652 nssSlotList_Add( |
816 ( | 653 nssSlotList *slotList, |
817 nssSlotList *slotList, | 654 NSSSlot *slot, |
818 NSSSlot *slot, | 655 PRUint32 order); |
819 PRUint32 order | |
820 ); | |
821 | 656 |
822 /* nssSlotList_AddModuleSlots | 657 /* nssSlotList_AddModuleSlots |
823 * | 658 * |
824 * Add all slots in the module, in the given order (the slots will have | 659 * Add all slots in the module, in the given order (the slots will have |
825 * equal weight). | 660 * equal weight). |
826 */ | 661 */ |
827 NSS_EXTERN PRStatus | 662 NSS_EXTERN PRStatus |
828 nssSlotList_AddModuleSlots | 663 nssSlotList_AddModuleSlots( |
829 ( | 664 nssSlotList *slotList, |
830 nssSlotList *slotList, | 665 NSSModule *module, |
831 NSSModule *module, | 666 PRUint32 order); |
832 PRUint32 order | |
833 ); | |
834 | 667 |
835 /* nssSlotList_GetSlots | 668 /* nssSlotList_GetSlots |
836 */ | 669 */ |
837 NSS_EXTERN NSSSlot ** | 670 NSS_EXTERN NSSSlot ** |
838 nssSlotList_GetSlots | 671 nssSlotList_GetSlots( |
839 ( | 672 nssSlotList *slotList); |
840 nssSlotList *slotList | |
841 ); | |
842 | 673 |
843 /* nssSlotList_FindSlotByName | 674 /* nssSlotList_FindSlotByName |
844 */ | 675 */ |
845 NSS_EXTERN NSSSlot * | 676 NSS_EXTERN NSSSlot * |
846 nssSlotList_FindSlotByName | 677 nssSlotList_FindSlotByName( |
847 ( | 678 nssSlotList *slotList, |
848 nssSlotList *slotList, | 679 NSSUTF8 *slotName); |
849 NSSUTF8 *slotName | |
850 ); | |
851 | 680 |
852 /* nssSlotList_FindTokenByName | 681 /* nssSlotList_FindTokenByName |
853 */ | 682 */ |
854 NSS_EXTERN NSSToken * | 683 NSS_EXTERN NSSToken * |
855 nssSlotList_FindTokenByName | 684 nssSlotList_FindTokenByName( |
856 ( | 685 nssSlotList *slotList, |
857 nssSlotList *slotList, | 686 NSSUTF8 *tokenName); |
858 NSSUTF8 *tokenName | |
859 ); | |
860 | 687 |
861 /* nssSlotList_GetBestSlot | 688 /* nssSlotList_GetBestSlot |
862 * | 689 * |
863 * The best slot is the highest ranking in order, i.e., the first in the | 690 * The best slot is the highest ranking in order, i.e., the first in the |
864 * list. | 691 * list. |
865 */ | 692 */ |
866 NSS_EXTERN NSSSlot * | 693 NSS_EXTERN NSSSlot * |
867 nssSlotList_GetBestSlot | 694 nssSlotList_GetBestSlot( |
868 ( | 695 nssSlotList *slotList); |
869 nssSlotList *slotList | |
870 ); | |
871 | 696 |
872 /* nssSlotList_GetBestSlotForAlgorithmAndParameters | 697 /* nssSlotList_GetBestSlotForAlgorithmAndParameters |
873 * | 698 * |
874 * Highest-ranking slot than can handle algorithm/parameters. | 699 * Highest-ranking slot than can handle algorithm/parameters. |
875 */ | 700 */ |
876 NSS_EXTERN NSSSlot * | 701 NSS_EXTERN NSSSlot * |
877 nssSlotList_GetBestSlotForAlgorithmAndParameters | 702 nssSlotList_GetBestSlotForAlgorithmAndParameters( |
878 ( | 703 nssSlotList *slotList, |
879 nssSlotList *slotList, | 704 NSSAlgorithmAndParameters *ap); |
880 NSSAlgorithmAndParameters *ap | |
881 ); | |
882 | 705 |
883 /* nssSlotList_GetBestSlotForAlgorithmsAndParameters | 706 /* nssSlotList_GetBestSlotForAlgorithmsAndParameters |
884 * | 707 * |
885 * Highest-ranking slot than can handle all algorithms/parameters. | 708 * Highest-ranking slot than can handle all algorithms/parameters. |
886 */ | 709 */ |
887 NSS_EXTERN NSSSlot * | 710 NSS_EXTERN NSSSlot * |
888 nssSlotList_GetBestSlotForAlgorithmsAndParameters | 711 nssSlotList_GetBestSlotForAlgorithmsAndParameters( |
889 ( | 712 nssSlotList *slotList, |
890 nssSlotList *slotList, | 713 NSSAlgorithmAndParameters **ap); |
891 NSSAlgorithmAndParameters **ap | |
892 ); | |
893 | 714 |
894 NSS_EXTERN PRBool | 715 NSS_EXTERN PRBool |
895 nssToken_IsPresent | 716 nssToken_IsPresent( |
896 ( | 717 NSSToken *token); |
897 NSSToken *token | |
898 ); | |
899 | 718 |
900 NSS_EXTERN nssSession * | 719 NSS_EXTERN nssSession * |
901 nssToken_GetDefaultSession | 720 nssToken_GetDefaultSession( |
902 ( | 721 NSSToken *token); |
903 NSSToken *token | |
904 ); | |
905 | 722 |
906 NSS_EXTERN PRStatus | 723 NSS_EXTERN PRStatus |
907 nssToken_GetTrustOrder | 724 nssToken_GetTrustOrder( |
908 ( | 725 NSSToken *tok); |
909 NSSToken *tok | |
910 ); | |
911 | 726 |
912 NSS_EXTERN PRStatus | 727 NSS_EXTERN PRStatus |
913 nssToken_NotifyCertsNotVisible | 728 nssToken_NotifyCertsNotVisible( |
914 ( | 729 NSSToken *tok); |
915 NSSToken *tok | |
916 ); | |
917 | 730 |
918 NSS_EXTERN PRStatus | 731 NSS_EXTERN PRStatus |
919 nssToken_TraverseCertificates | 732 nssToken_TraverseCertificates( |
920 ( | 733 NSSToken *token, |
921 NSSToken *token, | 734 nssSession *sessionOpt, |
922 nssSession *sessionOpt, | 735 nssTokenSearchType searchType, |
923 nssTokenSearchType searchType, | 736 PRStatus (*callback)(nssCryptokiObject *instance, void *arg), |
924 PRStatus (* callback)(nssCryptokiObject *instance, void *arg), | 737 void *arg); |
925 void *arg | |
926 ); | |
927 | 738 |
928 NSS_EXTERN PRBool | 739 NSS_EXTERN PRBool |
929 nssToken_IsPrivateKeyAvailable | 740 nssToken_IsPrivateKeyAvailable( |
930 ( | 741 NSSToken *token, |
931 NSSToken *token, | 742 NSSCertificate *c, |
932 NSSCertificate *c, | 743 nssCryptokiObject *instance); |
933 nssCryptokiObject *instance | |
934 ); | |
935 | 744 |
936 PR_END_EXTERN_C | 745 PR_END_EXTERN_C |
937 | 746 |
938 #endif /* DEV_H */ | 747 #endif /* DEV_H */ |
OLD | NEW |