From: Kees Monshouwer Date: Mon, 21 Jul 2014 21:44:07 +0000 (+0200) Subject: avoid confusion in logged TSIG algorithm names X-Git-Tag: auth-3.4.0-rc1~43^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1587%2Fhead;p=thirdparty%2Fpdns.git avoid confusion in logged TSIG algorithm names --- diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 4cfefcb2cd..e6fa4b77c7 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -399,13 +399,16 @@ bool TCPNameserver::canDoAXFR(shared_ptr q) return false; DNSSECKeeper dk; - + + string algorithm=toLowerCanonic(trc.d_algoName); + if (algorithm == "hmac-md5.sig-alg.reg.int") + algorithm = "hmac-md5"; if(!dk.TSIGGrantsAccess(q->qdomain, keyname)) { - L<qdomain<<"' denied: key with name '"<qdomain<<"' denied: key with name '"<qdomain<<"' allowed: TSIG signed request with authorized key '"<qdomain<<"' allowed: TSIG signed request with authorized key '"<