The functions SSL_library_init(), SSL_load_error_strings() and
OpenSSL_add_ssl_algorithms() are deprecated in OpenSSL 1.1.0.
Instead the library auto-initializes. Though it is possible to
call OPENSSL_init_crypto() and OPENSSL_init_ssl() for explicit
control over initialization, for now there is no apparent reason
to do so. This may change, so explicit initialization might yet
become necessary.
*/
tls_check_version();
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
/*
* Initialize the OpenSSL library by the book! To start with, we must
* initialize the algorithms. We want cleartext error messages instead of
*/
SSL_load_error_strings();
OpenSSL_add_ssl_algorithms();
+#endif
/*
* Create an application data index for SSL objects, so that we can
tls_param_init();
tls_check_version();
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
SSL_load_error_strings();
SSL_library_init();
+#endif
if (!tls_validate_digest(LN_sha1))
msg_fatal("%s digest algorithm not available", LN_sha1);
*/
tls_check_version();
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
/*
* Initialize the OpenSSL library by the book! To start with, we must
* initialize the algorithms. We want cleartext error messages instead of
*/
SSL_load_error_strings();
OpenSSL_add_ssl_algorithms();
+#endif
/*
* First validate the protocols. If these are invalid, we can't continue.