]>
Commit | Line | Data |
---|---|---|
b3f0ed10 | 1 | #include "validate.hh" |
2 | #include "validate-recursor.hh" | |
3 | #include "syncres.hh" | |
3e9c6c0a | 4 | #include "logger.hh" |
b3f0ed10 | 5 | |
a6415142 | 6 | DNSSECMode g_dnssecmode{DNSSECMode::ProcessNoValidate}; |
c87e1876 | 7 | bool g_dnssecLogBogus; |
12ce523e | 8 | |
4865b6cb PL |
9 | bool checkDNSSECDisabled() { |
10 | return warnIfDNSSECDisabled(""); | |
11 | } | |
12 | ||
13 | bool warnIfDNSSECDisabled(const string& msg) { | |
14 | if(g_dnssecmode == DNSSECMode::Off) { | |
15 | if (!msg.empty()) | |
e6a9dde5 | 16 | g_log<<Logger::Warning<<msg<<endl; |
4865b6cb PL |
17 | return true; |
18 | } | |
19 | return false; | |
e48c6b8a PL |
20 | } |
21 | ||
0c43f455 | 22 | vState increaseDNSSECStateCounter(const vState& state) |
849fe8d2 PL |
23 | { |
24 | g_stats.dnssecResults[state]++; | |
25 | return state; | |
26 | } |