- 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
+2
View File
@@ -9,6 +9,8 @@
debugLevel are set - default is generally start/stop/errors only
- Fixed install_requires so either dnspython (preferred if neither is
installed) or PyDNS satisfies the install requirements
- Update Authentication Results result comment not to mention key size for
ed25519 signatures, since it's irrelevant
0.9.4 2018-03-09
- Create PID directory if it is missing
+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,