Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
namespace mozilla {
namespace psm {
struct SlotInfo {
nsCString name;
nsCString desc;
nsCString manID;
nsCString hwVersion;
nsCString fwVersion;
uint32_t status;
nsCString tokenName;
};
struct ModuleInfo {
nsCString name;
nsCString libName;
SlotInfo[] slots;
};
[ChildProc=Utility]
protocol PPKCS11Module
{
child:
async AddModule(
nsCString aModuleName,
nsCString aLibraryPath,
uint32_t aMechanismFlags,
uint32_t aCipherFlags
) returns (nsresult rv);
async DeleteModule(nsCString aModuleName) returns (nsresult rv);
async ListModules() returns (nsresult rv, ModuleInfo[] modules);
};
} // namespace psm
} // namespace mozilla