|
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 #ifndef MODUTIL_H |
|
6 #define MODUTIL_H |
|
7 |
|
8 #include <stdio.h> |
|
9 #include <string.h> |
|
10 |
|
11 #include <prio.h> |
|
12 #include <prprf.h> |
|
13 #include <prinit.h> |
|
14 #include <prlock.h> |
|
15 #include <prmem.h> |
|
16 #include <plarena.h> |
|
17 |
|
18 #include "seccomon.h" |
|
19 #include "secmod.h" |
|
20 #include "secutil.h" |
|
21 |
|
22 #include "error.h" |
|
23 |
|
24 Error LoadMechanismList(void); |
|
25 Error FipsMode(char *arg); |
|
26 Error ChkFipsMode(char *arg); |
|
27 Error AddModule(char *moduleName, char *libFile, char *ciphers, |
|
28 char *mechanisms, char* modparms); |
|
29 Error DeleteModule(char *moduleName); |
|
30 Error ListModule(char *moduleName); |
|
31 Error ListModules(); |
|
32 Error ChangePW(char *tokenName, char *pwFile, char *newpwFile); |
|
33 Error EnableModule(char *moduleName, char *slotName, PRBool enable); |
|
34 Error RawAddModule(char *dbmodulespec, char *modulespec); |
|
35 Error RawListModule(char *modulespec); |
|
36 Error SetDefaultModule(char *moduleName, char *slotName, char *mechanisms); |
|
37 Error UnsetDefaultModule(char *moduleName, char *slotName, char *mechanisms); |
|
38 void out_of_memory(void); |
|
39 |
|
40 #endif /*MODUTIL_H*/ |