Fix comments after RRs
zzzzz.miek.nl. 86400 IN RRSIG NSEC 8 3 86400 20110823011301 20110724011301 12051 miek.nl. lyRljEQFOmajcdo6bBI67DsTlQTGU3ag9vlE07u7ynqt9aYBXyE9mkasAK4V0oI32YGb2pOSB6RbbdHwUmSt+cYhOA49tl2t0Qoi3pH21dicJiupdZuyjfqUEqJlQoEhNXGtP/pRvWjNA4pQeOsOAoWq/BDcWCSQB9mh2LvUOH4= ; {keyid = sksak} zzzzz.miek.nl. 86400 IN NSEC miek.nl. TXT RRSIG NSEC Is now parsed correctly. This is incidently the format as echoed by ldns.
This commit is contained in:
parent
15e1c0961b
commit
a4ac06b8c3
7
zscan.go
7
zscan.go
|
@ -330,6 +330,13 @@ func zlexer(s scanner.Scanner, c chan lex) {
|
||||||
commt = false
|
commt = false
|
||||||
rrtype = false
|
rrtype = false
|
||||||
str = ""
|
str = ""
|
||||||
|
// If not in a brace this ends the comment AND the RR
|
||||||
|
if brace == 0 {
|
||||||
|
owner = true
|
||||||
|
}
|
||||||
|
l.value = _NEWLINE
|
||||||
|
l.token = "\n"
|
||||||
|
c <- l
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if str != "" {
|
if str != "" {
|
||||||
|
|
|
@ -267,6 +267,7 @@ func setRRSIG(h RR_Header, c chan lex) (RR, *ParseError) {
|
||||||
l = <-c
|
l = <-c
|
||||||
s := ""
|
s := ""
|
||||||
for l.value != _NEWLINE && l.value != _EOF {
|
for l.value != _NEWLINE && l.value != _EOF {
|
||||||
|
println("Wat hebben we hier", l.token, l.value)
|
||||||
switch l.value {
|
switch l.value {
|
||||||
case _STRING:
|
case _STRING:
|
||||||
s += l.token
|
s += l.token
|
||||||
|
@ -277,6 +278,7 @@ func setRRSIG(h RR_Header, c chan lex) (RR, *ParseError) {
|
||||||
}
|
}
|
||||||
l = <-c
|
l = <-c
|
||||||
}
|
}
|
||||||
|
println("S", s)
|
||||||
rr.Signature = s
|
rr.Signature = s
|
||||||
return rr, nil
|
return rr, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue