security/nss/cmd/modutil/modutil.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/cmd/modutil/modutil.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     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 +#ifndef MODUTIL_H
     1.9 +#define MODUTIL_H
    1.10 +
    1.11 +#include <stdio.h>
    1.12 +#include <string.h>
    1.13 +
    1.14 +#include <prio.h>
    1.15 +#include <prprf.h>
    1.16 +#include <prinit.h>
    1.17 +#include <prlock.h>
    1.18 +#include <prmem.h>
    1.19 +#include <plarena.h>
    1.20 +
    1.21 +#include "seccomon.h"
    1.22 +#include "secmod.h"
    1.23 +#include "secutil.h"
    1.24 +
    1.25 +#include "error.h"
    1.26 +
    1.27 +Error LoadMechanismList(void);
    1.28 +Error FipsMode(char *arg);
    1.29 +Error ChkFipsMode(char *arg);
    1.30 +Error AddModule(char *moduleName, char *libFile, char *ciphers,
    1.31 +      char *mechanisms, char* modparms);
    1.32 +Error DeleteModule(char *moduleName);
    1.33 +Error ListModule(char *moduleName);
    1.34 +Error ListModules();
    1.35 +Error ChangePW(char *tokenName, char *pwFile, char *newpwFile);
    1.36 +Error EnableModule(char *moduleName, char *slotName, PRBool enable);
    1.37 +Error RawAddModule(char *dbmodulespec, char *modulespec);
    1.38 +Error RawListModule(char *modulespec);
    1.39 +Error SetDefaultModule(char *moduleName, char *slotName, char *mechanisms);
    1.40 +Error UnsetDefaultModule(char *moduleName, char *slotName, char *mechanisms);
    1.41 +void out_of_memory(void);
    1.42 +
    1.43 +#endif /*MODUTIL_H*/

mercurial