Skip to content

Commit

Permalink
SSL_library_init() is deprecated as of openssl v1.1.0
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
michael-grunder committed Feb 6, 2025
1 parent 7d1ae11 commit 4e41608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ static int initOpensslLocks(void) {
#endif /* VALKEY_USE_CRYPTO_LOCKS */

int valkeyInitOpenSSL(void) {
SSL_library_init();
#ifdef VALKEY_USE_CRYPTO_LOCKS
SSL_library_init();
initOpensslLocks();
#endif

Expand Down

0 comments on commit 4e41608

Please sign in to comment.