Reset OpenSSL external init flag during deactivate

This commit is contained in:
Nick Parker 2016-11-09 10:15:40 -06:00
parent 35aa9e0968
commit 6fec5c62c4
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ static int sqlcipher_openssl_deactivate(void *ctx) {
is called by SQLCipher internally. This should prevent SQLCipher from
"cleaning up" openssl when it was initialized externally by the program */
EVP_cleanup();
} else {
openssl_external_init = 0;
}
#ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND
sqlite3_mutex_free(openssl_rand_mutex);