OLD | NEW |
| (Empty) |
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 | |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
4 | |
5 #ifdef DEBUG | |
6 static const char BUILTINS_CVS_ID[] = "@(#) $RCSfile: builtins.h,v $ $Revision:
1.7 $ $Date: 2012/04/25 14:49:29 $"; | |
7 #endif /* DEBUG */ | |
8 | |
9 #include "nssckmdt.h" | |
10 #include "nssckfw.h" | |
11 | |
12 /* | |
13 * I'm including this for access to the arena functions. | |
14 * Looks like we should publish that API. | |
15 */ | |
16 #ifndef BASE_H | |
17 #include "base.h" | |
18 #endif /* BASE_H */ | |
19 | |
20 /* | |
21 * This is where the Netscape extensions live, at least for now. | |
22 */ | |
23 #ifndef CKT_H | |
24 #include "ckt.h" | |
25 #endif /* CKT_H */ | |
26 | |
27 struct builtinsInternalObjectStr { | |
28 CK_ULONG n; | |
29 const CK_ATTRIBUTE_TYPE *types; | |
30 const NSSItem *items; | |
31 NSSCKMDObject mdObject; | |
32 }; | |
33 typedef struct builtinsInternalObjectStr builtinsInternalObject; | |
34 | |
35 extern builtinsInternalObject nss_builtins_data[]; | |
36 extern const PRUint32 nss_builtins_nObjects; | |
37 | |
38 extern const CK_VERSION nss_builtins_CryptokiVersion; | |
39 extern const CK_VERSION nss_builtins_LibraryVersion; | |
40 extern const CK_VERSION nss_builtins_HardwareVersion; | |
41 extern const CK_VERSION nss_builtins_FirmwareVersion; | |
42 | |
43 extern const NSSUTF8 nss_builtins_ManufacturerID[]; | |
44 extern const NSSUTF8 nss_builtins_LibraryDescription[]; | |
45 extern const NSSUTF8 nss_builtins_SlotDescription[]; | |
46 extern const NSSUTF8 nss_builtins_TokenLabel[]; | |
47 extern const NSSUTF8 nss_builtins_TokenModel[]; | |
48 extern const NSSUTF8 nss_builtins_TokenSerialNumber[]; | |
49 | |
50 extern const NSSCKMDInstance nss_builtins_mdInstance; | |
51 extern const NSSCKMDSlot nss_builtins_mdSlot; | |
52 extern const NSSCKMDToken nss_builtins_mdToken; | |
53 | |
54 NSS_EXTERN NSSCKMDSession * | |
55 nss_builtins_CreateSession | |
56 ( | |
57 NSSCKFWSession *fwSession, | |
58 CK_RV *pError | |
59 ); | |
60 | |
61 NSS_EXTERN NSSCKMDFindObjects * | |
62 nss_builtins_FindObjectsInit | |
63 ( | |
64 NSSCKFWSession *fwSession, | |
65 CK_ATTRIBUTE_PTR pTemplate, | |
66 CK_ULONG ulAttributeCount, | |
67 CK_RV *pError | |
68 ); | |
69 | |
70 NSS_EXTERN NSSCKMDObject * | |
71 nss_builtins_CreateMDObject | |
72 ( | |
73 NSSArena *arena, | |
74 builtinsInternalObject *io, | |
75 CK_RV *pError | |
76 ); | |
OLD | NEW |