- Make RSA signatures in dkimpy-milter optional, so dkimpy-milter can be

added after an existing DKIM signing application to add an Ed25519
   signature (Thanks to A. Schulze for the patch)
This commit is contained in:
A. Schulze
2018-03-04 13:33:32 -05:00
committed by Scott Kitterman
parent 7683fa7187
commit 3e57876361
2 changed files with 9 additions and 5 deletions
+3
View File
@@ -7,6 +7,9 @@
creation to README creation to README
- Fixed a bug where dkim fail might be reported as pass when verifying - Fixed a bug where dkim fail might be reported as pass when verifying
multiple signatures and a previous signature had passed multiple signatures and a previous signature had passed
- Make RSA signatures in dkimpy-milter optional, so dkimpy-milter can be
added after an existing DKIM signing application to add an Ed25519
signature (Thanks to A. Schulze for the patch)
0.9.3 2018-03-02 0.9.3 2018-03-02
- Fixup csl dataset processing for single item lists - Fixup csl dataset processing for single item lists
+1
View File
@@ -195,6 +195,7 @@ class dkimMilter(Milter.Base):
canonicalize.append(canon) canonicalize.append(canon)
syslog.syslog('canonicalize: {0}'.format(canonicalize)) syslog.syslog('canonicalize: {0}'.format(canonicalize))
try: try:
if privateRSA:
d = dkim.DKIM(txt) d = dkim.DKIM(txt)
h = d.sign(milterconfig.get('Selector'), self.fdomain, privateRSA, h = d.sign(milterconfig.get('Selector'), self.fdomain, privateRSA,
canonicalize=(canonicalize[0], canonicalize[1])) canonicalize=(canonicalize[0], canonicalize[1]))