- Update Authentication Results result comment not to mention key size for

ed25519 signatures, since it's irrelevant
This commit is contained in:
Scott Kitterman
2018-03-10 18:18:01 -05:00
parent 5d8d47cd52
commit 126966e110
2 changed files with 11 additions and 3 deletions
+9 -3
View File
@@ -241,9 +241,15 @@ class dkimMilter(Milter.Base):
try:
res = d.verify(idx=y)
if res:
self.dkim_comment = ('Good {0} bit {1} signature.'
.format(d.keysize,
d.signature_fields.get(b'a')))
if d.signature_fields.get(b'a') == 'ed25519-sha256':
self.dkim_comment = ('Good {0} signature'
.format(d.signature_fields
.get(b'a')))
else:
self.dkim_comment = ('Good {0} bit {1} signature'
.format(d.keysize,
d.signature_fields
.get(b'a')))
else:
self.dkim_comment = ('Bad {0} bit {1} signature.'
.format(d.keysize,