modules/libmar/sign/nss_secutil.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial