Skip to content

CDRIVER-4590 don't call ERR_load_BIO_strings for OpenSSL 3.0+ #1216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/libmongoc/src/mongoc/mongoc-openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ _mongoc_openssl_init (void)

SSL_library_init ();
SSL_load_error_strings ();
#if OPENSSL_VERSION_NUMBER < 0x30000000L
// See: https://www.openssl.org/docs/man3.0/man7/migration_guide.html#Deprecated-function-mappings
ERR_load_BIO_strings ();
#endif
OpenSSL_add_all_algorithms ();
#if OPENSSL_VERSION_NUMBER < 0x10100000L
_mongoc_openssl_thread_startup ();
Expand Down