summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-10 23:09:26 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-01 14:47:16 +0200
commitddaee7c1be914cc28a28cbe27e5922215b3b2e6f (patch)
treecb8930a9ba1ed0ef574b7c2be9035b1a51201902 /security
parentc030a50228349fa1b2c0b4fbc2e83752324dd4d7 (diff)
downloaduxp-ddaee7c1be914cc28a28cbe27e5922215b3b2e6f.tar.gz
Issue #1830 - Remove --disable-xul config and conditionals.
Diffstat (limited to 'security')
-rw-r--r--security/manager/moz.build5
-rw-r--r--security/manager/ssl/moz.build13
-rw-r--r--security/manager/ssl/nsNSSModule.cpp10
3 files changed, 5 insertions, 23 deletions
diff --git a/security/manager/moz.build b/security/manager/moz.build
index 93f4b56435..e94be25cdf 100644
--- a/security/manager/moz.build
+++ b/security/manager/moz.build
@@ -3,7 +3,4 @@
# 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/.
-DIRS += ['ssl', 'locales']
-
-if CONFIG['MOZ_XUL']:
- DIRS += ['pki']
+DIRS += ['ssl', 'locales', 'pki']
diff --git a/security/manager/ssl/moz.build b/security/manager/ssl/moz.build
index 876b0e8cff..a8011f3c86 100644
--- a/security/manager/ssl/moz.build
+++ b/security/manager/ssl/moz.build
@@ -14,6 +14,7 @@ XPIDL_SOURCES += [
'nsICertBlocklist.idl',
'nsICertificateDialogs.idl',
'nsICertOverrideService.idl',
+ 'nsICertTree.idl',
'nsIClientAuthDialogs.idl',
'nsIContentSignatureVerifier.idl',
'nsIDataSignatureVerifier.idl',
@@ -44,11 +45,6 @@ XPIDL_SOURCES += [
'nsIX509CertValidity.idl',
]
-if CONFIG['MOZ_XUL']:
- XPIDL_SOURCES += [
- 'nsICertTree.idl',
- ]
-
XPIDL_MODULE = 'pipnss'
EXTRA_JS_MODULES.psm += [
@@ -151,10 +147,9 @@ if not CONFIG['MOZ_NO_SMART_CARDS']:
'nsSmartCardMonitor.cpp',
]
-if CONFIG['MOZ_XUL']:
- UNIFIED_SOURCES += [
- 'nsCertTree.cpp',
- ]
+UNIFIED_SOURCES += [
+ 'nsCertTree.cpp',
+]
UNIFIED_SOURCES += [
'md4.c',
diff --git a/security/manager/ssl/nsNSSModule.cpp b/security/manager/ssl/nsNSSModule.cpp
index e43d7d23d6..9012bb33fa 100644
--- a/security/manager/ssl/nsNSSModule.cpp
+++ b/security/manager/ssl/nsNSSModule.cpp
@@ -39,9 +39,7 @@
#include "nsTLSSocketProvider.h"
#include "nsXULAppAPI.h"
-#ifdef MOZ_XUL
#include "nsCertTree.h"
-#endif
#define NS_IS_PROCESS_DEFAULT \
(GeckoProcessType_Default == XRE_GetProcessType())
@@ -196,9 +194,7 @@ NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsNSSCertificateDB)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR_BYPROCESS(nssEnsureOnChromeOnly,
nsNSSCertList,
nsNSSCertListFakeTransport)
-#ifdef MOZ_XUL
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsCertTree)
-#endif
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsPkcs11)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nssEnsure, nsNTLMAuthModule, InitTest)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsureChromeOrContent, nsCryptoHash)
@@ -232,9 +228,7 @@ NS_DEFINE_NAMED_CID(NS_X509CERT_CID);
NS_DEFINE_NAMED_CID(NS_X509CERTDB_CID);
NS_DEFINE_NAMED_CID(NS_X509CERTLIST_CID);
NS_DEFINE_NAMED_CID(NS_FORMPROCESSOR_CID);
-#ifdef MOZ_XUL
NS_DEFINE_NAMED_CID(NS_CERTTREE_CID);
-#endif
NS_DEFINE_NAMED_CID(NS_PKCS11_CID);
NS_DEFINE_NAMED_CID(NS_CRYPTO_HASH_CID);
NS_DEFINE_NAMED_CID(NS_CRYPTO_HMAC_CID);
@@ -267,9 +261,7 @@ static const mozilla::Module::CIDEntry kNSSCIDs[] = {
{ &kNS_X509CERTDB_CID, false, nullptr, nsNSSCertificateDBConstructor },
{ &kNS_X509CERTLIST_CID, false, nullptr, nsNSSCertListConstructor },
{ &kNS_FORMPROCESSOR_CID, false, nullptr, nsKeygenFormProcessor::Create },
-#ifdef MOZ_XUL
{ &kNS_CERTTREE_CID, false, nullptr, nsCertTreeConstructor },
-#endif
{ &kNS_PKCS11_CID, false, nullptr, nsPkcs11Constructor },
{ &kNS_CRYPTO_HASH_CID, false, nullptr, nsCryptoHashConstructor },
{ &kNS_CRYPTO_HMAC_CID, false, nullptr, nsCryptoHMACConstructor },
@@ -305,9 +297,7 @@ static const mozilla::Module::ContractIDEntry kNSSContracts[] = {
{ NS_X509CERTDB_CONTRACTID, &kNS_X509CERTDB_CID },
{ NS_X509CERTLIST_CONTRACTID, &kNS_X509CERTLIST_CID },
{ NS_FORMPROCESSOR_CONTRACTID, &kNS_FORMPROCESSOR_CID },
-#ifdef MOZ_XUL
{ NS_CERTTREE_CONTRACTID, &kNS_CERTTREE_CID },
-#endif
{ NS_PKCS11_CONTRACTID, &kNS_PKCS11_CID },
{ NS_CRYPTO_HASH_CONTRACTID, &kNS_CRYPTO_HASH_CID },
{ NS_CRYPTO_HMAC_CONTRACTID, &kNS_CRYPTO_HMAC_CID },