Fix presentation for NSEC3

This commit is contained in:
Miek Gieben 2011-01-10 16:18:01 +01:00
parent 578304226f
commit 222d01625c
2 changed files with 13 additions and 6 deletions

6
TODO
View File

@ -1,11 +1,9 @@
Todo:
Short term:
* NSEC(3) secure denial of existence, support the type bitmap
- need base32 for Nsec3
* NSEC3 - need base32 for Nsec3
* Parsing from strings
* Server support
* Key generation
* Server support
* Signature generation
Issues:

View File

@ -482,11 +482,20 @@ type RR_NSEC3 struct {
func (rr *RR_NSEC3) Header() *RR_Header {
return &rr.Hdr
// Salt with strings.ToUpper()
}
func (rr *RR_NSEC3) String() string {
return rr.Hdr.String() + "BLAH"
s := rr.Hdr.String()
s += " " + strconv.Itoa(int(rr.Hash)) +
" " + strconv.Itoa(int(rr.Flags)) +
" " + strconv.Itoa(int(rr.Iterations)) +
" " + strings.ToUpper(rr.Salt) +
" " + rr.NextDomain // must base32?
for i:=0; i < len(rr.TypeBitMap); i++ {
// Check if map exists, otherwise "TYPE" + strcov.Itoa(int(rr.TypeBitMap[i]))
s = s + " " + Rr_str[rr.TypeBitMap[i]]
}
return s
}
type RR_NSEC3PARAM struct {