]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved-dnstls: remove deprecated openssl functions
authorNorbert Lange <nolange79@gmail.com>
Tue, 26 Mar 2024 23:29:14 +0000 (00:29 +0100)
committerNorbert Lange <nolange79@gmail.com>
Thu, 18 Apr 2024 07:23:15 +0000 (09:23 +0200)
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.

src/resolve/resolved-dnstls-openssl.c

index fbcee7fc634a80e35edbc1fe10589a3a0d243659..3112ccb677b75041418706a2c0eeca2e011fd719 100644 (file)
@@ -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;