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 #ifndef _SECMOD_H_ | 4 #ifndef _SECMOD_H_ |
5 #define _SECMOD_H_ | 5 #define _SECMOD_H_ |
6 #include "seccomon.h" | 6 #include "seccomon.h" |
7 #include "secmodt.h" | 7 #include "secmodt.h" |
8 #include "prinrval.h" | 8 #include "prinrval.h" |
9 | 9 |
10 /* These mechanisms flags are visible to all other libraries. */ | 10 /* These mechanisms flags are visible to all other libraries. */ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 extern SECMODModule *SECMOD_LoadModule(char *moduleSpec,SECMODModule *parent, | 57 extern SECMODModule *SECMOD_LoadModule(char *moduleSpec,SECMODModule *parent, |
58 PRBool recurse); | 58 PRBool recurse); |
59 | 59 |
60 extern SECMODModule *SECMOD_LoadUserModule(char *moduleSpec,SECMODModule *parent
, | 60 extern SECMODModule *SECMOD_LoadUserModule(char *moduleSpec,SECMODModule *parent
, |
61 PRBool recurse); | 61 PRBool recurse); |
62 | 62 |
63 SECStatus SECMOD_UnloadUserModule(SECMODModule *mod); | 63 SECStatus SECMOD_UnloadUserModule(SECMODModule *mod); |
64 | 64 |
65 SECMODModule * SECMOD_CreateModule(const char *lib, const char *name, | 65 SECMODModule * SECMOD_CreateModule(const char *lib, const char *name, |
66 const char *param, const char *nss); | 66 const char *param, const char *nss); |
| 67 SECMODModule * SECMOD_CreateModuleEx(const char *lib, const char *name, |
| 68 const char *param, const char *nss, |
| 69 const char *config); |
67 /* | 70 /* |
68 * After a fork(), PKCS #11 says we need to call C_Initialize again in | 71 * After a fork(), PKCS #11 says we need to call C_Initialize again in |
69 * the child before we can use the module. This function causes this | 72 * the child before we can use the module. This function causes this |
70 * reinitialization. | 73 * reinitialization. |
71 * NOTE: Any outstanding handles will become invalid, which means your | 74 * NOTE: Any outstanding handles will become invalid, which means your |
72 * keys and contexts will fail, but new ones can be created. | 75 * keys and contexts will fail, but new ones can be created. |
73 * | 76 * |
74 * Setting 'force' to true means to do the reinitialization even if the | 77 * Setting 'force' to true means to do the reinitialization even if the |
75 * PKCS #11 module does not seem to need it. This allows software modules | 78 * PKCS #11 module does not seem to need it. This allows software modules |
76 * which ignore fork to preserve their keys across the fork(). | 79 * which ignore fork to preserve their keys across the fork(). |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 * modules to add new slots, but never remove them. Slots not be added between | 160 * modules to add new slots, but never remove them. Slots not be added between |
158 * a call to C_GetSlotLlist(Flag, NULL, &count) and the corresponding | 161 * a call to C_GetSlotLlist(Flag, NULL, &count) and the corresponding |
159 * C_GetSlotList(flag, &data, &count) so that the array doesn't accidently | 162 * C_GetSlotList(flag, &data, &count) so that the array doesn't accidently |
160 * grow on the caller. It is permissible for the slots to increase between | 163 * grow on the caller. It is permissible for the slots to increase between |
161 * corresponding calls with NULL to get the size. | 164 * corresponding calls with NULL to get the size. |
162 */ | 165 */ |
163 SECStatus SECMOD_UpdateSlotList(SECMODModule *mod); | 166 SECStatus SECMOD_UpdateSlotList(SECMODModule *mod); |
164 SEC_END_PROTOS | 167 SEC_END_PROTOS |
165 | 168 |
166 #endif | 169 #endif |
OLD | NEW |