mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Remove support for TLS session caches in TLSServerSocket.
This resolves #738
This commit is contained in:
parent
1bb41a8652
commit
e2e197cada
10 changed files with 15 additions and 43 deletions
|
|
@ -124,6 +124,8 @@ extern nsresult nsStringInputStreamConstructor(nsISupports*, REFNSIID, void**);
|
|||
#include "nsMemoryInfoDumper.h"
|
||||
#include "nsSecurityConsoleMessage.h"
|
||||
#include "nsMessageLoop.h"
|
||||
#include "nss.h"
|
||||
#include "ssl.h"
|
||||
|
||||
#include "nsStatusReporterManager.h"
|
||||
|
||||
|
|
@ -1046,6 +1048,17 @@ ShutdownXPCOM(nsIServiceManager* aServMgr)
|
|||
sInitializedJS = false;
|
||||
}
|
||||
|
||||
// At this point all networking threads should have been joined and the
|
||||
// component manager is shut down. Any remaining objects that hold NSS
|
||||
// resources (should!) have been released, so we can safely shut down NSS.
|
||||
if (NSS_IsInitialized()) {
|
||||
SSL_ClearSessionCache();
|
||||
// XXX: It would be nice if we can enforce this shutdown.
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
NS_WARNING("NSS Shutdown failed - some resources are still in use");
|
||||
}
|
||||
}
|
||||
|
||||
// Release our own singletons
|
||||
// Do this _after_ shutting down the component manager, because the
|
||||
// JS component loader will use XPConnect to call nsIModule::canUnload,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue