diff options
author | Iwan Timmer <irtimmer@gmail.com> | 2019-02-18 20:41:46 +0100 |
---|---|---|
committer | Iwan Timmer <iwan.timmer@northwave.nl> | 2019-06-19 13:10:44 +0200 |
commit | 4310bfc20b84127e19bed68701caa3820c844682 (patch) | |
tree | ebe8291982d7903be331b1ef1136ebd58aef08e7 /src/shared/resolve-util.c | |
parent | aedf00a2bd39d70306d76a15fa535123d6d277fd (diff) | |
download | systemd-4310bfc20b84127e19bed68701caa3820c844682.tar.gz |
resolved: add strict mode for DNS-over-TLS
Add strict mode for DNS-over-TLS, which will require TLS support from the server. Closes #10755
Diffstat (limited to 'src/shared/resolve-util.c')
-rw-r--r-- | src/shared/resolve-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/resolve-util.c b/src/shared/resolve-util.c index a5d4a14344..b433cd24bc 100644 --- a/src/shared/resolve-util.c +++ b/src/shared/resolve-util.c @@ -25,5 +25,6 @@ DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(dnssec_mode, DnssecMode, DNSSEC_YES); static const char* const dns_over_tls_mode_table[_DNS_OVER_TLS_MODE_MAX] = { [DNS_OVER_TLS_NO] = "no", [DNS_OVER_TLS_OPPORTUNISTIC] = "opportunistic", + [DNS_OVER_TLS_YES] = "yes", }; -DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(dns_over_tls_mode, DnsOverTlsMode, _DNS_OVER_TLS_MODE_INVALID); +DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(dns_over_tls_mode, DnsOverTlsMode, DNS_OVER_TLS_YES); |