From: Norbert Lange Date: Tue, 26 Mar 2024 23:29:14 +0000 (+0100) Subject: resolved-dnstls: remove deprecated openssl functions X-Git-Tag: v256-rc1~117^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2219ccc1825ed5983289882b3dc51eee5331146a;p=thirdparty%2Fsystemd.git resolved-dnstls: remove deprecated openssl functions There are replacements available in OpenSLL 1.1.0, but those should not be needed. To quote the docs: > As of version 1.1.0 OpenSSL will automatically allocate all resources > that it needs so no explicit initialisation is required. > Similarly it will also automatically deinitialise as required. --- diff --git a/src/resolve/resolved-dnstls-openssl.c b/src/resolve/resolved-dnstls-openssl.c index fbcee7fc634..3112ccb677b 100644 --- a/src/resolve/resolved-dnstls-openssl.c +++ b/src/resolve/resolved-dnstls-openssl.c @@ -392,9 +392,6 @@ int dnstls_manager_init(Manager *manager) { assert(manager); - ERR_load_crypto_strings(); - SSL_load_error_strings(); - manager->dnstls_data.ctx = SSL_CTX_new(TLS_client_method()); if (!manager->dnstls_data.ctx) return -ENOMEM;