blob: 405b4e823ee6ac2a4a348e2d6dfcc37c2fa2cf09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "knot/conf/conf.h"
#include "libknot/yparser/ypschema.h"
typedef struct knotd_conf_check_extra {
conf_t *conf;
knot_db_txn_t *txn;
const char *file_name;
size_t line;
bool check; /*!< Indication of the confio check mode. */
} knotd_conf_check_extra_t;
int conf_exec_callbacks(
knotd_conf_check_args_t *args
);
int mod_id_to_bin(
YP_TXT_BIN_PARAMS
);
int mod_id_to_txt(
YP_BIN_TXT_PARAMS
);
int rrtype_to_bin(
YP_TXT_BIN_PARAMS
);
int rrtype_to_txt(
YP_BIN_TXT_PARAMS
);
int rdname_to_bin(
YP_TXT_BIN_PARAMS
);
int rdname_to_txt(
YP_BIN_TXT_PARAMS
);
int check_ref(
knotd_conf_check_args_t *args
);
int check_ref_dflt(
knotd_conf_check_args_t *args
);
int check_listen(
knotd_conf_check_args_t *args
);
int check_xdp(
knotd_conf_check_args_t *args
);
int check_modref(
knotd_conf_check_args_t *args
);
int check_module_id(
knotd_conf_check_args_t *args
);
int check_server(
knotd_conf_check_args_t *args
);
int check_keystore(
knotd_conf_check_args_t *args
);
int check_policy(
knotd_conf_check_args_t *args
);
int check_key(
knotd_conf_check_args_t *args
);
int check_acl(
knotd_conf_check_args_t *args
);
int check_remote(
knotd_conf_check_args_t *args
);
int check_template(
knotd_conf_check_args_t *args
);
int check_zone(
knotd_conf_check_args_t *args
);
int include_file(
knotd_conf_check_args_t *args
);
int load_module(
knotd_conf_check_args_t *args
);
|