thread safe eutex in activate_openssl

This commit is contained in:
Stephen Lombardo 2010-06-09 14:39:25 -04:00
parent c0cf162583
commit 4f320b6336

View File

@ -71,9 +71,11 @@ typedef struct {
} codec_ctx;
static void activate_openssl() {
sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
if(EVP_get_cipherbyname(CIPHER) == NULL) {
OpenSSL_add_all_algorithms();
}
sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
}
/*