formatting and documentation
This commit is contained in:
parent
77348913dd
commit
98e4b33cb5
|
@ -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()
|
||||
}
|
||||
|
|
4
edns.go
4
edns.go
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue