* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string>
#include <deque>
#include <queue>
}
QD->callback(a, QD->start);
+#ifdef ENABLE_GSS_TSIG
QD->Q.cleanupGSS(a->d.rcode);
+#endif
QD.reset();
}
}
}
callback(a, start);
+#ifdef ENABLE_GSS_TSIG
q.cleanupGSS(a->d.rcode);
-
+#endif
return 0;
}
return d_tsigkeyname;
}
+#ifdef ENABLE_GSS_TSIG
void DNSPacket::cleanupGSS(int rcode)
{
if (rcode != RCode::NoError && d_tsig_algo == TSIG_GSS && !getTSIGKeyname().empty()) {
ctx.destroy();
}
}
-
+#endif
+
static bool s_doEDNSSubnetProcessing;
static bool s_doEDNSCookieProcessing;
static string s_EDNSCookieKey;
+
+#ifdef ENABLE_GSS_TSIG
void cleanupGSS(int rcode);
+#endif
private:
void pasteQ(const char *question, int length); //!< set the question of this packet, useful for crafting replies
*/
#include "gss_context.hh"
-
-#include "lock.hh"
#include "logger.hh"
#ifndef ENABLE_GSS_TSIG
#else
+#include <unordered_map>
+
+#include "lock.hh"
+
class GssCredential : boost::noncopyable
{
public:
*/
#pragma once
+
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include "namespaces.hh"
#include "pdnsexception.hh"
#ifdef ENABLE_GSS_TSIG
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_krb5.h>
-#include <gssapi/gssapi_ext.h>
#endif
//! Generic errors
#include "version.hh"
#include "auth-main.hh"
#include "trusted-notification-proxy.hh"
+#include "gss_context.hh"
#if 0
#undef DLOG
#include "packetcache.hh"
#include "dnsseckeeper.hh"
#include "lua-auth4.hh"
-#include "gss_context.hh"
#include "namespaces.hh"
#include "backends/gsql/ssql.hh"
#include "communicator.hh"
#include "query-local-address.hh"
+#include "gss_context.hh"
extern StatBag S;
extern CommunicatorClass Communicator;
break;
sendPacket(reply, fd);
+#ifdef ENABLE_GSS_TSIG
packet->cleanupGSS(reply->d.rcode);
+#endif
}
}
catch(PDNSException &ae) {
#include "config.h"
#endif
#include "packethandler.hh"
+#include "gss_context.hh"
void PacketHandler::tkeyHandler(const DNSPacket& p, std::unique_ptr<DNSPacket>& r) {
#if 0