tor-browser

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

modutil.h (1265B)


      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 #ifndef MODUTIL_H
      6 #define MODUTIL_H
      7 
      8 #include <stdio.h>
      9 #include <string.h>
     10 
     11 #include <prio.h>
     12 #include <prprf.h>
     13 #include <prinit.h>
     14 #include <prlock.h>
     15 #include <prmem.h>
     16 #include <plarena.h>
     17 
     18 #include "seccomon.h"
     19 #include "secmod.h"
     20 #include "secutil.h"
     21 
     22 #include "error.h"
     23 
     24 Error LoadMechanismList(void);
     25 Error FipsMode(char *arg);
     26 Error ChkFipsMode(char *arg);
     27 Error AddModule(char *moduleName, char *libFile, char *ciphers,
     28                char *mechanisms, char *modparms);
     29 Error DeleteModule(char *moduleName);
     30 Error ListModule(char *moduleName);
     31 Error ListModules();
     32 Error InitPW(void);
     33 Error ChangePW(char *tokenName, char *pwFile, char *newpwFile);
     34 Error EnableModule(char *moduleName, char *slotName, PRBool enable);
     35 Error RawAddModule(char *dbmodulespec, char *modulespec);
     36 Error RawListModule(char *modulespec);
     37 Error SetDefaultModule(char *moduleName, char *slotName, char *mechanisms);
     38 Error UnsetDefaultModule(char *moduleName, char *slotName, char *mechanisms);
     39 PRBool IsP11KitEnabled(void);
     40 void out_of_memory(void);
     41 
     42 #endif /*MODUTIL_H*/