modules/libmar/sign/nss_secutil.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/modules/libmar/sign/nss_secutil.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/* With the exception of GetPasswordString, this file was
     1.9 +   copied from NSS's cmd/lib/secutil.h hg revision 8f011395145e */
    1.10 +
    1.11 +#ifndef NSS_SECUTIL_H_
    1.12 +#define NSS_SECUTIL_H_
    1.13 +
    1.14 +#include "nss.h"
    1.15 +#include "pk11pub.h"
    1.16 +#include "cryptohi.h"
    1.17 +#include "hasht.h"
    1.18 +#include "cert.h"
    1.19 +#include "key.h"
    1.20 +#include <stdint.h>
    1.21 +
    1.22 +typedef struct {
    1.23 +  enum {
    1.24 +    PW_NONE = 0,
    1.25 +    PW_FROMFILE = 1,
    1.26 +    PW_PLAINTEXT = 2,
    1.27 +    PW_EXTERNAL = 3
    1.28 +  } source;
    1.29 +  char *data;
    1.30 +} secuPWData;
    1.31 +
    1.32 +#if( defined(_WINDOWS) && !defined(_WIN32_WCE))
    1.33 +#include <conio.h>
    1.34 +#include <io.h>
    1.35 +#define QUIET_FGETS quiet_fgets
    1.36 +static char * quiet_fgets (char *buf, int length, FILE *input);
    1.37 +#else
    1.38 +#define QUIET_FGETS fgets
    1.39 +#endif
    1.40 +
    1.41 +char *
    1.42 +SECU_GetModulePassword(PK11SlotInfo *slot, PRBool retry, void *arg);
    1.43 +
    1.44 +#endif

mercurial