This commit is contained in:
Miek Gieben 2011-01-26 15:17:35 +01:00
parent 310a187f8c
commit 41293d5d4b
1 changed files with 0 additions and 6 deletions

View File

@ -115,13 +115,7 @@ func (rr *RR_TSIG) Verify(msg *Msg, secret string) bool {
}
h := hmac.NewMD5([]byte(rawsecret))
io.WriteString(h, string(buf))
bufhex := unpackBase64(h.Sum())
fmt.Printf("SUM: %v\n", h.Sum())
fmt.Printf("SUM: %X\n", h.Sum())
fmt.Printf("SUM: %s %s\n", bufhex, rr.MAC)
return string(h.Sum()) == rr.MAC
// return false
}
func tsigToBuf(rr *RR_TSIG, msg *Msg) ([]byte, bool) {