mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +00:00
test/t-21-dkim: Add cross-tool check against driusan/dkimverify
This patch adds a cross-tool integration check that uses driusan/dkim's dkimverify to confirm it can verify our own DKIM signatures. It is optional, since the tool may not be present.
This commit is contained in:
@@ -290,8 +290,17 @@ func (m *miniDNS) loadZones(f *os.File) {
|
||||
}
|
||||
case "txt":
|
||||
qType = dnsmessage.TypeTXT
|
||||
|
||||
// Cut value in chunks of 255 bytes.
|
||||
chunks := []string{}
|
||||
v := value
|
||||
for len(v) > 254 {
|
||||
chunks = append(chunks, v[:254])
|
||||
v = v[254:]
|
||||
}
|
||||
chunks = append(chunks, v)
|
||||
body = &dnsmessage.TXTResource{
|
||||
TXT: []string{value},
|
||||
TXT: chunks,
|
||||
}
|
||||
default:
|
||||
log.Fatalf("line %d: unknown type %q", lineno, t)
|
||||
|
||||
Reference in New Issue
Block a user