michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef MODUTIL_H michael@0: #define MODUTIL_H michael@0: michael@0: #include michael@0: #include michael@0: michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: michael@0: #include "seccomon.h" michael@0: #include "secmod.h" michael@0: #include "secutil.h" michael@0: michael@0: #include "error.h" michael@0: michael@0: Error LoadMechanismList(void); michael@0: Error FipsMode(char *arg); michael@0: Error ChkFipsMode(char *arg); michael@0: Error AddModule(char *moduleName, char *libFile, char *ciphers, michael@0: char *mechanisms, char* modparms); michael@0: Error DeleteModule(char *moduleName); michael@0: Error ListModule(char *moduleName); michael@0: Error ListModules(); michael@0: Error ChangePW(char *tokenName, char *pwFile, char *newpwFile); michael@0: Error EnableModule(char *moduleName, char *slotName, PRBool enable); michael@0: Error RawAddModule(char *dbmodulespec, char *modulespec); michael@0: Error RawListModule(char *modulespec); michael@0: Error SetDefaultModule(char *moduleName, char *slotName, char *mechanisms); michael@0: Error UnsetDefaultModule(char *moduleName, char *slotName, char *mechanisms); michael@0: void out_of_memory(void); michael@0: michael@0: #endif /*MODUTIL_H*/