michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* With the exception of GetPasswordString, this file was michael@0: copied from NSS's cmd/lib/secutil.h hg revision 8f011395145e */ michael@0: michael@0: #ifndef NSS_SECUTIL_H_ michael@0: #define NSS_SECUTIL_H_ michael@0: michael@0: #include "nss.h" michael@0: #include "pk11pub.h" michael@0: #include "cryptohi.h" michael@0: #include "hasht.h" michael@0: #include "cert.h" michael@0: #include "key.h" michael@0: #include michael@0: michael@0: typedef struct { michael@0: enum { michael@0: PW_NONE = 0, michael@0: PW_FROMFILE = 1, michael@0: PW_PLAINTEXT = 2, michael@0: PW_EXTERNAL = 3 michael@0: } source; michael@0: char *data; michael@0: } secuPWData; michael@0: michael@0: #if( defined(_WINDOWS) && !defined(_WIN32_WCE)) michael@0: #include michael@0: #include michael@0: #define QUIET_FGETS quiet_fgets michael@0: static char * quiet_fgets (char *buf, int length, FILE *input); michael@0: #else michael@0: #define QUIET_FGETS fgets michael@0: #endif michael@0: michael@0: char * michael@0: SECU_GetModulePassword(PK11SlotInfo *slot, PRBool retry, void *arg); michael@0: michael@0: #endif