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 #ifndef _UTILPARS_H_ | 5 #ifndef _UTILPARS_H_ |
6 #define _UTILPARS_H_ 1 | 6 #define _UTILPARS_H_ 1 |
7 | 7 |
8 #include "utilparst.h" | 8 #include "utilparst.h" |
9 #include "plarena.h" | 9 #include "plarena.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 /* quoting functions */ | 26 /* quoting functions */ |
27 int NSSUTIL_EscapeSize(const char *string, char quote); | 27 int NSSUTIL_EscapeSize(const char *string, char quote); |
28 char *NSSUTIL_Escape(const char *string, char quote); | 28 char *NSSUTIL_Escape(const char *string, char quote); |
29 int NSSUTIL_QuoteSize(const char *string, char quote); | 29 int NSSUTIL_QuoteSize(const char *string, char quote); |
30 char *NSSUTIL_Quote(const char *string, char quote); | 30 char *NSSUTIL_Quote(const char *string, char quote); |
31 int NSSUTIL_DoubleEscapeSize(const char *string, char quote1, char quote2); | 31 int NSSUTIL_DoubleEscapeSize(const char *string, char quote1, char quote2); |
32 char *NSSUTIL_DoubleEscape(const char *string, char quote1, char quote2); | 32 char *NSSUTIL_DoubleEscape(const char *string, char quote1, char quote2); |
33 | 33 |
34 unsigned long NSSUTIL_ArgParseSlotFlags(char *label,char *params); | 34 unsigned long NSSUTIL_ArgParseSlotFlags(char *label,char *params); |
35 struct NSSUTILPreSlotInfoStr *NSSUTIL_ArgParseSlotInfo(PRArenaPool *arena, | 35 struct NSSUTILPreSlotInfoStr *NSSUTIL_ArgParseSlotInfo(PLArenaPool *arena, |
36 char *slotParams, int *retCount); | 36 char *slotParams, int *retCount); |
37 char * NSSUTIL_MkSlotString(unsigned long slotID, unsigned long defaultFlags, | 37 char * NSSUTIL_MkSlotString(unsigned long slotID, unsigned long defaultFlags, |
38 unsigned long timeout, unsigned char askpw_in, | 38 unsigned long timeout, unsigned char askpw_in, |
39 PRBool hasRootCerts, PRBool hasRootTrust); | 39 PRBool hasRootCerts, PRBool hasRootTrust); |
40 SECStatus NSSUTIL_ArgParseModuleSpec(char *modulespec, char **lib, char **mod, | 40 SECStatus NSSUTIL_ArgParseModuleSpec(char *modulespec, char **lib, char **mod, |
41 char **parameters, char **nss); | 41 char **parameters, char **nss); |
42 char *NSSUTIL_MkModuleSpec(char *dllName, char *commonName, | 42 char *NSSUTIL_MkModuleSpec(char *dllName, char *commonName, |
43 char *parameters, char *NSS); | 43 char *parameters, char *NSS); |
44 void NSSUTIL_ArgParseCipherFlags(unsigned long *newCiphers,char *cipherList); | 44 void NSSUTIL_ArgParseCipherFlags(unsigned long *newCiphers,char *cipherList); |
45 char * NSSUTIL_MkNSSString(char **slotStrings, int slotCount, PRBool internal, | 45 char * NSSUTIL_MkNSSString(char **slotStrings, int slotCount, PRBool internal, |
46 PRBool isFIPS, PRBool isModuleDB, PRBool isModuleDBOnly, | 46 PRBool isFIPS, PRBool isModuleDB, PRBool isModuleDBOnly, |
47 PRBool isCritical, unsigned long trustOrder, | 47 PRBool isCritical, unsigned long trustOrder, |
48 unsigned long cipherOrder, unsigned long ssl0, unsigned long ssl1); | 48 unsigned long cipherOrder, unsigned long ssl0, unsigned long ssl1); |
49 | 49 |
50 /* | 50 /* |
51 * private functions for softoken. | 51 * private functions for softoken. |
52 */ | 52 */ |
53 char * _NSSUTIL_GetSecmodName(char *param, NSSDBType *dbType, char **appName, ch
ar **filename,PRBool *rw); | 53 char * _NSSUTIL_GetSecmodName(char *param, NSSDBType *dbType, char **appName, ch
ar **filename,PRBool *rw); |
54 const char *_NSSUTIL_EvaluateConfigDir(const char *configdir, NSSDBType *dbType,
char **app); | 54 const char *_NSSUTIL_EvaluateConfigDir(const char *configdir, NSSDBType *dbType,
char **app); |
55 | 55 |
56 #endif /* _UTILPARS_H_ */ | 56 #endif /* _UTILPARS_H_ */ |
OLD | NEW |