#ifndef WIN32
extern "C" unsigned long openssl_thread_id(void)
{
- return reinterpret_cast<unsigned long>(pthread_self());
+ return (unsigned long)(pthread_self());
}
#endif
CRYPTO_set_locking_callback(NULL);
for (vector<Mutex*>::iterator i=g_openssl_locks.begin(); i!=g_openssl_locks.end(); i++)
delete (*i);
+ g_openssl_locks.clear();
}
void PlugManager::regFactory(const char* type, Factory* factory)