formatting and documentation

This commit is contained in:
Miek Gieben 2011-02-24 16:22:14 +01:00
parent 77348913dd
commit 98e4b33cb5
7 changed files with 179 additions and 179 deletions

View File

@ -38,7 +38,7 @@ func TestSecure(t *testing.T) {
key.PublicKey = "AwEAAcNEU67LJI5GEgF9QLNqLO1SMq1EdoQ6E9f85ha0k0ewQGCblyW2836GiVsm6k8Kr5ECIoMJ6fZWf3CQSQ9ycWfTyOHfmI3eQ/1Covhb2y4bAmL/07PhrL7ozWBW3wBfM335Ft9xjtXHPy7ztCbV9qZ4TVDTW/Iyg0PiwgoXVesz"
// It should validate. Period is checked seperately, so this will keep on working
if ! sig.Verify(key, []RR{soa}) {
if !sig.Verify(key, []RR{soa}) {
t.Log("Failure to validate")
t.Fail()
}

View File

@ -106,10 +106,10 @@ func (rr *RR_OPT) SetUDPSize(size uint16) {
// Get the DO bit.
func (rr *RR_OPT) Do() bool {
return byte(rr.Hdr.Ttl >> 8) &_DO == _DO
return byte(rr.Hdr.Ttl>>8)&_DO == _DO
}
// Set the DO bit
// Set the DO bit.
func (rr *RR_OPT) SetDo() {
b1 := byte(rr.Hdr.Ttl >> 24)
b2 := byte(rr.Hdr.Ttl >> 16)

View File

@ -95,7 +95,7 @@ func (res *Resolver) Query(q *Msg) (d *Msg, err os.Error) {
}
// Start an AXFR, q should contain a message with the question
// for an AXFR ("miek.nl" ANY AXFR. All incoming axfr snippets
// for an AXFR: "miek.nl" ANY AXFR. All incoming axfr snippets
// are returned on the channel m. The function closes the
// channel to signal the end of the AXFR.
func (res *Resolver) Axfr(q *Msg, m chan *Msg) {

View File

@ -636,7 +636,7 @@ func (rr *RR_NSEC3PARAM) String() string {
return s
}
// See RFC 4408
// See RFC 4408.
type RR_SPF struct {
Hdr RR_Header
Txt string