зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1344441 - Move various Necko IDLs that really ought to be PSM IDLs. r=keeler,mcmanus
These IDLs conceptually are PSM APIs, and are implemented in PSM as well. nsICryptoFIPSInfo.idl is similar but is removed instead because: 1. It's unused even by addons. 2. The only thing it provides is also available through nsIPKCS11ModuleDB.idl. MozReview-Commit-ID: K8R0wDAhjLq --HG-- rename : netwerk/base/nsICryptoHMAC.idl => security/manager/ssl/nsICryptoHMAC.idl rename : netwerk/base/nsICryptoHash.idl => security/manager/ssl/nsICryptoHash.idl rename : netwerk/base/nsINSSErrorsService.idl => security/manager/ssl/nsINSSErrorsService.idl extra : rebase_source : 3eca83901e14cea714d402046303790d283cff74
This commit is contained in:
Родитель
ca4a468768
Коммит
6b0596a14c
|
@ -35,9 +35,6 @@ XPIDL_SOURCES += [
|
|||
'nsIClassifiedChannel.idl',
|
||||
'nsIClassOfService.idl',
|
||||
'nsIContentSniffer.idl',
|
||||
'nsICryptoFIPSInfo.idl',
|
||||
'nsICryptoHash.idl',
|
||||
'nsICryptoHMAC.idl',
|
||||
'nsIDashboard.idl',
|
||||
'nsIDashboardEventNotifier.idl',
|
||||
'nsIDeprecationWarner.idl',
|
||||
|
@ -72,7 +69,6 @@ XPIDL_SOURCES += [
|
|||
'nsINetworkPredictor.idl',
|
||||
'nsINetworkPredictorVerifier.idl',
|
||||
'nsINetworkProperties.idl',
|
||||
'nsINSSErrorsService.idl',
|
||||
'nsINullChannel.idl',
|
||||
'nsIParentChannel.idl',
|
||||
'nsIParentRedirectingChannel.idl',
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/* 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/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
[scriptable, uuid(99e81922-7318-4431-b3aa-78b3cb4119bb)]
|
||||
interface nsICryptoFIPSInfo : nsISupports
|
||||
{
|
||||
readonly attribute boolean isFIPSModeActive;
|
||||
};
|
||||
|
||||
%{C++
|
||||
#define NS_CRYPTO_FIPSINFO_SERVICE_CONTRACTID "@mozilla.org/crypto/fips-info-service;1"
|
||||
%}
|
|
@ -17,11 +17,14 @@ XPIDL_SOURCES += [
|
|||
'nsICertOverrideService.idl',
|
||||
'nsIClientAuthDialogs.idl',
|
||||
'nsIContentSignatureVerifier.idl',
|
||||
'nsICryptoHash.idl',
|
||||
'nsICryptoHMAC.idl',
|
||||
'nsIDataSignatureVerifier.idl',
|
||||
'nsIGenKeypairInfoDlg.idl',
|
||||
'nsIKeygenThread.idl',
|
||||
'nsIKeyModule.idl',
|
||||
'nsILocalCertService.idl',
|
||||
'nsINSSErrorsService.idl',
|
||||
'nsINSSU2FToken.idl',
|
||||
'nsINSSVersion.idl',
|
||||
'nsIPK11Token.idl',
|
||||
|
|
|
@ -246,7 +246,6 @@ static const mozilla::Module::ContractIDEntry kNSSContracts[] = {
|
|||
{ NS_CRYPTO_HASH_CONTRACTID, &kNS_CRYPTO_HASH_CID },
|
||||
{ NS_CRYPTO_HMAC_CONTRACTID, &kNS_CRYPTO_HMAC_CID },
|
||||
{ "@mozilla.org/uriloader/psm-external-content-listener;1", &kNS_PSMCONTENTLISTEN_CID },
|
||||
{ NS_CRYPTO_FIPSINFO_SERVICE_CONTRACTID, &kNS_PKCS11MODULEDB_CID },
|
||||
{ NS_NTLMAUTHMODULE_CONTRACTID, &kNS_NTLMAUTHMODULE_CID },
|
||||
{ NS_KEYMODULEOBJECT_CONTRACTID, &kNS_KEYMODULEOBJECT_CID },
|
||||
{ NS_KEYMODULEOBJECTFACTORY_CONTRACTID, &kNS_KEYMODULEOBJECTFACTORY_CID },
|
||||
|
|
|
@ -360,7 +360,7 @@ nsPKCS11Module::ListSlots(nsISimpleEnumerator** _retval)
|
|||
return array->Enumerate(_retval);
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsPKCS11ModuleDB, nsIPKCS11ModuleDB, nsICryptoFIPSInfo)
|
||||
NS_IMPL_ISUPPORTS(nsPKCS11ModuleDB, nsIPKCS11ModuleDB)
|
||||
|
||||
nsPKCS11ModuleDB::nsPKCS11ModuleDB()
|
||||
{
|
||||
|
@ -565,9 +565,3 @@ nsPKCS11ModuleDB::GetIsFIPSEnabled(bool* aIsFIPSEnabled)
|
|||
*aIsFIPSEnabled = PK11_IsFIPS();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPKCS11ModuleDB::GetIsFIPSModeActive(bool* aIsFIPSModeActive)
|
||||
{
|
||||
return GetIsFIPSEnabled(aIsFIPSModeActive);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#define nsPKCS11Slot_h
|
||||
|
||||
#include "ScopedNSSTypes.h"
|
||||
#include "nsICryptoFIPSInfo.h"
|
||||
#include "nsIPKCS11Module.h"
|
||||
#include "nsIPKCS11ModuleDB.h"
|
||||
#include "nsIPKCS11Slot.h"
|
||||
|
@ -64,13 +63,11 @@ private:
|
|||
};
|
||||
|
||||
class nsPKCS11ModuleDB : public nsIPKCS11ModuleDB
|
||||
, public nsICryptoFIPSInfo
|
||||
, public nsNSSShutDownObject
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIPKCS11MODULEDB
|
||||
NS_DECL_NSICRYPTOFIPSINFO
|
||||
|
||||
nsPKCS11ModuleDB();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче