From 509464cf3574e7bb3b2b49328a22f09493aafe32 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 19 Jan 2012 20:45:01 +0100 Subject: [PATCH] Add message checking to q --- examples/q/q.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/q/q.go b/examples/q/q.go index d3484d62..57d89a92 100644 --- a/examples/q/q.go +++ b/examples/q/q.go @@ -158,6 +158,18 @@ forever: } } +// Check the sigs in the msg, get the signer's key (additional query), get the +// rrset from the message, check the signature(s) +func sigCheck(in *dns.Msg) { + +} + +// Get the key from the DNS (uses the local resolver) and return them. +// If nothing is found we return nil +func getKey(name string) *RR_DNSKEY { + // There is no recursive DNS checking here. +} + // Walk trough message and short Key data and Sig data func shortMsg(in *dns.Msg) *dns.Msg { for i := 0; i < len(in.Answer); i++ {