modules/libmar/sign/nss_secutil.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 #ifndef NSS_SECUTIL_H_
     9 #define NSS_SECUTIL_H_
    11 #include "nss.h"
    12 #include "pk11pub.h"
    13 #include "cryptohi.h"
    14 #include "hasht.h"
    15 #include "cert.h"
    16 #include "key.h"
    17 #include <stdint.h>
    19 typedef struct {
    20   enum {
    21     PW_NONE = 0,
    22     PW_FROMFILE = 1,
    23     PW_PLAINTEXT = 2,
    24     PW_EXTERNAL = 3
    25   } source;
    26   char *data;
    27 } secuPWData;
    29 #if( defined(_WINDOWS) && !defined(_WIN32_WCE))
    30 #include <conio.h>
    31 #include <io.h>
    32 #define QUIET_FGETS quiet_fgets
    33 static char * quiet_fgets (char *buf, int length, FILE *input);
    34 #else
    35 #define QUIET_FGETS fgets
    36 #endif
    38 char *
    39 SECU_GetModulePassword(PK11SlotInfo *slot, PRBool retry, void *arg);
    41 #endif

mercurial