From 1a5ac5d762a653d4cf4a670a82064ecbca6ec552 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 15 Jun 2015 12:54:29 +0300 Subject: [PATCH] Add accessor for d_tsigkeyname --- pdns/dnspacket.cc | 4 ++++ pdns/dnspacket.hh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index faffcc522..949da4b04 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -696,3 +696,7 @@ bool checkForCorrectTSIG(const DNSPacket* q, UeberBackend* B, DNSName* keyname, return result; } + +const string& DNSPacket::getTSIGKeyname() const { + return d_tsigkeyname; +} diff --git a/pdns/dnspacket.hh b/pdns/dnspacket.hh index 15346f43f..0755851e7 100644 --- a/pdns/dnspacket.hh +++ b/pdns/dnspacket.hh @@ -144,6 +144,10 @@ public: DNSName qdomainwild; //!< wildcard matched by qname, used by LuaPolicyEngine DNSName qdomainzone; //!< zone name for the answer (as reflected in SOA for negative responses), used by LuaPolicyEngine string d_peer_principal; + const DNSName& getTSIGKeyname() const; + + ComboAddress d_remote; + uint16_t qclass; //!< class of the question - should always be INternet 2 struct dnsheader d; //!< dnsheader at the start of the databuffer 12 uint16_t qclass; //!< class of the question - should always be INternet 2 -- 2.40.0