Commit Graph

77 Commits

Author SHA1 Message Date
Scott Kitterman 9f9fe2625b Add another RFC data based test 2018-02-12 13:45:26 -05:00
Scott Kitterman 1ac948299e Delete stray print 2018-02-11 19:29:53 -05:00
Scott Kitterman d097a5f523 - Update ed25519 tests, including using sample keys from RFC 8032 Section
7.1 and the sample message from RFC 6376
2018-02-11 19:26:04 -05:00
Scott Kitterman 6bbbdf9b22 Update test data and test harness for test_verify_third_party - now it passes 2018-02-05 13:43:19 -05:00
Scott Kitterman 3209be62d1 Fix a= tag in ed25519 signatures (thanks to Jeremy Harris) 2018-02-05 11:28:05 -05:00
Scott Kitterman 3138f90077 Updated copyright statements 2018-02-05 04:05:41 -05:00
Scott Kitterman 077bf4813c Self consistent, but not externally verified ed25519 based on draft-ietf-dcrup-dkim-crypto-08 2018-02-05 03:53:03 -05:00
Scott Kitterman 0c6fdbf7c6 - Add new test, test_implicit_k, to verify that RSA processing is still
correct when the optional k= tag is not present in the DKIM public key
      record
2017-11-30 14:33:01 -05:00
Scott Kitterman 16f5bd693c Fix empty body canonicalization for relaxed canonicalization (LP: #1727319) 2017-11-21 07:13:01 -05:00
Gene Shuman 5f5873c1fd Fixed ARC tests 2017-11-20 20:53:32 -08:00
Scott Kitterman 01a2f77481 Revert a bunch of rsafp stuff now that DCRUP isn't going to do rsafp 2017-11-18 20:17:35 -05:00
Matthew Palmer 6de4fa79cd Fix relaxed body canoncalization & introduce further unit tests for both simple and relaxed mode 2017-10-25 13:06:00 +01:00
Scott Kitterman c7782addd5 - Add generation of rsafp DKIM signatures per
draft-ietf-dcrup-dkim-crypto-02
2017-06-23 18:29:37 -04:00
Scott Kitterman d7eb35c22c Add test keys for sha256fp 2017-06-22 20:24:32 -04:00
Scott Kitterman e14a4f3539 - Fixed problem with header folding that caused the first line to be
folded too long (Updated test test_add_body_length since l= tag is no
      longer at the beginning of a line
2017-05-30 12:11:15 -04:00
Gene Shuman 497d74ca4b fixed byte issues with test_add_body_length 2017-03-02 16:41:39 -08:00
Scott Kitterman 1f48edd73b Add test case for Body length not cast as bytes 2017-03-02 19:18:02 -05:00
Scott Kitterman cdbb60841a Add test case for verification when should headers are signed (thanks to Geoffrey Lehée for the patch) 2017-03-02 19:08:27 -05:00
Gene Shuman 2f0f181852 basic dnsplug test 2017-01-27 15:06:49 -08:00
Gene Shuman ac6d9a6bb3 refactoring/integrating ARC code 2017-01-17 13:20:20 -08:00
Scott Kitterman 697d55d057 Work in progress to better integrate ARC into dkimpy 2016-11-12 23:18:48 -05:00
Stuart D Gathman 01541a3c36 Fix and test case for case insensitive subdomain matching. 2015-08-06 22:24:34 -04:00
Stuart D Gathman b8722f4a66 Add Diane Trout's addition sig validation tests. 2015-02-21 20:06:36 -05:00
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 1e76d331fe Test case for verify problem with degenerate FWS. 2013-06-19 15:13:28 -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 188515ddf7 Detect truncated ASN data as UnparsableKeyError 2013-03-13 23:41:01 -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 1196ed6760 Test case for FWS in b= tag not ignored on verify. 2012-04-23 19:02:29 -04: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 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 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 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 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
William Grant e9d01800de Canonicalizationpolicy.from_c_value() now raise InvalidCanonicalizationPolicyErrors instead of logging and returning None. 2011-06-04 15:51:14 +10:00
William Grant 6b4b98478b Add CanonicalizationPolicy.to_c_value(). 2011-06-04 14:37:07 +10:00
William Grant 206c860890 Pull c= value parsing out into Canonicalizationpolicy.from_c_value. 2011-06-04 14:30:19 +10:00
William Grant 19b554212e Quick fix to make end-to-end tests verify all canonicalization cases. Tests for bug #587783. 2011-06-04 13:46:57 +10:00
William Grant 5f949337d1 Handle Unicode in get_txt. 2011-06-03 22:24:21 +10:00
William Grant a1fc55bcaa Rewrite tests to use an assertCanonicalForm helper. 2011-06-03 21:25:20 +10:00
William Grant 589853aee5 Split out dkim.canonicalization, and test it. Note that test_wsp_strips_headers is correctly failing, as trailing whitespace is not stripped from header names. 2011-06-03 21:16:31 +10:00
William Grant f4875a8768 Don't crash when asked to verify a badly encoded domain or selector. 2011-06-02 23:07:01 +10:00
William Grant 30bf1bc171 Fix DeprecationWarnings in tests. 2011-06-02 19:12:49 +10:00