Skip to content

Commit

Permalink
Do not use OPENSSL_config
Browse files Browse the repository at this point in the history
Switch to using CONF_modules_load_file instead of OPENSSL_config, which
was deprecated in OpenSSL 1.1 and would produce build warnings.
  • Loading branch information
spbnick committed Dec 7, 2016
1 parent 508f69a commit 8d97195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,7 @@ void tls_global_init(void)
SSL_load_error_strings(); /* readable error messages (examples show call before library_init) */
SSL_library_init(); /* initialize library */
OpenSSL_add_all_algorithms(); /* required for SHA2 in OpenSSL < 0.9.8o and 1.0.0.a */
OPENSSL_config(NULL);
CONF_modules_load_file(NULL, NULL, 0);

/*
* Initialize the index for the certificates.
Expand Down

0 comments on commit 8d97195

Please sign in to comment.