Commit Graph

250 Commits

Author SHA1 Message Date
Daniel Hahler 906980f57a tests: fix DeprecationWarnings for assertEquals 2018-06-16 17:28:10 -04:00
Daniel Hahler 0338aedcc6 Fix bare except statements for expected ImportErrors 2018-06-16 17:28:02 -04:00
Scott Kitterman 0566b9b4c1 - Correctly fold lines at or near the maximum line length (fix folding
zero length lines and adding a blank line and adding an exra cr/lf for
      lines near max length (LP: #1717576)
2018-06-16 16:59:39 -04:00
Scott Kitterman ef80f037ca Delete unused test data 2018-06-09 22:07:02 -04:00
Scott Kitterman 3a68a64836 Update tests so that both RSA and Ed25519 verifying test verifying dual signed message. 2018-06-02 01:19:24 -04:00
Scott Kitterman d5c4f69b27 Remove obsolete and incorrect test data 2018-06-02 01:04:29 -04:00
Scott Kitterman a0ae8c24c5 Detect unknown algorithm in k= tag and raise an appropriate error, vice
failing with a traceback
2018-05-18 19:42:46 -04:00
Scott Kitterman 92608e79c4 Simplify error message for bad version (match what Google does) 2018-05-18 18:21:32 -04:00
Scott Kitterman bec6869c78 Detect incorrect version in DKIM public key record (LP: #1763815) 2018-05-18 18:17:30 -04:00
Scott Kitterman 261eb5f5eb Add test for detecting bad version number in DKIM txt record 2018-05-18 17:04:50 -04:00
Scott Kitterman e50d3907ae Fixup script structure for entrypoints 2018-03-26 03:35:03 -04:00
Scott Kitterman d860dfd51e Switch to setuptools/entrypoints from distutils/scripts 2018-03-25 22:39:20 -04:00
Scott Kitterman 1cafbe7e03 Remove debug print statements in test suite 2018-02-17 13:56:47 -05:00
Scott Kitterman 9f9fe2625b Add another RFC data based test 2018-02-12 13:45:26 -05:00
Scott Kitterman 43e56378c1 - Return an empty list (as expected) when no AR headers are found or no AR
arc stamps are found and the chain terminated (LP: #1748146)
2018-02-11 19:39:51 -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 10e12c60d8 - Fix unbound local variable error when processing signatures with an x
tag, but no t tag (LP: #1739637)
2017-12-21 16:35:42 -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 44146ed2de Fix arcverify tag requirements (LP: #1710312) 2017-11-18 23:34:50 -05:00
Scott Kitterman 04b1a8dddf Reapply lost ARC updates 2017-11-18 20:38:47 -05: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 3f9660716e Delete unused sys import 2017-07-28 01:32:25 -04:00
Scott Kitterman c37fcf55e8 Merge Gene Shuman updates for ARC 2017-07-28 01:30:52 -04:00
Gene Shuman 17d7c39155 Minor cleanup for ARC 2017-07-27 13:12:57 -07:00
Gene Shuman 45dbdeabcf Updates for changes in handling of ARC failures. Added support for merging AR headers for AAR creation 2017-07-26 13:09:32 -07: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 38664fab55 Check and update references to RFC 4871 to refer to RFC 6376. 2017-05-31 02:01:22 -04:00
Scott Kitterman 144886ae0b Check and update references to RFC 3447 with RFC 8017 2017-05-31 01:51:21 -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 4079b79abc Fix byte casting issues & typos 2017-03-01 16:48:32 -08:00
Gene Shuman 7456fffcea python3.4 cant interpolate tuples into byte strings 2017-02-27 16:16:20 -08:00
Gene Shuman 2f0f181852 basic dnsplug test 2017-01-27 15:06:49 -08:00
Gene Shuman 029fb80dc7 Python 3 fix & arc cmd line tool fix 2017-01-23 14:58:55 -08:00
Scott Kitterman 1ded8e9171 Pre-release version bumps and documentation updates. 2017-01-23 12:18:26 -05: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
Scott Kitterman baf8d8e417 Commit ARC changes from Brandon Long <blong@google.com>
- These will need some rework to integrate into the packcage - we do not want to ship two modules
2016-10-14 16:37:56 -04:00
Stuart D Gathman 01541a3c36 Fix and test case for case insensitive subdomain matching. 2015-08-06 22:24:34 -04:00