SL-15902 Cleanup gSecAPIHandler
parent
adb724564d
commit
8c7db0ad6c
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -2006,7 +2006,9 @@ bool LLAppViewer::cleanup()
|
|||
if (LLConversationLog::instanceExists())
|
||||
{
|
||||
LLConversationLog::instance().cache();
|
||||
}
|
||||
}
|
||||
|
||||
clearSecHandler();
|
||||
|
||||
if (mPurgeCacheOnExit)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue