Commit Graph

199 Commits

Author SHA1 Message Date
Stuart D Gathman c6523a3d72 Merges some of the changes from Diane Trout to pass unit tests in python 2/3. 2015-02-21 19:34:20 -05:00
Stuart D. Gathman 94c5e093bb Preceding wasn't actually included in testing. :-( Fix typo. 2013-07-09 19:22:14 -04:00
Stuart D. Gathman ed6a7f5454 Allow x= with no t= (it is legal) 2013-07-09 16:51:53 -04:00
Stuart D. Gathman 1e76d331fe Test case for verify problem with degenerate FWS. 2013-06-19 15:13:28 -04:00
Scott Kitterman fd0caddf16 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)
2013-06-09 22:43:29 -04:00
Scott Kitterman a5e10c1a98 - Change dkimsign.py to sign the default (recommended) set of headers
instead of all headers
2013-04-29 01:01:00 -04:00
Scott Kitterman 5c9f52b0c1 Add test case for message with no 5322.From - Should get ParameterError and fail to sign. 2013-04-28 15:24:38 -04:00
Stuart D. Gathman f4bbd8af11 add missing exception variable 2013-04-26 20:47:49 -04:00
Stuart D. Gathman 188515ddf7 Detect truncated ASN data as UnparsableKeyError 2013-03-13 23:41:01 -04:00
Stuart D. Gathman d7d0979a7e Report public key too small only when message otherwise passes. 2012-10-27 11:23:05 -04:00
Stuart D. Gathman 5f2024fdf8 Test case for tab in FWS bug. Use minkey=512 for test cases. 2012-10-27 10:48:29 -04:00
Stuart D. Gathman a88f5f9973 Fix Sig header hashing when TAB used for FWS. 2012-10-26 20:05:42 -04:00
Stuart D. Gathman 2e1a0a8aef Raise KeyFormatError when public key is too small. 2012-10-25 15:14:46 -04:00
Stuart D. Gathman fcaee3084a Copy domain and selector immediately after validating sig fields. 2012-08-21 13:07:24 -04:00
Scott Kitterman 02551e35b2 - Update changelog and versions to start 0.5.3.
- Improve key error messages to help troubleshooting.
2012-07-21 01:44:06 -04:00
Stuart D. Gathman e0a2e9588b Save signature fields earlier. 2012-06-12 23:10:10 -04:00
Stuart D. Gathman 7e5aef1676 Trap NXDOMAIN exception with dnspython. 2012-06-12 23:09:15 -04:00
Stuart D. Gathman f2c571ceff Fully fold DKIM-Signature on sign, and ignore FWS in b= value on verify. 2012-04-23 20:38:03 -04:00
Stuart D. Gathman 1196ed6760 Test case for FWS in b= tag not ignored on verify. 2012-04-23 19:02:29 -04:00
Stuart D. Gathman c944c49957 Change canonicalization defaults to work around Bug #939128 2012-04-21 23:11:46 -04:00
Stuart D. Gathman 6429accb65 Fix Bug #969206 2012-04-21 21:53:55 -04:00
Stuart D. Gathman 7cf56f9c92 No exception on no answer when using dnspython 2012-04-20 09:41:30 -04:00
Scott Kitterman 2f8798a859 Fix incorrect variable in verify logger function. 2012-03-17 22:02:30 -04:00
Stuart D. Gathman 6c54e9040c Wrong format spec typo. 2012-02-24 22:35:57 -05:00
Scott Kitterman be3a6dbe83 Changes for pydkim -> dkimpy 2012-02-03 19:05:34 -05:00
Stuart D. Gathman 644916a653 Apply performance patch from bug#901591 2012-02-03 17:10:49 -05:00
Stuart D. Gathman e40148a7b3 Save parsed signature fields in DKIM object. 2012-01-23 13:50:29 -05:00
Stuart D. Gathman fa1bd0f722 Fix #847669: sign messages without DNS library. 2011-10-26 17:37:09 -04:00
Stuart D. Gathman e9e4775c3c Missing public key is a KeyFormatError 2011-10-25 13:12:02 -04:00
Stuart D. Gathman 47a5d949ea Doc updates. 2011-07-18 15:40:17 -04:00
Stuart D. Gathman 60083513bf Link to rfc5322 2011-07-18 14:20:29 -04:00
Stuart D. Gathman 3aff9a0ec6 lower case header field names in add_frozen, update docs. 2011-07-18 14:01:54 -04:00
Stuart D. Gathman 3018a845b4 Convenient way to set rfc5322 strict signing mode. 2011-07-18 11:21:11 -04:00
Stuart D. Gathman 69d5414039 Verify signatures after the first. 2011-06-19 23:21:39 -04:00
Stuart D. Gathman 87e9531bbc Documentation. 2011-06-19 23:09:58 -04:00
Stuart D. Gathman a78b6f7088 all_sign_headers() method to get old behaviour when needed. 2011-06-19 18:55:44 -04:00
Stuart D. Gathman 112d58f8cd Adjust test case for new default sign headers 2011-06-19 16:47:06 -04:00
Stuart D. Gathman 8944221623 Initial implementation for bug#799175 2011-06-19 16:30:17 -04:00
Stuart D. Gathman 4f77e32ec7 Update Changelog, put back large message from field for extra headers
test case.  Keep simplified message also in case further debugging is needed.
2011-06-17 18:55:52 -04:00
Stuart D. Gathman 133a5663ac Fix bug#644046 2011-06-17 18:35:18 -04:00
Stuart D. Gathman 93c61d2737 Simplify extra header test. 2011-06-17 17:40:24 -04:00
Stuart D. Gathman 2458f3824c Really fix test case for bug#737311 2011-06-17 14:28:07 -04:00
Stuart D. Gathman a203b29874 A fix for bug #644046 2011-06-17 13:52:09 -04:00
Stuart D. Gathman 1fa37e02a8 Fix dkim.fold() 2011-06-17 12:57:50 -04:00
Stuart D. Gathman 21c9810c3f Reenabling failing fold test case. Must fix for 0.5 2011-06-17 12:22:38 -04:00
Stuart D. Gathman 85dbc4f645 Test case for bug#644046 2011-06-17 12:17:05 -04:00
Stuart D. Gathman 40c2980b58 Fix test case for bug #737311 2011-06-17 11:40:40 -04:00
Stuart D. Gathman dbeeacdd46 Test case for https://bugs.launchpad.net/pydkim/+bug/737311 2011-06-17 11:26:53 -04:00
Stuart D. Gathman 9e3ec3665d Integrate new tests into existing test suite in dkim.tests 2011-06-16 23:38:14 -04:00
Scott Kitterman 8713e6e9f8 Move dkim/dns.py to dkim/dnsplug.py to stay clear of dnspython dns namespace. 2011-06-16 14:47:45 -05:00