Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | /* With the exception of GetPasswordString, this file was |
michael@0 | 6 | copied from NSS's cmd/lib/secutil.h hg revision 8f011395145e */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef NSS_SECUTIL_H_ |
michael@0 | 9 | #define NSS_SECUTIL_H_ |
michael@0 | 10 | |
michael@0 | 11 | #include "nss.h" |
michael@0 | 12 | #include "pk11pub.h" |
michael@0 | 13 | #include "cryptohi.h" |
michael@0 | 14 | #include "hasht.h" |
michael@0 | 15 | #include "cert.h" |
michael@0 | 16 | #include "key.h" |
michael@0 | 17 | #include <stdint.h> |
michael@0 | 18 | |
michael@0 | 19 | typedef struct { |
michael@0 | 20 | enum { |
michael@0 | 21 | PW_NONE = 0, |
michael@0 | 22 | PW_FROMFILE = 1, |
michael@0 | 23 | PW_PLAINTEXT = 2, |
michael@0 | 24 | PW_EXTERNAL = 3 |
michael@0 | 25 | } source; |
michael@0 | 26 | char *data; |
michael@0 | 27 | } secuPWData; |
michael@0 | 28 | |
michael@0 | 29 | #if( defined(_WINDOWS) && !defined(_WIN32_WCE)) |
michael@0 | 30 | #include <conio.h> |
michael@0 | 31 | #include <io.h> |
michael@0 | 32 | #define QUIET_FGETS quiet_fgets |
michael@0 | 33 | static char * quiet_fgets (char *buf, int length, FILE *input); |
michael@0 | 34 | #else |
michael@0 | 35 | #define QUIET_FGETS fgets |
michael@0 | 36 | #endif |
michael@0 | 37 | |
michael@0 | 38 | char * |
michael@0 | 39 | SECU_GetModulePassword(PK11SlotInfo *slot, PRBool retry, void *arg); |
michael@0 | 40 | |
michael@0 | 41 | #endif |