summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-def.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-11-10 18:06:19 +0100
committerLennart Poettering <lennart@poettering.net>2021-02-16 10:03:43 +0100
commit43fc4baa26ccf3bc5ee65d4c6fa4890084632f2b (patch)
tree48a1349811c1c8e62c10e7dada6f6a3a99bcc2f7 /src/resolve/resolved-def.h
parentresolved: replace "answer_authenticated" bool by uint64_t query_flags field (diff)
downloadsystemd-43fc4baa26ccf3bc5ee65d4c6fa4890084632f2b.tar.xz
systemd-43fc4baa26ccf3bc5ee65d4c6fa4890084632f2b.zip
resolved: add "confidential" flag for replies passed to clients
Let's introduce a new flag that indicates whether the response was acquired in "confidential" mode, i.e. via encrypted DNS-over-TLS, or synthesized locally. Fixes: #12859
Diffstat (limited to 'src/resolve/resolved-def.h')
-rw-r--r--src/resolve/resolved-def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve/resolved-def.h b/src/resolve/resolved-def.h
index 133cf0556f..cdcd06d820 100644
--- a/src/resolve/resolved-def.h
+++ b/src/resolve/resolved-def.h
@@ -52,6 +52,9 @@
/* Input: If reply is answered from cache, the TTLs will be adjusted by age of cache entry */
#define SD_RESOLVED_CLAMP_TTL (UINT64_C(1) << 17)
+/* Output: Result was only sent via encrypted channels, or never left this system */
+#define SD_RESOLVED_CONFIDENTIAL (UINT64_C(1) << 18)
+
#define SD_RESOLVED_LLMNR (SD_RESOLVED_LLMNR_IPV4|SD_RESOLVED_LLMNR_IPV6)
#define SD_RESOLVED_MDNS (SD_RESOLVED_MDNS_IPV4|SD_RESOLVED_MDNS_IPV6)
#define SD_RESOLVED_PROTOCOLS_ALL (SD_RESOLVED_MDNS|SD_RESOLVED_LLMNR|SD_RESOLVED_DNS)