summaryrefslogtreecommitdiffstats
path: root/security/manager/ssl
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-03-27 15:13:00 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-03-27 15:13:00 +0100
commit8ea2c0d5edd99760019daacee9356a6810ebf51a (patch)
tree04e4ba4b9ce72527f21ea6b832e1abbcfdf317d0 /security/manager/ssl
parent9c4aef8675858dde7d48fb565dedf5699a83e570 (diff)
downloadUXP-8ea2c0d5edd99760019daacee9356a6810ebf51a.tar
UXP-8ea2c0d5edd99760019daacee9356a6810ebf51a.tar.gz
UXP-8ea2c0d5edd99760019daacee9356a6810ebf51a.tar.lz
UXP-8ea2c0d5edd99760019daacee9356a6810ebf51a.tar.xz
UXP-8ea2c0d5edd99760019daacee9356a6810ebf51a.zip
Issue #1498 - Part 4: Remove clearPreloads.
Also tag #1280
Diffstat (limited to 'security/manager/ssl')
-rw-r--r--security/manager/ssl/nsISiteSecurityService.idl5
-rw-r--r--security/manager/ssl/nsSiteSecurityService.cpp11
-rw-r--r--security/manager/ssl/tests/unit/test_pinning_dynamic.js4
3 files changed, 0 insertions, 20 deletions
diff --git a/security/manager/ssl/nsISiteSecurityService.idl b/security/manager/ssl/nsISiteSecurityService.idl
index 6b2e47d38..6677792e8 100644
--- a/security/manager/ssl/nsISiteSecurityService.idl
+++ b/security/manager/ssl/nsISiteSecurityService.idl
@@ -152,11 +152,6 @@ interface nsISiteSecurityService : nsISupports
void clearAll();
/**
- * Removes all preloaded security state.
- */
- void clearPreloads();
-
- /**
* Returns an array of sha256-hashed key pins for the given domain, if any.
* If these pins also apply to subdomains of the given domain,
* aIncludeSubdomains will be true. Pins returned are only for non-built-in
diff --git a/security/manager/ssl/nsSiteSecurityService.cpp b/security/manager/ssl/nsSiteSecurityService.cpp
index ab2a3dd0b..8617d00fe 100644
--- a/security/manager/ssl/nsSiteSecurityService.cpp
+++ b/security/manager/ssl/nsSiteSecurityService.cpp
@@ -1101,17 +1101,6 @@ nsSiteSecurityService::ClearAll()
return mSiteStateStorage->Clear();
}
-NS_IMETHODIMP
-nsSiteSecurityService::ClearPreloads()
-{
- // Child processes are not allowed direct access to this.
- if (!XRE_IsParentProcess()) {
- MOZ_CRASH("Child process: no direct access to nsISiteSecurityService::ClearPreloads");
- }
-
- return mPreloadStateStorage->Clear();
-}
-
bool entryStateNotOK(SiteHPKPState& state, mozilla::pkix::Time& aEvalTime) {
return state.mState != SecurityPropertySet || state.IsExpired(aEvalTime) ||
state.mSHA256keys.Length() < 1;
diff --git a/security/manager/ssl/tests/unit/test_pinning_dynamic.js b/security/manager/ssl/tests/unit/test_pinning_dynamic.js
index 7333ad6b3..60e85e041 100644
--- a/security/manager/ssl/tests/unit/test_pinning_dynamic.js
+++ b/security/manager/ssl/tests/unit/test_pinning_dynamic.js
@@ -239,9 +239,5 @@ function checkPreloadClear() {
gSSService.clearAll();
checkFail(certFromFile('b.preload.example.com-badca'), "b.preload.example.com");
- // Check that the preloaded pins are cleared when we clear preloads
- gSSService.clearPreloads();
- checkOK(certFromFile('b.preload.example.com-badca'), "b.preload.example.com");
-
do_test_finished();
}