security/manager/ssl/public/nsIPKCS11ModuleDB.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/public/nsIPKCS11ModuleDB.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +interface nsIPKCS11Module;
    1.13 +interface nsIPKCS11Slot;
    1.14 +interface nsIEnumerator;
    1.15 +
    1.16 +%{C++
    1.17 +#define NS_PKCS11MODULEDB_CONTRACTID "@mozilla.org/security/pkcs11moduledb;1"
    1.18 +%}
    1.19 +
    1.20 +[scriptable, uuid(ff9fbcd7-9517-4334-b97a-ceed78909974)]
    1.21 +interface nsIPKCS11ModuleDB : nsISupports
    1.22 +{
    1.23 +  nsIPKCS11Module getInternal();
    1.24 +
    1.25 +  nsIPKCS11Module getInternalFIPS();
    1.26 +
    1.27 +  nsIPKCS11Module findModuleByName(in wstring name);
    1.28 +
    1.29 +  nsIPKCS11Slot findSlotByName(in wstring name);
    1.30 +
    1.31 +  nsIEnumerator listModules();
    1.32 +
    1.33 +  readonly attribute boolean canToggleFIPS;
    1.34 +
    1.35 +  void toggleFIPSMode();
    1.36 +
    1.37 +  readonly attribute boolean isFIPSEnabled;
    1.38 +};
    1.39 +

mercurial