SL-15902 Cleanup gSecAPIHandler

master
Mnikolenko ProductEngine 2021-09-03 22:21:29 +03:00
parent adb724564d
commit 8c7db0ad6c
4 changed files with 11 additions and 4 deletions

View File

@ -270,9 +270,6 @@ namespace LLHttp
{
namespace
{
typedef boost::shared_ptr<LLMutex> LLMutex_ptr;
std::vector<LLMutex_ptr> sSSLMutex;
CURL *getCurlTemplateHandle()
{
static CURL *curlpTemplateHandle = NULL;

View File

@ -2006,7 +2006,9 @@ bool LLAppViewer::cleanup()
if (LLConversationLog::instanceExists())
{
LLConversationLog::instance().cache();
}
}
clearSecHandler();
if (mPurgeCacheOnExit)
{

View File

@ -75,6 +75,12 @@ void initializeSecHandler()
}
}
void clearSecHandler()
{
gSecAPIHandler = NULL;
gHandlerMap.clear();
}
// start using a given security api handler. If the string is empty
// the default is used
LLPointer<LLSecAPIHandler> getSecHandler(const std::string& handler_type)

View File

@ -533,6 +533,8 @@ public:
};
void initializeSecHandler();
void clearSecHandler();
// retrieve a security api depending on the api type
LLPointer<LLSecAPIHandler> getSecHandler(const std::string& handler_type);