]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/validate-recursor.cc
Merge pull request #5589 from rgacogne/auth-cryptokeys-ro
[thirdparty/pdns.git] / pdns / validate-recursor.cc
1 #include "validate.hh"
2 #include "validate-recursor.hh"
3 #include "syncres.hh"
4 #include "logger.hh"
5
6 DNSSECMode g_dnssecmode{DNSSECMode::ProcessNoValidate};
7 bool g_dnssecLogBogus;
8
9 bool checkDNSSECDisabled() {
10 return warnIfDNSSECDisabled("");
11 }
12
13 bool warnIfDNSSECDisabled(const string& msg) {
14 if(g_dnssecmode == DNSSECMode::Off) {
15 if (!msg.empty())
16 L<<Logger::Warning<<msg<<endl;
17 return true;
18 }
19 return false;
20 }
21
22 vState increaseDNSSECStateCounter(const vState& state)
23 {
24 g_stats.dnssecResults[state]++;
25 return state;
26 }