TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
OpenSSLCrypto.cpp File Reference
#include <OpenSSLCrypto.h>
#include <openssl/crypto.h>
#include <vector>
#include <thread>
#include <mutex>
+ Include dependency graph for OpenSSLCrypto.cpp:

Functions

static void lockingCallback (int mode, int type, const char *, int)
 
static void threadIdCallback (CRYPTO_THREADID *id)
 

Variables

std::vector< std::mutex * > cryptoLocks
 

Function Documentation

static void lockingCallback ( int  mode,
int  type,
const char *  ,
int   
)
static
27 {
28  if (mode & CRYPTO_LOCK)
29  cryptoLocks[type]->lock();
30  else
31  cryptoLocks[type]->unlock();
32 }
std::vector< std::mutex * > cryptoLocks
Definition: OpenSSLCrypto.cpp:24

+ Here is the caller graph for this function:

static void threadIdCallback ( CRYPTO_THREADID *  id)
static
35 {
36  CRYPTO_THREADID_set_numeric(id, std::hash<std::thread::id>()(std::this_thread::get_id()));
37 }

+ Here is the caller graph for this function:

Variable Documentation

std::vector<std::mutex*> cryptoLocks