- Correct dkim.verify processing to avoid errors when verifying messages
with no DKIM signatures
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
Version 1.1
|
Version 1.1
|
||||||
- Correct signature indexing error introduced in 1.0.0 that prevents
|
- Correct signature indexing error introduced in 1.0.0 that prevents
|
||||||
verification of multiple signatures in a single message
|
verification of multiple signatures in a single message
|
||||||
|
- Correct dkim.verify processing to avoid errors when verifying messages
|
||||||
|
with no DKIM signatures
|
||||||
|
|
||||||
2019-12-31 Version 1.0.2
|
2019-12-31 Version 1.0.2
|
||||||
- dknewkey: On posix operating systems set file permissions to 600 for
|
- dknewkey: On posix operating systems set file permissions to 600 for
|
||||||
|
|||||||
+5
-2
@@ -934,8 +934,11 @@ class DKIM(DomainSigner):
|
|||||||
#: @return: True if signature verifies or False otherwise
|
#: @return: True if signature verifies or False otherwise
|
||||||
#: @raise DKIMException: when the message, signature, or key are badly formed
|
#: @raise DKIMException: when the message, signature, or key are badly formed
|
||||||
def verify(self,idx=0,dnsfunc=get_txt):
|
def verify(self,idx=0,dnsfunc=get_txt):
|
||||||
sig, include_headers, sigheaders = self.verify_headerprep(idx)
|
prep = self.verify_headerprep(idx)
|
||||||
return self.verify_sig(sig, include_headers, sigheaders[idx], dnsfunc)
|
if prep:
|
||||||
|
sig, include_headers, sigheaders = prep
|
||||||
|
return self.verify_sig(sig, include_headers, sigheaders[idx], dnsfunc)
|
||||||
|
return False # No signature
|
||||||
|
|
||||||
|
|
||||||
#: Hold messages and options during ARC signing and verification.
|
#: Hold messages and options during ARC signing and verification.
|
||||||
|
|||||||
Reference in New Issue
Block a user