Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: nss/lib/dev/devm.h

Issue 1843333003: Update NSPR to 4.12 and NSS to 3.23 on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 DEVM_H 5 #ifndef DEVM_H
6 #define DEVM_H 6 #define DEVM_H
7 7
8 #ifndef BASE_H 8 #ifndef BASE_H
9 #include "base.h" 9 #include "base.h"
10 #endif /* BASE_H */ 10 #endif /* BASE_H */
11 11
12 #ifndef DEV_H 12 #ifndef DEV_H
13 #include "dev.h" 13 #include "dev.h"
14 #endif /* DEV_H */ 14 #endif /* DEV_H */
15 15
16 #ifndef DEVTM_H 16 #ifndef DEVTM_H
17 #include "devtm.h" 17 #include "devtm.h"
18 #endif /* DEVTM_H */ 18 #endif /* DEVTM_H */
19 19
20 PR_BEGIN_EXTERN_C 20 PR_BEGIN_EXTERN_C
21 21
22 /* Shortcut to cryptoki API functions. */ 22 /* Shortcut to cryptoki API functions. */
23 #define CKAPI(epv) \ 23 #define CKAPI(epv) \
24 ((CK_FUNCTION_LIST_PTR)(epv)) 24 ((CK_FUNCTION_LIST_PTR)(epv))
25 25
26 NSS_EXTERN void 26 NSS_EXTERN void
27 nssDevice_AddRef 27 nssDevice_AddRef(
28 ( 28 struct nssDeviceBaseStr *device);
29 struct nssDeviceBaseStr *device
30 );
31 29
32 NSS_EXTERN PRBool 30 NSS_EXTERN PRBool
33 nssDevice_Destroy 31 nssDevice_Destroy(
34 ( 32 struct nssDeviceBaseStr *device);
35 struct nssDeviceBaseStr *device
36 );
37 33
38 NSS_EXTERN PRBool 34 NSS_EXTERN PRBool
39 nssModule_IsThreadSafe 35 nssModule_IsThreadSafe(
40 ( 36 NSSModule *module);
41 NSSModule *module
42 );
43 37
44 NSS_EXTERN PRBool 38 NSS_EXTERN PRBool
45 nssModule_IsInternal 39 nssModule_IsInternal(
46 ( 40 NSSModule *mod);
47 NSSModule *mod
48 );
49 41
50 NSS_EXTERN PRBool 42 NSS_EXTERN PRBool
51 nssModule_IsModuleDBOnly 43 nssModule_IsModuleDBOnly(
52 ( 44 NSSModule *mod);
53 NSSModule *mod
54 );
55 45
56 NSS_EXTERN void * 46 NSS_EXTERN void *
57 nssModule_GetCryptokiEPV 47 nssModule_GetCryptokiEPV(
58 ( 48 NSSModule *mod);
59 NSSModule *mod
60 );
61 49
62 NSS_EXTERN NSSSlot * 50 NSS_EXTERN NSSSlot *
63 nssSlot_Create 51 nssSlot_Create(
64 ( 52 CK_SLOT_ID slotId,
65 CK_SLOT_ID slotId, 53 NSSModule *parent);
66 NSSModule *parent
67 );
68 54
69 NSS_EXTERN void * 55 NSS_EXTERN void *
70 nssSlot_GetCryptokiEPV 56 nssSlot_GetCryptokiEPV(
71 ( 57 NSSSlot *slot);
72 NSSSlot *slot
73 );
74 58
75 NSS_EXTERN NSSToken * 59 NSS_EXTERN NSSToken *
76 nssToken_Create 60 nssToken_Create(
77 ( 61 CK_SLOT_ID slotID,
78 CK_SLOT_ID slotID, 62 NSSSlot *peer);
79 NSSSlot *peer
80 );
81 63
82 NSS_EXTERN void * 64 NSS_EXTERN void *
83 nssToken_GetCryptokiEPV 65 nssToken_GetCryptokiEPV(
84 ( 66 NSSToken *token);
85 NSSToken *token
86 );
87 67
88 NSS_EXTERN nssSession * 68 NSS_EXTERN nssSession *
89 nssToken_GetDefaultSession 69 nssToken_GetDefaultSession(
90 ( 70 NSSToken *token);
91 NSSToken *token
92 );
93 71
94 NSS_EXTERN PRBool 72 NSS_EXTERN PRBool
95 nssToken_IsLoginRequired 73 nssToken_IsLoginRequired(
96 ( 74 NSSToken *token);
97 NSSToken *token
98 );
99 75
100 NSS_EXTERN void 76 NSS_EXTERN void
101 nssToken_Remove 77 nssToken_Remove(
102 ( 78 NSSToken *token);
103 NSSToken *token
104 );
105 79
106 NSS_EXTERN nssCryptokiObject * 80 NSS_EXTERN nssCryptokiObject *
107 nssCryptokiObject_Create 81 nssCryptokiObject_Create(
108 ( 82 NSSToken *t,
109 NSSToken *t, 83 nssSession *session,
110 nssSession *session, 84 CK_OBJECT_HANDLE h);
111 CK_OBJECT_HANDLE h
112 );
113 85
114 NSS_EXTERN nssTokenObjectCache * 86 NSS_EXTERN nssTokenObjectCache *
115 nssTokenObjectCache_Create 87 nssTokenObjectCache_Create(
116 ( 88 NSSToken *token,
117 NSSToken *token, 89 PRBool cacheCerts,
118 PRBool cacheCerts, 90 PRBool cacheTrust,
119 PRBool cacheTrust, 91 PRBool cacheCRLs);
120 PRBool cacheCRLs
121 );
122 92
123 NSS_EXTERN void 93 NSS_EXTERN void
124 nssTokenObjectCache_Destroy 94 nssTokenObjectCache_Destroy(
125 ( 95 nssTokenObjectCache *cache);
126 nssTokenObjectCache *cache
127 );
128 96
129 NSS_EXTERN void 97 NSS_EXTERN void
130 nssTokenObjectCache_Clear 98 nssTokenObjectCache_Clear(
131 ( 99 nssTokenObjectCache *cache);
132 nssTokenObjectCache *cache
133 );
134 100
135 NSS_EXTERN PRBool 101 NSS_EXTERN PRBool
136 nssTokenObjectCache_HaveObjectClass 102 nssTokenObjectCache_HaveObjectClass(
137 ( 103 nssTokenObjectCache *cache,
138 nssTokenObjectCache *cache, 104 CK_OBJECT_CLASS objclass);
139 CK_OBJECT_CLASS objclass
140 );
141 105
142 NSS_EXTERN nssCryptokiObject ** 106 NSS_EXTERN nssCryptokiObject **
143 nssTokenObjectCache_FindObjectsByTemplate 107 nssTokenObjectCache_FindObjectsByTemplate(
144 ( 108 nssTokenObjectCache *cache,
145 nssTokenObjectCache *cache, 109 CK_OBJECT_CLASS objclass,
146 CK_OBJECT_CLASS objclass, 110 CK_ATTRIBUTE_PTR otemplate,
147 CK_ATTRIBUTE_PTR otemplate, 111 CK_ULONG otlen,
148 CK_ULONG otlen, 112 PRUint32 maximumOpt,
149 PRUint32 maximumOpt, 113 PRStatus *statusOpt);
150 PRStatus *statusOpt
151 );
152 114
153 NSS_EXTERN PRStatus 115 NSS_EXTERN PRStatus
154 nssTokenObjectCache_GetObjectAttributes 116 nssTokenObjectCache_GetObjectAttributes(
155 ( 117 nssTokenObjectCache *cache,
156 nssTokenObjectCache *cache, 118 NSSArena *arenaOpt,
157 NSSArena *arenaOpt, 119 nssCryptokiObject *object,
158 nssCryptokiObject *object, 120 CK_OBJECT_CLASS objclass,
159 CK_OBJECT_CLASS objclass, 121 CK_ATTRIBUTE_PTR atemplate,
160 CK_ATTRIBUTE_PTR atemplate, 122 CK_ULONG atlen);
161 CK_ULONG atlen
162 );
163 123
164 NSS_EXTERN PRStatus 124 NSS_EXTERN PRStatus
165 nssTokenObjectCache_ImportObject 125 nssTokenObjectCache_ImportObject(
166 ( 126 nssTokenObjectCache *cache,
167 nssTokenObjectCache *cache, 127 nssCryptokiObject *object,
168 nssCryptokiObject *object, 128 CK_OBJECT_CLASS objclass,
169 CK_OBJECT_CLASS objclass, 129 CK_ATTRIBUTE_PTR ot,
170 CK_ATTRIBUTE_PTR ot, 130 CK_ULONG otlen);
171 CK_ULONG otlen
172 );
173 131
174 NSS_EXTERN void 132 NSS_EXTERN void
175 nssTokenObjectCache_RemoveObject 133 nssTokenObjectCache_RemoveObject(
176 ( 134 nssTokenObjectCache *cache,
177 nssTokenObjectCache *cache, 135 nssCryptokiObject *object);
178 nssCryptokiObject *object
179 );
180 136
181 /* XXX allows peek back into token */ 137 /* XXX allows peek back into token */
182 NSS_EXTERN PRStatus 138 NSS_EXTERN PRStatus
183 nssToken_GetCachedObjectAttributes 139 nssToken_GetCachedObjectAttributes(
184 ( 140 NSSToken *token,
185 NSSToken *token, 141 NSSArena *arenaOpt,
186 NSSArena *arenaOpt, 142 nssCryptokiObject *object,
187 nssCryptokiObject *object, 143 CK_OBJECT_CLASS objclass,
188 CK_OBJECT_CLASS objclass, 144 CK_ATTRIBUTE_PTR atemplate,
189 CK_ATTRIBUTE_PTR atemplate, 145 CK_ULONG atlen);
190 CK_ULONG atlen
191 );
192 146
193 /* PKCS#11 stores strings in a fixed-length buffer padded with spaces. This 147 /* PKCS#11 stores strings in a fixed-length buffer padded with spaces. This
194 * function gets the length of the actual string. 148 * function gets the length of the actual string.
195 */ 149 */
196 NSS_EXTERN PRUint32 150 NSS_EXTERN PRUint32
197 nssPKCS11String_Length 151 nssPKCS11String_Length(
198 ( 152 CK_CHAR *pkcs11str,
199 CK_CHAR *pkcs11str, 153 PRUint32 bufLen);
200 PRUint32 bufLen
201 );
202 154
203 PR_END_EXTERN_C 155 PR_END_EXTERN_C
204 156
205 #endif /* DEV_H */ 157 #endif /* DEV_H */
OLDNEW
« no previous file with comments | « nss/lib/dev/dev.h ('k') | nss/lib/dev/devslot.c » ('j') | nss/lib/util/secoid.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698