- 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:
committed by
Scott Kitterman
parent
7683fa7187
commit
3e57876361
@@ -7,6 +7,9 @@
|
||||
creation to README
|
||||
- Fixed a bug where dkim fail might be reported as pass when verifying
|
||||
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
|
||||
- Fixup csl dataset processing for single item lists
|
||||
|
||||
@@ -195,11 +195,12 @@ class dkimMilter(Milter.Base):
|
||||
canonicalize.append(canon)
|
||||
syslog.syslog('canonicalize: {0}'.format(canonicalize))
|
||||
try:
|
||||
d = dkim.DKIM(txt)
|
||||
h = d.sign(milterconfig.get('Selector'), self.fdomain, privateRSA,
|
||||
canonicalize=(canonicalize[0], canonicalize[1]))
|
||||
name,val = h.split(': ',1)
|
||||
self.addheader(name,val.strip().replace('\r\n','\n'),0)
|
||||
if privateRSA:
|
||||
d = dkim.DKIM(txt)
|
||||
h = d.sign(milterconfig.get('Selector'), self.fdomain, privateRSA,
|
||||
canonicalize=(canonicalize[0], canonicalize[1]))
|
||||
name,val = h.split(': ',1)
|
||||
self.addheader(name,val.strip().replace('\r\n','\n'),0)
|
||||
if privateEd25519:
|
||||
d = dkim.DKIM(txt)
|
||||
h = d.sign(milterconfig.get('SelectorEd25519'), self.fdomain, privateEd25519,
|
||||
|
||||
Reference in New Issue
Block a user