]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: replace "answer_authenticated" bool by uint64_t query_flags field
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2020 16:14:16 +0000 (17:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Feb 2021 09:03:43 +0000 (10:03 +0100)
commit6f055e43b817b66e6d4f6e4022f0a115dc35651b
treecf9268a61926b62a850abc7c8cbc418c9427b8f2
parent0e703bb48dbecdcbbf14cfdfb36ed2618cb597fd
resolved: replace "answer_authenticated" bool by uint64_t query_flags field

Let's use the same flags type we use for client communication, i.e.
instead of "bool answer_authenticated", let's use "uint64_t
answer_query_flags", with the SD_RESOLVED_AUTHENTICATED flag.

This is mostly just search/replace, i.e. a refactoring, no change in
behaviour.

This becomes useful once in a later commit SD_RESOLVED_CONFIDENTIAL is
added to indicate resolution that either were encrypted (DNS-over-TLS)
or never left the local system.
src/resolve/resolved-dns-cache.c
src/resolve/resolved-dns-cache.h
src/resolve/resolved-dns-query.c
src/resolve/resolved-dns-query.h
src/resolve/resolved-dns-transaction.c
src/resolve/resolved-dns-transaction.h