]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: load libcrypto/libssl lazily on first use and make them optional (#42681)
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Jun 2026 13:15:39 +0000 (14:15 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 13:15:39 +0000 (14:15 +0100)
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.

1  2 
src/resolve/resolved-dns-transaction.c
src/shared/ssl-util.h

Simple merge