Skip to content

Commit 4e41608

Browse files
SSL_library_init() is deprecated as of openssl v1.1.0
According to the openss docs `SSL_library_init()` is deprecated as of openssl v1.1.0. We still need to call it when using crypto locks because we define that if openssl is < 1.1.0. See: https://manpages.debian.org/experimental/libssl-doc/SSL_library_init.3ssl.en.html See: https://docs.openssl.org/3.3/man3/OPENSSL_init_ssl/ Signed-off-by: michael-grunder <[email protected]>
1 parent 7d1ae11 commit 4e41608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ static int initOpensslLocks(void) {
166166
#endif /* VALKEY_USE_CRYPTO_LOCKS */
167167

168168
int valkeyInitOpenSSL(void) {
169-
SSL_library_init();
170169
#ifdef VALKEY_USE_CRYPTO_LOCKS
170+
SSL_library_init();
171171
initOpensslLocks();
172172
#endif
173173

0 commit comments

Comments
 (0)