]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
af49ca27 LP |
2 | /*** |
3 | This file is part of systemd. | |
4 | ||
5 | Copyright 2016 Lennart Poettering | |
af49ca27 LP |
6 | ***/ |
7 | ||
8 | #include "conf-parser.h" | |
9 | #include "resolve-util.h" | |
10 | #include "string-table.h" | |
11 | ||
12 | DEFINE_CONFIG_PARSE_ENUM(config_parse_resolve_support, resolve_support, ResolveSupport, "Failed to parse resolve support setting"); | |
ad6c0475 | 13 | DEFINE_CONFIG_PARSE_ENUM(config_parse_dnssec_mode, dnssec_mode, DnssecMode, "Failed to parse DNSSEC mode setting"); |
af49ca27 LP |
14 | |
15 | static const char* const resolve_support_table[_RESOLVE_SUPPORT_MAX] = { | |
16 | [RESOLVE_SUPPORT_NO] = "no", | |
17 | [RESOLVE_SUPPORT_YES] = "yes", | |
18 | [RESOLVE_SUPPORT_RESOLVE] = "resolve", | |
19 | }; | |
20 | DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(resolve_support, ResolveSupport, RESOLVE_SUPPORT_YES); | |
ad6c0475 LP |
21 | |
22 | static const char* const dnssec_mode_table[_DNSSEC_MODE_MAX] = { | |
23 | [DNSSEC_NO] = "no", | |
24 | [DNSSEC_ALLOW_DOWNGRADE] = "allow-downgrade", | |
25 | [DNSSEC_YES] = "yes", | |
26 | }; | |
27 | DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(dnssec_mode, DnssecMode, DNSSEC_YES); |