Update for version 0.5.4.

Fixed error in FWS regular expression that cause some valid signatures
fail verification (Thanks to Peter Palfrader (weasel) for the patch)
This commit is contained in:
Scott Kitterman
2013-06-09 22:43:29 -04:00
parent a5e10c1a98
commit fd0caddf16
5 changed files with 13 additions and 7 deletions
+8 -3
View File
@@ -1,9 +1,14 @@
UNRELEASED Version 0.5.3 2013-06-10 Version 0.5.4
- Make key parsing error messages more specific to help troubleshooting - Fixed error in FWS regular expression that cause some valid signatures
(Based on user feedback) to fail verification (Thanks to Peter Palfrader (weasel) for the patch)
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711751
- Change dkimsign.py to sign the default (recommended) set of headers - Change dkimsign.py to sign the default (recommended) set of headers
instead of all headers instead of all headers
2012-10-27 Version 0.5.3
- Make key parsing error messages more specific to help troubleshooting
based on user feedback
2012-06-13 Version 0.5.2 2012-06-13 Version 0.5.2
- Change canonicalization defaults to work around issues with different - Change canonicalization defaults to work around issues with different
verification implementations <https://launchpad.net/bugs/939128> verification implementations <https://launchpad.net/bugs/939128>
+1 -1
View File
@@ -1,6 +1,6 @@
Metadata-Version: 1.0 Metadata-Version: 1.0
Name: dkimpy Name: dkimpy
Version: 0.5.3 Version: 0.5.4
Summary: DKIM (DomainKeys Identified Mail) Summary: DKIM (DomainKeys Identified Mail)
Home-page: https://launchapd.net/dkimpy Home-page: https://launchapd.net/dkimpy
Author: Scott Kitterman Author: Scott Kitterman
+1 -1
View File
@@ -11,7 +11,7 @@ signing and verification.
VERSION VERSION
This is dkimpy 0.5.3. This is dkimpy 0.5.4.
REQUIREMENTS REQUIREMENTS
+2 -1
View File
@@ -118,7 +118,8 @@ def select_headers(headers, include_headers):
lastindex[h] = i lastindex[h] = i
return sign_headers return sign_headers
FWS = r'(?:\r?\n\s+)?' # FWS = ([*WSP CRLF] 1*WSP) / obs-FWS ; Folding white space [RFC5322]
FWS = r'(?:(?:\s*\r?\n)?\s+)?'
RE_BTAG = re.compile(r'([;\s]b'+FWS+r'=)(?:'+FWS+r'[a-zA-Z0-9+/=])*(?:\r?\n\Z)?') RE_BTAG = re.compile(r'([;\s]b'+FWS+r'=)(?:'+FWS+r'[a-zA-Z0-9+/=])*(?:\r?\n\Z)?')
def hash_headers(hasher, canonicalize_headers, headers, include_headers, def hash_headers(hasher, canonicalize_headers, headers, include_headers,
+1 -1
View File
@@ -24,7 +24,7 @@
from distutils.core import setup from distutils.core import setup
import os import os
version = "0.5.3" version = "0.5.4"
setup( setup(
name = "dkimpy", name = "dkimpy",