From 21020bc0477d62b519624c164ad7b1700d41274f Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Tue, 19 Apr 2011 11:36:30 +0200 Subject: [PATCH] more tweaks for tsig, it is broken now --- client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.go b/client.go index 45b1e147..e4256338 100644 --- a/client.go +++ b/client.go @@ -247,6 +247,7 @@ func (w *reply) Receive() (*Msg, os.Error) { } // Tsig if m.IsTsig() { + println("DOING TSIG") secret := m.Extra[len(m.Extra)-1].(*RR_TSIG).Hdr.Name _, ok := w.Client().TsigSecret[secret] if !ok { @@ -254,7 +255,10 @@ func (w *reply) Receive() (*Msg, os.Error) { } ok, err := TsigVerify(p, w.Client().TsigSecret[secret], w.tsigTimersOnly) if !ok { + println("TSIG DID NOT VALIDATED") return m, err + } else { + println("TSIG VALIDATED") } } return m, nil