Reset OpenSSL external init flag during deactivate
This commit is contained in:
parent
35aa9e0968
commit
6fec5c62c4
|
@ -117,6 +117,8 @@ static int sqlcipher_openssl_deactivate(void *ctx) {
|
||||||
is called by SQLCipher internally. This should prevent SQLCipher from
|
is called by SQLCipher internally. This should prevent SQLCipher from
|
||||||
"cleaning up" openssl when it was initialized externally by the program */
|
"cleaning up" openssl when it was initialized externally by the program */
|
||||||
EVP_cleanup();
|
EVP_cleanup();
|
||||||
|
} else {
|
||||||
|
openssl_external_init = 0;
|
||||||
}
|
}
|
||||||
#ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND
|
#ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND
|
||||||
sqlite3_mutex_free(openssl_rand_mutex);
|
sqlite3_mutex_free(openssl_rand_mutex);
|
||||||
|
|
Loading…
Reference in New Issue