- Fix traceback when attempting to verify an unsigned message using
async verify (Thanks to Nikita Sychev for the report and a suggested
fix) (LP: #2008723)
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
Version 1.1.1
|
||||
- Document dropping of Python 2 support (dropped as of 1.1.0) (LP:
|
||||
#20086738)
|
||||
- Fix traceback when attempting to verify an unsigned message using
|
||||
async verify (Thanks to Nikita Sychev for the report and a suggested
|
||||
fix) (LP: #2008723)
|
||||
|
||||
2023-02-25 Version 1.1.0
|
||||
- Add domain validity check for ascii domains (no specials)
|
||||
|
||||
@@ -94,8 +94,11 @@ class DKIM(dkim.DKIM):
|
||||
|
||||
|
||||
async def verify(self,idx=0,dnsfunc=get_txt_async):
|
||||
sig, include_headers, sigheaders = self.verify_headerprep(idx=0)
|
||||
prep = self.verify_headerprep(idx)
|
||||
if prep:
|
||||
sig, include_headers, sigheaders = prep
|
||||
return await self.verify_sig(sig, include_headers, sigheaders[idx], dnsfunc)
|
||||
return False # No signature
|
||||
|
||||
|
||||
async def verify_async(message, logger=None, dnsfunc=None, minkey=1024,
|
||||
|
||||
Reference in New Issue
Block a user