8000 Reset OpenSSL external init flag during deactivate · githubzhaoliang/sqlcipher@6fec5c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6fec5c6

Browse files
Reset OpenSSL external init flag during deactivate
1 parent 35aa9e0 commit 6fec5c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/crypto_openssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ static int sqlcipher_openssl_deactivate(void *ctx) {
117117
is called by SQLCipher internally. This should prevent SQLCipher from
118118
"cleaning up" openssl when it was initialized externally by the program */
119119
EVP_cleanup();
120+
} else {
121+
openssl_external_init = 0;
120122
}
121123
#ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND
122124
sqlite3_mutex_free(openssl_rand_mutex);

0 commit comments

Comments
 (0)
0