tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nss_secutil.h (944B)


      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/. */
      4 
      5 /* With the exception of GetPasswordString, this file was
      6   copied from NSS's cmd/lib/secutil.h hg revision 8f011395145e */
      7 
      8 #ifndef NSS_SECUTIL_H_
      9 #define NSS_SECUTIL_H_
     10 
     11 #include "nss.h"
     12 #include "pk11pub.h"
     13 #include "cryptohi.h"
     14 #include "hasht.h"
     15 #include "cert.h"
     16 #include "keyhi.h"
     17 
     18 typedef struct {
     19  enum {
     20    PW_NONE = 0,
     21    PW_FROMFILE = 1,
     22    PW_PLAINTEXT = 2,
     23    PW_EXTERNAL = 3
     24  } source;
     25  char* data;
     26 } secuPWData;
     27 
     28 #if (defined(_WINDOWS) && !defined(_WIN32_WCE))
     29 #  include <conio.h>
     30 #  include <io.h>
     31 #  define QUIET_FGETS quiet_fgets
     32 char* quiet_fgets(char* buf, int length, FILE* input);
     33 #else
     34 #  define QUIET_FGETS fgets
     35 #endif
     36 
     37 char* SECU_GetModulePassword(PK11SlotInfo* slot, PRBool retry, void* arg);
     38 
     39 #endif