From: Pieter Lexis Date: Wed, 24 Feb 2016 17:14:31 +0000 (+0100) Subject: recursor: set the TSIG algoname on IXFR correctly X-Git-Tag: auth-4.0.0-alpha2~8^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd051ad662f10373bb8f3e13a55cbec3f6ebc91c;p=pdns recursor: set the TSIG algoname on IXFR correctly --- diff --git a/pdns/ixfr.cc b/pdns/ixfr.cc index ad4ef2d6d..2170a7045 100644 --- a/pdns/ixfr.cc +++ b/pdns/ixfr.cc @@ -19,8 +19,14 @@ vector, vector > > getIXFRDeltas(const ComboAd pw.commit(); if(!tt.algo.empty()) { + TSIGHashEnum the; + getTSIGHashEnum(tt.algo, the); TSIGRecordContent trc; - trc.d_algoName = tt.algo; + try { + trc.d_algoName = getTSIGAlgoName(the); + } catch(PDNSException& pe) { + throw std::runtime_error("TSIG algorithm '"+tt.algo.toString()+"' is unknown."); + } trc.d_time = time((time_t*)NULL); trc.d_fudge = 300; trc.d_origID=ntohs(pw.getHeader()->id);