diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-19 21:48:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-19 21:56:54 +0100 |
commit | c69fa7e3c44240bedc0ee1bd89fecf954783ac85 (patch) | |
tree | 42c7490e0639a76a2a56227ea56a928c2a3bca58 /src/resolve/resolved-bus.c | |
parent | d2ec6608b93e3f74345c737637af24e9e75c209b (diff) |
resolved: rework DNSSECSupported property
Not only report whether the server actually supports DNSSEC, but also first check whether DNSSEC is actually enabled
for it in our local configuration.
Also, export a per-link DNSSECSupported property in addition to the existing manager-wide property.
Diffstat (limited to 'src/resolve/resolved-bus.c')
-rw-r--r-- | src/resolve/resolved-bus.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/resolve/resolved-bus.c b/src/resolve/resolved-bus.c index 666135660f..9110ea52a6 100644 --- a/src/resolve/resolved-bus.c +++ b/src/resolve/resolved-bus.c @@ -1309,25 +1309,11 @@ static int bus_property_get_dnssec_supported( sd_bus_error *error) { Manager *m = userdata; - DnsServer *server; - bool supported = true; - Iterator i; - Link *l; assert(reply); assert(m); - server = manager_get_dns_server(m); - if (server) - supported = supported && dns_server_dnssec_supported(server); - - HASHMAP_FOREACH(l, m->links, i) { - server = link_get_dns_server(l); - if (server) - supported = supported && dns_server_dnssec_supported(server); - } - - return sd_bus_message_append(reply, "b", supported); + return sd_bus_message_append(reply, "b", manager_dnssec_supported(m)); } static int bus_method_reset_statistics(sd_bus_message *message, void *userdata, sd_bus_error *error) { |