mirror of
https://github.com/mozilla-firefox/firefox
synced 2026-08-12 12:35:33 +00:00
TLS session-cache clearing moves from nsNSSComponent to mozilla::net::SSLTokensCache. ClearSessionCacheAndTokens() is the entry point everywhere except final XPCOM shutdown, which calls SSL_ClearSessionCache() directly. SSLTokensCacheService (@mozilla.org/network/ssl-tokens-cache;1, nsISSLTokensCache) exposes it to JS, replacing the equivalent nsINSSComponent methods; nsISSLTokensCacheTest moves to netwerk/base. Differential Revision: https://phabricator.services.mozilla.com/D307275
20 lines
758 B
Plaintext
20 lines
758 B
Plaintext
/* 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"
|
|
|
|
/**
|
|
* Test-only interface for SSLTokensCache round-trip tests.
|
|
* Implemented by mozilla::net::SSLTokensCacheService
|
|
* (@mozilla.org/network/ssl-tokens-cache;1) when ENABLE_TESTS is set.
|
|
*/
|
|
[scriptable, uuid(7b3c4e2a-1d8f-4a5b-9c6d-2e0f1a3b5c7d)]
|
|
interface nsISSLTokensCacheTest : nsISupports {
|
|
/** Returns the number of distinct cache keys currently in SSLTokensCache. */
|
|
uint32_t countSSLTokens();
|
|
|
|
/** Inserts a dummy token for aKey, for use by clearing tests. */
|
|
void putSSLTokenForTest(in ACString aKey);
|
|
};
|