resolved: log error messages for openssl/gnutls context creation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 Nov 2024 11:58:12 +0000 (12:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Nov 2024 10:59:29 +0000 (11:59 +0100)
commitee95e86ae163e436384f1b782a77a7e18deba890
tree7272667034c021285b4ada2deab64bd6fbf9e602
parenta791fea0d682cb2eb0555fdb32b340fecb042796
resolved: log error messages for openssl/gnutls context creation

In https://bugzilla.redhat.com/show_bug.cgi?id=2322937 we're getting
an error message:
Okt 29 22:21:03 fedora systemd-resolved[29311]: Could not create manager: Cannot allocate memory
I expect that this actually comes from dnstls_manager_init(), the
openssl version. But without real logs it's hard to know for sure.

Use EIO instead of ENOMEM, because the problem is unlikely to be actually
related to memory.
src/resolve/resolved-dnstls-gnutls.c
src/resolve/resolved-dnstls-openssl.c