File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,9 @@ static int sqlcipher_openssl_activate(void *ctx) {
110
110
111
111
if (openssl_init_count == 0 && openssl_external_init == 0 ) {
112
112
/* if the library was not externally initialized, then should be now */
113
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L
113
114
OpenSSL_add_all_algorithms ();
115
+ #endif
114
116
}
115
117
116
118
#ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND
@@ -139,7 +141,9 @@ static int sqlcipher_openssl_deactivate(void *ctx) {
139
141
Note: this code will only be reached if OpensSSL_add_all_algorithms()
140
142
is called by SQLCipher internally. This should prevent SQLCipher from
141
143
"cleaning up" openssl when it was initialized externally by the program */
144
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L
142
145
EVP_cleanup ();
146
+ #endif
143
147
} else {
144
148
openssl_external_init = 0 ;
145
149
}
You can’t perform that action at this time.
0 commit comments