]> git.ipfire.org Git - thirdparty/pdns.git/blame - pdns/validate-recursor.cc
rec: Don't account chained queries more than once
[thirdparty/pdns.git] / pdns / validate-recursor.cc
CommitLineData
dad05827 1#include "syncres.hh"
b3f0ed10 2#include "validate.hh"
3#include "validate-recursor.hh"
3e9c6c0a 4#include "logger.hh"
b3f0ed10 5
a6415142 6DNSSECMode g_dnssecmode{DNSSECMode::ProcessNoValidate};
c87e1876 7bool g_dnssecLogBogus;
12ce523e 8
4865b6cb
PL
9bool checkDNSSECDisabled() {
10 return warnIfDNSSECDisabled("");
11}
12
13bool 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;
e48c6b8a
PL
20}
21
0c43f455 22vState increaseDNSSECStateCounter(const vState& state)
849fe8d2
PL
23{
24 g_stats.dnssecResults[state]++;
25 return state;
26}