fa1bd0f722Fix#847669: sign messages without DNS library.
Stuart D. Gathman
2011-10-26 17:37:09 -04:00
8fee4fcb81
Spec file change log
Stuart D. Gathman
2011-10-26 17:10:13 -04:00
cd4eb81fc2
Update ChangeLog
Stuart D. Gathman
2011-10-26 16:59:10 -04:00
f84927d7ed
dkimsend.sh is gone
Stuart D. Gathman
2011-10-26 16:26:00 -04:00
06954830a1
Simple -v flag for verbose output.
Stuart D. Gathman
2011-10-25 13:15:43 -04:00
e9e4775c3c
Missing public key is a KeyFormatError
Stuart D. Gathman
2011-10-25 13:12:02 -04:00
47a5d949ea
Doc updates.
Stuart D. Gathman
2011-07-18 15:40:17 -04:00
60083513bf
Link to rfc5322
Stuart D. Gathman
2011-07-18 14:20:29 -04:00
3aff9a0ec6
lower case header field names in add_frozen, update docs.
Stuart D. Gathman
2011-07-18 14:01:54 -04:00
3018a845b4
Convenient way to set rfc5322 strict signing mode.
Stuart D. Gathman
2011-07-18 11:21:11 -04:00
69d5414039
Verify signatures after the first.
Stuart D. Gathman
2011-06-19 23:21:39 -04:00
87e9531bbc
Documentation.
Stuart D. Gathman
2011-06-19 23:09:58 -04:00
a78b6f7088
all_sign_headers() method to get old behaviour when needed.
Stuart D. Gathman
2011-06-19 18:55:44 -04:00
112d58f8cd
Adjust test case for new default sign headers
Stuart D. Gathman
2011-06-19 16:47:06 -04:00
8944221623
Initial implementation for bug#799175
Stuart D. Gathman
2011-06-19 16:30:17 -04:00
4f77e32ec7
Update Changelog, put back large message from field for extra headers test case. Keep simplified message also in case further debugging is needed.
Stuart D. Gathman
2011-06-17 18:55:52 -04:00
133a5663ac
Fix bug#644046
Stuart D. Gathman
2011-06-17 18:35:18 -04:00
93c61d2737
Simplify extra header test.
Stuart D. Gathman
2011-06-17 17:40:24 -04:00
2458f3824c
Really fix test case for bug#737311
Stuart D. Gathman
2011-06-17 14:28:07 -04:00
a203b29874
A fix for bug #644046
Stuart D. Gathman
2011-06-17 13:52:09 -04:00
1fa37e02a8
Fix dkim.fold()
Stuart D. Gathman
2011-06-17 12:57:50 -04:00
21c9810c3f
Reenabling failing fold test case. Must fix for 0.5
Stuart D. Gathman
2011-06-17 12:22:38 -04:00
85dbc4f645
Test case for bug#644046
Stuart D. Gathman
2011-06-17 12:17:05 -04:00
40c2980b58
Fix test case for bug #737311
Stuart D. Gathman
2011-06-17 11:40:40 -04:00
77cd2cae35
Remove obsolete publish.sh script.
Scott Kitterman
2011-06-17 08:58:21 -05:00
3e5e1a06aa
* Remove version in shebang in dkimsign.py and dkimverify.py * Remove obsolete dkimsend.sh
Scott Kitterman
2011-06-16 23:08:20 -05:00
550e3e3983
Update version numbers to 0.5 and start new Changelog entry.
Scott Kitterman
2011-06-16 22:41:42 -05:00
9e3ec3665d
Integrate new tests into existing test suite in dkim.tests
Stuart D. Gathman
2011-06-16 23:38:14 -04:00
857d73ec33
TODO for dnsplug
Stuart D. Gathman
2011-06-16 23:00:20 -04:00
5142ee9ed4
Tested with pydns
Stuart D. Gathman
2011-06-16 19:05:33 -04:00
fcc50192c4
Proposed general purpose dnsplug
Stuart D. Gathman
2011-06-16 18:03:12 -04:00
18e9aef36b
Update Changelog and switch to version 0.4.2 throughout.
Scott Kitterman
2011-06-16 14:50:03 -05:00
8713e6e9f8
Move dkim/dns.py to dkim/dnsplug.py to stay clear of dnspython dns namespace.
Scott Kitterman
2011-06-16 14:47:45 -05:00
f9760261bb
Update ChangeLog
Stuart D. Gathman
2011-06-15 10:35:32 -04:00
1f89083c1a
Doc update
Stuart D. Gathman
2011-06-15 10:30:15 -04:00
a673d2332a
dd testcase for bug 587783
Stuart D. Gathman
2011-06-15 10:27:13 -04:00
c96367f9f9
Update spec for 0.4.1
Stuart D. Gathman
2011-06-15 09:58:19 -04:00
86077755b2
Update versions to 0.4.1 and correct/update Changelog.
Scott Kitterman
2011-06-15 08:49:20 -05:00
2eeec91fc1
Fix except clauses for py3
Stuart D. Gathman
2011-06-15 06:56:45 -04:00
4ab054860f
Fix package version in PKG-INFO and README.
Scott Kitterman
2011-06-15 00:18:16 -05:00
e28d406477
Fix spelling
Stuart D. Gathman
2011-06-15 00:11:01 -04:00
73e2456127
Release 0.4
Stuart D. Gathman
2011-06-14 23:16:17 -04:00
4497ea2c01
RPM packaging
Stuart D. Gathman
2011-06-14 22:45:14 -04:00
4317168f89
python-2.6.6 has upper case hash.name (2.6.5 has lower case).
Stuart D. Gathman
2011-06-14 18:18:22 -04:00
942a2e3e9d
Make verbose verify script an unimplemented option
Stuart D. Gathman
2011-06-14 18:08:33 -04:00
47fbf5a02b
pydns driver did not join split TXT records. Try for Milter.dns which follows CNAME (is this needed?)
Stuart D. Gathman
2011-06-14 16:40:16 -04:00
70c5b55dbf
Put back InvalidTagValue trap
Stuart D. Gathman
2011-06-14 15:51:19 -04:00
6fb16453d9
Strip leading and trailing whitespace before parsing.
Stuart D. Gathman
2011-06-14 15:47:04 -04:00
52454945cc
Initial test case
Stuart D. Gathman
2011-06-14 15:41:49 -04:00
dac0f36522
Provide a class API so that selector, domain can be recovered on verify.
Stuart D. Gathman
2011-06-14 15:16:33 -04:00
a07833297e
Handle missing record
Stuart D. Gathman
2011-06-14 15:15:49 -04:00
d2f6840748
Clients need to test for any DKIM exception.
Stuart D. Gathman
2011-06-11 18:23:45 -04:00
e9d01800de
Canonicalizationpolicy.from_c_value() now raise InvalidCanonicalizationPolicyErrors instead of logging and returning None.
William Grant
2011-06-04 15:51:14 +10:00
79eff489d4
Extract c= value manipulation into a new (tested) CanonicalizationPolicy.
William Grant
2011-06-04 14:40:06 +10:00
3008ad76a7
Capitalise and unexport dkim.canonicalization.algorithms.
William Grant
2011-06-04 14:38:29 +10:00
f8e938c152
Use CanonicalizationPolicy in sign().
William Grant
2011-06-04 14:37:18 +10:00
6b4b98478b
Add CanonicalizationPolicy.to_c_value().
William Grant
2011-06-04 14:37:07 +10:00
206c860890
Pull c= value parsing out into Canonicalizationpolicy.from_c_value.
William Grant
2011-06-04 14:30:19 +10:00
7b1a3f70dc
Add CanonicalizationPolicy, which encapsulates the combined hybrid simple/relaxed schemes.
William Grant
2011-06-04 14:05:54 +10:00
19b554212e
Quick fix to make end-to-end tests verify all canonicalization cases. Tests for bug #587783.
William Grant
2011-06-04 13:46:57 +10:00
eb31f6d685
Extract and test DNS and canonicalization and some hashing functions.
William Grant
2011-06-04 00:17:22 +10:00
382d9157c5
Fix get_txt to assume unicode results.
William Grant
2011-06-03 23:13:45 +10:00
472750c0db
Signature algorithm names are now defined in dkim.crypto.
William Grant
2011-06-03 22:34:23 +10:00
5f949337d1
Handle Unicode in get_txt.
William Grant
2011-06-03 22:24:21 +10:00
a82f3110ea
Split out DNS utilities into their own module.
William Grant
2011-06-03 22:07:42 +10:00
b78a41d6bf
Add an __all__.
William Grant
2011-06-03 22:04:21 +10:00
5da23e5856
rstrip header field names in relaxed, as the spec says.
William Grant
2011-06-03 22:03:41 +10:00
61cd0e1080
Factor out all the canonicalization regexps.
William Grant
2011-06-03 22:03:14 +10:00
28aaa6f2f2
dkim.canonicalization now has an algorithms dict mapping names to algorithms. Use it.
William Grant
2011-06-03 21:52:33 +10:00
a1fc55bcaa
Rewrite tests to use an assertCanonicalForm helper.
William Grant
2011-06-03 21:25:20 +10:00
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.
William Grant
2011-06-03 21:16:31 +10:00
1721b7fec2
Drop Python 2.5 support, add 3.1 and 3.2.
William Grant
2011-06-03 00:18:38 +10:00
f4875a8768
Don't crash when asked to verify a badly encoded domain or selector.
William Grant
2011-06-02 23:07:01 +10:00
30bf1bc171
Fix DeprecationWarnings in tests.
William Grant
2011-06-02 19:12:49 +10:00
d9e3b49a8e
Make encodings all ascii/utf-8 as appropriate.
William Grant
2011-03-19 22:44:46 +11:00
b6d9e35a1d
Update Python version and DNS library requirements in README.
William Grant
2011-03-19 21:55:38 +11:00
67b3fdc4f0
Port dkimsign.py.
William Grant
2011-03-19 21:41:52 +11:00
bc78c7d1d0
python2.6 doesn't have assertRaisesRegexp.
William Grant
2011-03-19 21:25:00 +11:00
672c6084e3
python2.6 base64.b64encode doesn't like bytearrays... convert to bytes instead.
William Grant
2011-03-19 21:24:48 +11:00
ed9bc94fa2
Fix test_dkim's mock dnstxt to do unicode.
William Grant
2011-03-19 21:24:22 +11:00
cb4b034941
python2.6's sys.version_info isn't a namedtuple.
William Grant
2011-03-19 21:04:48 +11:00
5726afce8d
Port dkimverify.py.
William Grant
2011-03-19 21:03:22 +11:00
44db746563
More bytestring conversions in __init__. pydns seems to like to deal with unicode, so convert on the way in and back.
William Grant
2011-03-19 21:01:54 +11:00
3cf0a5ce9f
Merge pydns support from trunk.
William Grant
2011-03-19 20:58:23 +11:00
128288a20c
Fall back to pydns if dnspython is unavailable.
William Grant
2011-03-19 20:56:37 +11:00
8cf859db4f
bytesify __init__. Tests now parse if dns.resolver is removed.
William Grant
2011-03-19 20:09:01 +11:00
e176c8fd4b
Bytesify test_dkim.
William Grant
2011-03-19 20:08:31 +11:00
df47a7d88e
And fix test_crypto to pass.
William Grant
2011-03-19 19:13:48 +11:00
54e553ee8d
Fix dkim.asn1.
William Grant
2011-03-19 19:13:34 +11:00
7949bff344
Make dkim.crypto mostly work.
William Grant
2011-03-19 19:04:11 +11:00
e220d2da1d
asn1_length fixed.
William Grant
2011-03-19 18:54:31 +11:00
be1368f374
Make str2int/int2str work with bytes.
William Grant
2011-03-19 18:52:35 +11:00
9af52236fc
parse_tag_value now deals with bytes.
William Grant
2011-03-19 18:47:51 +11:00
88915e3a01
Fix some test_crypto literals to be byteses.
William Grant
2011-03-19 18:45:04 +11:00
dcf0580406
Open data files as binary for now.
William Grant
2011-03-19 18:44:49 +11:00
f5db65966e
Use new 2.6/3.x except syntax.
William Grant
2011-03-19 18:36:19 +11:00
e0fca7e613
Stop using deprecated map().
William Grant
2011-03-19 18:36:00 +11:00
f29addb823
Use normal Python logging everywhere, not printing to debuglog.
William Grant
2011-03-19 18:31:48 +11:00
46c57176a2
Use normal Python logging everywhere, not printing to debuglog.
William Grant
2011-03-19 18:27:11 +11:00