]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/validate-recursor.hh
poll events are bitmasks, not values
[thirdparty/pdns.git] / pdns / validate-recursor.hh
index 5604ac53386a950c84ff2fb462013b47b5fb616e..88ed15e66c0832c04bfeeb73bbc8a331586e7d73 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 #pragma once
-#include "dnsparser.hh"
 #include "namespaces.hh"
 #include "validate.hh"
-
-vState validateRecords(const vector<DNSRecord>& recs);
+#include "logger.hh"
 
 /* Off: 3.x behaviour, we do no DNSSEC, no EDNS
    ProcessNoValidate: we gather DNSSEC records on all queries, but we will never validate
@@ -36,3 +34,8 @@ vState validateRecords(const vector<DNSRecord>& recs);
 enum class DNSSECMode { Off, Process, ProcessNoValidate, ValidateForLog, ValidateAll };
 extern DNSSECMode g_dnssecmode;
 extern bool g_dnssecLogBogus;
+
+bool checkDNSSECDisabled();
+bool warnIfDNSSECDisabled(const string& msg);
+vState increaseDNSSECStateCounter(const vState& state);
+bool updateTrustAnchorsFromFile(const std::string &fname, map<DNSName, dsmap_t> &dsAnchors);