1
0
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:
Alberto Bertogli
2024-03-09 21:58:55 +00:00
parent 8abed11ede
commit 7a2e49c849
5 changed files with 44 additions and 4 deletions

View File

@@ -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)