Scott Kitterman
439d66e1e1
Resolve merge conflicts
2019-04-13 21:21:49 -04:00
Scott Kitterman
fd3f501787
Update dkim/tests/test_arc.py for changes in dkim.fold
2019-04-13 20:54:13 -04:00
Dick Marinus
6bc38aaf9b
add line separator support
2018-12-23 13:26:05 +01:00
Jonathan Bastien-Filiatrault
6b4127f920
Don't insert an extra space at the end of the line when doing a soft fold.
...
Trailing whitespaces are best avoided.
2018-12-12 21:30:56 -05:00
Jonathan Bastien-Filiatrault
2d474d6b04
Do not take the name length into account on the second line when folding.
...
Setting namelen could have no effect, my guess is that this was the
original intention of the code.
This results in more efficient usage of lines.
2018-12-12 21:14:08 -05:00
Scott Kitterman
c3eb342611
Fixed ARC verification to fail is h= tag is present in Arc-Seal, added test, bumped version to start 0.9.1
2018-11-09 19:58:11 -05:00
Scott Kitterman
8032276b57
Bump version to 0.9.0 since this is now a feature release
...
- Update oversigned (frozen) header field list to reduce signature
fragility (removes 'date' and 'subject' fields from being oversigned by
default - see usage section of README for information on how to restore
the previous behavior)
- Added new add_should_not for DKIM/ARC classes to prevent additional
header fields from being signed
- Added 'from' to should sign list (to prevent it from not being signed at
all in the unusual event that 'from' is locally removed from the frozen
header field set (LP: #1525048 )
- Updates for experimental ARC support:
- Specified that for ARC, Authentication-Results should not be signed
2018-10-30 11:29:09 -04:00
Thomas Ward
a1ca321fa5
PEP8 Blank Lines Style Issues, lp:1782596
2018-10-27 20:53:32 -04:00
Scott Kitterman
f8deb49c0d
Don't error out in Python 3 if include headers is string (LP: #1776775 )
2018-06-16 18:18:45 -04:00
Daniel Hahler
906980f57a
tests: fix DeprecationWarnings for assertEquals
2018-06-16 17:28:10 -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
261eb5f5eb
Add test for detecting bad version number in DKIM txt record
2018-05-18 17:04:50 -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
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