5 #ifdef SERVER_MONITORING
10 #if defined _DEBUG && ! defined (ONLY_LOCAL_PROXY)
15 #if OPENSSL_VERSION_NUMBER < 0x10100000L
18 if (mode & CRYPTO_LOCK)
33 #ifndef ONLY_LOCAL_PROXY
45 XMLPlatformUtils::Initialize();
48 #if !defined ONLY_LOCAL_PROXY || defined INLUDE_MIDDLE_MIX
49 #if OPENSSL_VERSION_NUMBER < 0x10100000L
52 OPENSSL_init_ssl(0, NULL);
55 #if OPENSSL_VERSION_NUMBER < 0x10100000L
56 OpenSSL_add_all_algorithms();
63 #if defined _DEBUG && ! defined (ONLY_LOCAL_PROXY)
65 CAThread::setThreadList(m_pThreadList);
75 err=WSAStartup(0x0202,&wsadata);
93 #if OPENSSL_VERSION_NUMBER < 0x10100000L
94 CRYPTO_set_locking_callback(NULL);
101 #ifdef SERVER_MONITORING
105 #if !defined MXML_DOM
106 XMLPlatformUtils::Terminate();
109 #if defined _DEBUG && ! defined (ONLY_LOCAL_PROXY)
110 if(m_pThreadList != NULL)
112 int nrOfThreads = m_pThreadList->getSize();
113 CAMsg::printMsg(LOG_INFO,
"After cleanup %d threads listed.\n", nrOfThreads);
116 m_pThreadList->showAll();
118 delete m_pThreadList;
119 m_pThreadList = NULL;
unsigned long openssl_get_thread_id(void)
Callback used by openssl to identify a thread.
static SINT32 cleanup()
do necessary cleanups of libraries etc.
static CAMutex * m_pOpenSSLMutexes
static CACmdLnOptions * m_pglobalOptions
static void openssl_locking_callback(int mode, int type, char *, int)
Callbackfunction for locking required by OpenSSL <1.1.
static SINT32 init()
do necessary initialisations of libraries etc.
static SINT32 printMsg(UINT32 typ, const char *format,...)
Writes a given message to the log.
static thread_id_t getSelfID()
void cleanup()
do necessary cleanups of libraries etc.