]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: load libcrypto/libssl lazily on first use and make them optional 42681/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Sun, 21 Jun 2026 09:42:02 +0000 (10:42 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Jun 2026 09:56:10 +0000 (10:56 +0100)
commitc8c83bde019236df0ecde7e1839495d65d87b2c8
tree2b38d338fb12f65015a3c476bbd3b08f2295b385
parent34f71b81b6b65a5e1c4d648313db8c0e4d1e5335
resolved: load libcrypto/libssl lazily on first use and make them optional

Currently they are marked as required, as resolved aborts on startup if
dns-over-tls is built in, even if it is not enabled in the config.
Change initialization to be done lazily on first use, so that if the
config is not enabled, it never runs, and the libraries are never
dlopened, so they can be downgraded to recommends.
src/resolve/resolved-dns-dnssec.c
src/resolve/resolved-dns-transaction.c
src/resolve/resolved-dnstls.c
src/resolve/resolved-manager.c
src/resolve/resolved-util.h