Chromium Code Reviews| 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 #include "utilparst.h" | |
|
Ryan Sleevi
2012/09/25 21:56:55
no header guards?
wtc
2012/09/26 00:21:09
I fixed both of these problems yesterday :-)
| |
| 5 | |
| 6 /* handle a module db request */ | |
| 7 char ** NSSUTIL_DoModuleDBFunction(unsigned long function,char *parameters, void *args); | |
| 8 | |
| 9 /* parsing functions */ | |
| 10 char *NSSUTIL_ArgFetchValue(char *string, int *pcount); | |
| 11 char *NSSUTIL_ArgStrip(char *c); | |
| 12 char *NSSUTIL_ArgGetParamValue(char *paramName,char *parameters); | |
| 13 char *NSSUTIL_ArgSkipParameter(char *string); | |
| 14 char *NSSUTIL_ArgGetLabel(char *inString, int *next); | |
| 15 long NSSUTIL_ArgDecodeNumber(char *num); | |
| 16 PRBool NSSUTIL_ArgIsBlank(char c); | |
| 17 PRBool NSSUTIL_ArgHasFlag(char *label, char *flag, char *parameters); | |
| 18 long NSSUTIL_ArgReadLong(char *label,char *params, long defValue, | |
| 19 PRBool *isdefault); | |
| 20 | |
| 21 /* quoting functions */ | |
| 22 int NSSUTIL_EscapeSize(const char *string, char quote); | |
| 23 char *NSSUTIL_Escape(const char *string, char quote); | |
| 24 int NSSUTIL_QuoteSize(const char *string, char quote); | |
| 25 char *NSSUTIL_Quote(const char *string, char quote); | |
| 26 int NSSUTIL_DoubleEscapeSize(const char *string, char quote1, char quote2); | |
| 27 char *NSSUTIL_DoubleEscape(const char *string, char quote1, char quote2); | |
| 28 | |
| 29 unsigned long NSSUTIL_ArgParseSlotFlags(char *label,char *params); | |
| 30 struct NSSUTILPreSlotInfoStr *NSSUTIL_ArgParseSlotInfo(PRArenaPool *arena, | |
| 31 char *slotParams, int *retCount); | |
| 32 char * NSSUTIL_MkSlotString(unsigned long slotID, unsigned long defaultFlags, | |
| 33 unsigned long timeout, unsigned char askpw_in, | |
| 34 PRBool hasRootCerts, PRBool hasRootTrust); | |
| 35 SECStatus NSSUTIL_ArgParseModuleSpec(char *modulespec, char **lib, char **mod, | |
| 36 char **parameters, char **nss); | |
| 37 char *NSSUTIL_MkModuleSpec(char *dllName, char *commonName, | |
| 38 char *parameters, char *NSS); | |
| 39 void NSSUTIL_ArgParseCipherFlags(unsigned long *newCiphers,char *cipherList); | |
| 40 char * NSSUTIL_MkNSSString(char **slotStrings, int slotCount, PRBool internal, | |
| 41 PRBool isFIPS, PRBool isModuleDB, PRBool isModuleDBOnly, | |
| 42 PRBool isCritical, unsigned long trustOrder, | |
| 43 unsigned long cipherOrder, unsigned long ssl0, unsigned long ssl1); | |
| 44 | |
| 45 | |
|
Ryan Sleevi
2012/09/25 21:56:55
Unfortunate whitespace
| |
| 46 | |
| 47 | |
| 48 /* | |
| 49 * private functions for softoken. | |
| 50 */ | |
| 51 char * _NSSUTIL_GetSecmodName(char *param, NSSDBType *dbType, char **appName, ch ar **filename,PRBool *rw); | |
| 52 const char *_NSSUTIL_EvaluateConfigDir(const char *configdir, NSSDBType *dbType, char **app); | |
| OLD | NEW |