Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / onlineupdate / source / libmar / sign / nss_secutil.h
blob5b1772d1799461b1c2bb5d5d9491717d7f931e00
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/. */
5 /* With the exception of GetPasswordString, this file was
6 copied from NSS's cmd/lib/secutil.h hg revision 8f011395145e */
8 #pragma once
10 #include "nss.h"
11 #include "pk11pub.h"
12 #include "cryptohi.h"
13 #include "hasht.h"
14 #include "cert.h"
15 #include "key.h"
16 #include <stdint.h>
18 typedef struct
20 enum
22 PW_NONE = 0,
23 PW_FROMFILE = 1,
24 PW_PLAINTEXT = 2,
25 PW_EXTERNAL = 3
26 } source;
27 char *data;
28 } secuPWData;
30 #if( defined(_WINDOWS) && !defined(_WIN32_WCE))
31 #include <conio.h>
32 #include <io.h>
33 #define QUIET_FGETS quiet_fgets
34 static char * quiet_fgets (char *buf, int length, FILE *input);
35 #else
36 #define QUIET_FGETS fgets
37 #endif
39 char *
40 SECU_GetModulePassword(PK11SlotInfo *slot, PRBool retry, void *arg);