Canonicalize the DKIM header

This commit is contained in:
Rodolphe Bréard 2023-04-15 22:06:35 +02:00
parent 2fb6dd7c14
commit d78fd34995

View file

@ -71,7 +71,9 @@ impl Signature {
hasher.update(&header);
}
}
hasher.update(self.get_header().as_bytes());
let dkim_header = self.get_header();
let dkim_header = self.canonicalization.process_header(dkim_header.as_bytes());
hasher.update(dkim_header);
hasher.finalize().to_vec()
}
}