Files
firefox/netwerk/base/nsISSLTokensCacheTest.idl
Lars Eggert eeb6657127 Bug 2047518 - Move SSL session-cache clearing from nsNSSComponent into necko r=necko-reviewers,kershaw,nss-reviewers,keeler
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
2026-07-15 13:07:50 +00:00

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);
};