]>
Commit | Line | Data |
---|---|---|
af49ca27 LP |
1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ |
2 | ||
3 | /*** | |
4 | This file is part of systemd. | |
5 | ||
6 | Copyright 2016 Lennart Poettering | |
7 | ||
8 | systemd is free software; you can redistribute it and/or modify it | |
9 | under the terms of the GNU Lesser General Public License as published by | |
10 | the Free Software Foundation; either version 2.1 of the License, or | |
11 | (at your option) any later version. | |
12 | ||
13 | systemd is distributed in the hope that it will be useful, but | |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | Lesser General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU Lesser General Public License | |
19 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
20 | ***/ | |
21 | ||
22 | #include "conf-parser.h" | |
23 | #include "resolve-util.h" | |
24 | #include "string-table.h" | |
25 | ||
26 | DEFINE_CONFIG_PARSE_ENUM(config_parse_resolve_support, resolve_support, ResolveSupport, "Failed to parse resolve support setting"); | |
ad6c0475 | 27 | DEFINE_CONFIG_PARSE_ENUM(config_parse_dnssec_mode, dnssec_mode, DnssecMode, "Failed to parse DNSSEC mode setting"); |
af49ca27 LP |
28 | |
29 | static const char* const resolve_support_table[_RESOLVE_SUPPORT_MAX] = { | |
30 | [RESOLVE_SUPPORT_NO] = "no", | |
31 | [RESOLVE_SUPPORT_YES] = "yes", | |
32 | [RESOLVE_SUPPORT_RESOLVE] = "resolve", | |
33 | }; | |
34 | DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(resolve_support, ResolveSupport, RESOLVE_SUPPORT_YES); | |
ad6c0475 LP |
35 | |
36 | static const char* const dnssec_mode_table[_DNSSEC_MODE_MAX] = { | |
37 | [DNSSEC_NO] = "no", | |
38 | [DNSSEC_ALLOW_DOWNGRADE] = "allow-downgrade", | |
39 | [DNSSEC_YES] = "yes", | |
40 | }; | |
41 | DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(dnssec_mode, DnssecMode, DNSSEC_YES); |