From: Aki Tuomi Date: Mon, 15 Jun 2015 09:54:29 +0000 (+0300) Subject: Add accessor for d_tsigkeyname X-Git-Tag: dnsdist-1.0.0-alpha2~40^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a5ac5d762a653d4cf4a670a82064ecbca6ec552;p=pdns Add accessor for d_tsigkeyname --- 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