- Update Authentication Results result comment not to mention key size for
ed25519 signatures, since it's irrelevant
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
debugLevel are set - default is generally start/stop/errors only
|
debugLevel are set - default is generally start/stop/errors only
|
||||||
- Fixed install_requires so either dnspython (preferred if neither is
|
- Fixed install_requires so either dnspython (preferred if neither is
|
||||||
installed) or PyDNS satisfies the install requirements
|
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
|
0.9.4 2018-03-09
|
||||||
- Create PID directory if it is missing
|
- Create PID directory if it is missing
|
||||||
|
|||||||
@@ -241,9 +241,15 @@ class dkimMilter(Milter.Base):
|
|||||||
try:
|
try:
|
||||||
res = d.verify(idx=y)
|
res = d.verify(idx=y)
|
||||||
if res:
|
if res:
|
||||||
self.dkim_comment = ('Good {0} bit {1} signature.'
|
if d.signature_fields.get(b'a') == 'ed25519-sha256':
|
||||||
.format(d.keysize,
|
self.dkim_comment = ('Good {0} signature'
|
||||||
d.signature_fields.get(b'a')))
|
.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:
|
else:
|
||||||
self.dkim_comment = ('Bad {0} bit {1} signature.'
|
self.dkim_comment = ('Bad {0} bit {1} signature.'
|
||||||
.format(d.keysize,
|
.format(d.keysize,
|
||||||
|
|||||||
Reference in New Issue
Block a user