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 #ifndef _SECMODI_H_ | 8 #ifndef _SECMODI_H_ |
9 #define _SECMODI_H_ 1 | 9 #define _SECMODI_H_ 1 |
10 #include "pkcs11.h" | 10 #include "pkcs11.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 /* parsing parameters */ | 74 /* parsing parameters */ |
75 /* returned char * must be freed by caller with PORT_Free */ | 75 /* returned char * must be freed by caller with PORT_Free */ |
76 /* children and ids are null terminated arrays which must be freed with | 76 /* children and ids are null terminated arrays which must be freed with |
77 * secmod_FreeChildren */ | 77 * secmod_FreeChildren */ |
78 char *secmod_ParseModuleSpecForTokens(PRBool convert, | 78 char *secmod_ParseModuleSpecForTokens(PRBool convert, |
79 PRBool isFIPS, | 79 PRBool isFIPS, |
80 char *moduleSpec, | 80 char *moduleSpec, |
81 char ***children, | 81 char ***children, |
82 CK_SLOT_ID **ids); | 82 CK_SLOT_ID **ids); |
83 void secmod_FreeChildren(char **children, CK_SLOT_ID *ids); | 83 void secmod_FreeChildren(char **children, CK_SLOT_ID *ids); |
84 char *secmod_MkAppendTokensList(PRArenaPool *arena, char *origModuleSpec, | 84 char *secmod_MkAppendTokensList(PLArenaPool *arena, char *origModuleSpec, |
85 char *newModuleSpec, CK_SLOT_ID newID, | 85 char *newModuleSpec, CK_SLOT_ID newID, |
86 char **children, CK_SLOT_ID *ids); | 86 char **children, CK_SLOT_ID *ids); |
87 | 87 |
88 | 88 |
89 void SECMOD_SlotDestroyModule(SECMODModule *module, PRBool fromSlot); | 89 void SECMOD_SlotDestroyModule(SECMODModule *module, PRBool fromSlot); |
90 CK_RV pk11_notify(CK_SESSION_HANDLE session, CK_NOTIFICATION event, | 90 CK_RV pk11_notify(CK_SESSION_HANDLE session, CK_NOTIFICATION event, |
91 CK_VOID_PTR pdata); | 91 CK_VOID_PTR pdata); |
92 void pk11_SignedToUnsigned(CK_ATTRIBUTE *attrib); | 92 void pk11_SignedToUnsigned(CK_ATTRIBUTE *attrib); |
93 CK_OBJECT_HANDLE pk11_FindObjectByTemplate(PK11SlotInfo *slot, | 93 CK_OBJECT_HANDLE pk11_FindObjectByTemplate(PK11SlotInfo *slot, |
94 CK_ATTRIBUTE *inTemplate,int tsize); | 94 CK_ATTRIBUTE *inTemplate,int tsize); |
95 CK_OBJECT_HANDLE *pk11_FindObjectsByTemplate(PK11SlotInfo *slot, | 95 CK_OBJECT_HANDLE *pk11_FindObjectsByTemplate(PK11SlotInfo *slot, |
96 CK_ATTRIBUTE *inTemplate,int tsize, int *objCount); | 96 CK_ATTRIBUTE *inTemplate,int tsize, int *objCount); |
97 SECStatus PK11_UpdateSlotAttribute(PK11SlotInfo *slot, | 97 SECStatus PK11_UpdateSlotAttribute(PK11SlotInfo *slot, |
98 PK11DefaultArrayEntry *entry, PRBool add); | 98 PK11DefaultArrayEntry *entry, PRBool add); |
99 | 99 |
100 #define PK11_GETTAB(x) ((CK_FUNCTION_LIST_PTR)((x)->functionList)) | 100 #define PK11_GETTAB(x) ((CK_FUNCTION_LIST_PTR)((x)->functionList)) |
101 #define PK11_SETATTRS(x,id,v,l) (x)->type = (id); \ | 101 #define PK11_SETATTRS(x,id,v,l) (x)->type = (id); \ |
102 (x)->pValue=(v); (x)->ulValueLen = (l); | 102 (x)->pValue=(v); (x)->ulValueLen = (l); |
103 SECStatus PK11_CreateNewObject(PK11SlotInfo *slot, CK_SESSION_HANDLE session, | 103 SECStatus PK11_CreateNewObject(PK11SlotInfo *slot, CK_SESSION_HANDLE session, |
104 const CK_ATTRIBUTE *theTemplate, int count, | 104 const CK_ATTRIBUTE *theTemplate, int count, |
105 PRBool token, CK_OBJECT_HANDLE *objectID); | 105 PRBool token, CK_OBJECT_HANDLE *objectID); |
106 | 106 |
107 SECStatus pbe_PK11AlgidToParam(SECAlgorithmID *algid,SECItem *mech); | 107 SECStatus pbe_PK11AlgidToParam(SECAlgorithmID *algid,SECItem *mech); |
108 SECStatus PBE_PK11ParamToAlgid(SECOidTag algTag, SECItem *param, | 108 SECStatus PBE_PK11ParamToAlgid(SECOidTag algTag, SECItem *param, |
109 » » » » PRArenaPool *arena, SECAlgorithmID *algId); | 109 » » » » PLArenaPool *arena, SECAlgorithmID *algId); |
110 | 110 |
111 PK11SymKey *pk11_TokenKeyGenWithFlagsAndKeyType(PK11SlotInfo *slot, | 111 PK11SymKey *pk11_TokenKeyGenWithFlagsAndKeyType(PK11SlotInfo *slot, |
112 CK_MECHANISM_TYPE type, SECItem *param, CK_KEY_TYPE keyType, | 112 CK_MECHANISM_TYPE type, SECItem *param, CK_KEY_TYPE keyType, |
113 int keySize, SECItem *keyId, CK_FLAGS opFlags, | 113 int keySize, SECItem *keyId, CK_FLAGS opFlags, |
114 PK11AttrFlags attrFlags, void *wincx); | 114 PK11AttrFlags attrFlags, void *wincx); |
115 | 115 |
116 CK_MECHANISM_TYPE pk11_GetPBECryptoMechanism(SECAlgorithmID *algid, | 116 CK_MECHANISM_TYPE pk11_GetPBECryptoMechanism(SECAlgorithmID *algid, |
117 SECItem **param, SECItem *pwd, PRBool faulty3DES); | 117 SECItem **param, SECItem *pwd, PRBool faulty3DES); |
118 | 118 |
119 | 119 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 CK_OBJECT_HANDLE certID, CK_ATTRIBUTE *privateLabel); | 165 CK_OBJECT_HANDLE certID, CK_ATTRIBUTE *privateLabel); |
166 | 166 |
167 SECItem *pk11_GenerateNewParamWithKeyLen(CK_MECHANISM_TYPE type, int keyLen); | 167 SECItem *pk11_GenerateNewParamWithKeyLen(CK_MECHANISM_TYPE type, int keyLen); |
168 SECItem *pk11_ParamFromIVWithLen(CK_MECHANISM_TYPE type, | 168 SECItem *pk11_ParamFromIVWithLen(CK_MECHANISM_TYPE type, |
169 SECItem *iv, int keyLen); | 169 SECItem *iv, int keyLen); |
170 | 170 |
171 SEC_END_PROTOS | 171 SEC_END_PROTOS |
172 | 172 |
173 #endif | 173 #endif |
174 | 174 |
OLD | NEW |