| OLD | NEW |
| (Empty) |
| 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 _UTILPARS_H_ | |
| 6 #define _UTILPARS_H_ 1 | |
| 7 | |
| 8 #include "utilparst.h" | |
| 9 #include "plarena.h" | |
| 10 | |
| 11 /* handle a module db request */ | |
| 12 char ** NSSUTIL_DoModuleDBFunction(unsigned long function,char *parameters, void
*args); | |
| 13 | |
| 14 /* parsing functions */ | |
| 15 char *NSSUTIL_ArgFetchValue(char *string, int *pcount); | |
| 16 char *NSSUTIL_ArgStrip(char *c); | |
| 17 char *NSSUTIL_ArgGetParamValue(char *paramName,char *parameters); | |
| 18 char *NSSUTIL_ArgSkipParameter(char *string); | |
| 19 char *NSSUTIL_ArgGetLabel(char *inString, int *next); | |
| 20 long NSSUTIL_ArgDecodeNumber(char *num); | |
| 21 PRBool NSSUTIL_ArgIsBlank(char c); | |
| 22 PRBool NSSUTIL_ArgHasFlag(char *label, char *flag, char *parameters); | |
| 23 long NSSUTIL_ArgReadLong(char *label,char *params, long defValue, | |
| 24 PRBool *isdefault); | |
| 25 | |
| 26 /* quoting functions */ | |
| 27 int NSSUTIL_EscapeSize(const char *string, char quote); | |
| 28 char *NSSUTIL_Escape(const char *string, char quote); | |
| 29 int NSSUTIL_QuoteSize(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); | |
| 32 char *NSSUTIL_DoubleEscape(const char *string, char quote1, char quote2); | |
| 33 | |
| 34 unsigned long NSSUTIL_ArgParseSlotFlags(char *label,char *params); | |
| 35 struct NSSUTILPreSlotInfoStr *NSSUTIL_ArgParseSlotInfo(PRArenaPool *arena, | |
| 36 char *slotParams, int *retCount); | |
| 37 char * NSSUTIL_MkSlotString(unsigned long slotID, unsigned long defaultFlags, | |
| 38 unsigned long timeout, unsigned char askpw_in, | |
| 39 PRBool hasRootCerts, PRBool hasRootTrust); | |
| 40 SECStatus NSSUTIL_ArgParseModuleSpec(char *modulespec, char **lib, char **mod, | |
| 41 char **parameters, char **nss); | |
| 42 char *NSSUTIL_MkModuleSpec(char *dllName, char *commonName, | |
| 43 char *parameters, char *NSS); | |
| 44 void NSSUTIL_ArgParseCipherFlags(unsigned long *newCiphers,char *cipherList); | |
| 45 char * NSSUTIL_MkNSSString(char **slotStrings, int slotCount, PRBool internal, | |
| 46 PRBool isFIPS, PRBool isModuleDB, PRBool isModuleDBOnly, | |
| 47 PRBool isCritical, unsigned long trustOrder, | |
| 48 unsigned long cipherOrder, unsigned long ssl0, unsigned long ssl1); | |
| 49 | |
| 50 /* | |
| 51 * private functions for softoken. | |
| 52 */ | |
| 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); | |
| 55 | |
| 56 #endif /* _UTILPARS_H_ */ | |
| OLD | NEW |