Commit Graph

425 Commits

Author SHA1 Message Date
Scott Kitterman 2fc00b0218 Catch nacl.exceptions.ValueError and raise KeyFormatError, similar to how RSA key errors are treated (LP: #2018021) 2023-04-29 00:09:14 -04:00
Scott Kitterman 339bf1fb63 Bump version to 1.1.3 2023-04-28 23:41:49 -04:00
Scott Kitterman 5cedcb46d5 Release 1.0.2 2023-04-09 09:33:53 -04:00
Scott Kitterman 835a890007 Bump version to 1.1.2 2023-03-31 13:08:19 -04:00
André Cruz 264230308c fix correct AMS header selection
When we are verifying the ARC seal we need to fetch the raw AMS header
from the header list. But it's not enough to return the first one we
find, since we may be interested in a different arc seal, we need
to search for the correct ARC index.
2023-03-30 16:02:46 +01:00
Scott Kitterman 71119c956e Finalize 1.1.1 release 2023-03-10 11:18:05 -05:00
Scott Kitterman dd6bbd4c88 - Fix traceback when attempting to verify an unsigned message using
async verify (Thanks to Nikita Sychev for the report and a suggested
      fix) (LP: #2008723)
2023-02-28 00:02:07 -05:00
Scott Kitterman bf5ab32d55 Bump version to 1.1.1 and document python2 is no longer supported (LP: #2008738) 2023-02-27 23:49:56 -05:00
Scott Kitterman 59e9dd2cb5 Correct base64 validation regexp so that valid signature with == split
between two lines are not incorrectly evaluated as invalid (LP:
      #2002295) - Thanks to <https://launchpad.net/~obadz> for the report and
      the proposed fix
2023-02-25 17:16:53 -05:00
Scott Kitterman 2115a5e9f8 Invalid Authentication-Results header fields are ignored for ARC signing
(LP: #1884044)
2023-02-25 17:10:17 -05:00
Scott Kitterman b74452d9da Add new dkim.DnsTimeoutError class to report queried domain and selector
along with timeout error from dnspython (LP: #1873449)
2023-02-25 16:44:06 -05:00
Scott Kitterman 233a9699ed Add USE_ASYNC flag to allow async to be disabled when aiodns is
installed (LP: #1954331) - see README.md for details
2023-02-25 16:25:20 -05:00
Scott Kitterman 50a81ab8d6 Add test test_non_utf8 which at least demonstrates not crashing on non UTF-8 data 2023-02-25 15:40:49 -05:00
Scott Kitterman 143e3bffea Fix dknewkey import in dkim/tests/test_dkim_generate.py 2023-02-25 15:39:38 -05:00
Scott Kitterman 5195dbaf3d Add limitations section to README to document current IDN status 2023-02-25 15:38:47 -05:00
Spitap 0540d3cb17 Changed read_test_data to suit test needs 2022-08-01 17:05:41 +02:00
Spitap fab181ae34 Add key generation unit test 2022-08-01 09:42:44 +02:00
Scott Kitterman a35f4a7dd3 Add ChangeLog entry for PKCS#8 private keys 2022-07-31 22:08:13 -04:00
Spitap 2883f35bdd Edited param description for parse_private_key(data) 2022-08-01 01:31:35 +02:00
Spitap 8e78ce7e13 refacor of PKCS8 parsing, added pkcs8 test 2022-08-01 00:49:39 +02:00
Spitap 20d9ca1e1c Enabled PKCS#8 for private keys 2022-07-31 11:49:58 +02:00
Scott Kitterman f4dff24d68 Add domain validity check for ascii domains (no specials) 2022-01-16 18:21:10 -05:00
Scott Kitterman 6dcaaac712 Provide more specific error message when ed25519 private key is invalid 2021-11-24 15:37:06 -05:00
Scott Kitterman 9c8e46eb5c Fix @param srv_id typos (LP: #1890532) 2020-08-08 17:04:34 -04:00
Scott Kitterman b0bfc115e7 Update dnsplug for DNS Python (dns) 2.0 compatibility (LP: #1888583) 2020-08-08 16:53:08 -04:00
Scott Kitterman d1360c8e25 Add tests for invalid domains, probably not a security issue in the DKIM context, but we should raise errors here. 2020-04-21 20:29:45 -04:00
Scott Kitterman 7848effe4d Update dkimverify (1) to document --index option 2020-04-06 18:16:24 -04:00
Scott Kitterman 5b9dc1253d ChangeLog for index addition in dkimverify 2020-04-06 18:10:54 -04:00
Scott Kitterman 3e16ceac23 Add option to specify index number of signature to verify to dkimverify (Thanks to Nick Baugh for the change) 2020-04-06 18:09:23 -04:00
Scott Kitterman 4b38d9b5ac Merge branch 'addtest' 2020-04-06 17:43:28 -04:00
Scott Kitterman 987ea0a964 Add test case for verifying a message with no signature 2020-04-06 17:43:16 -04:00
Scott Kitterman 095f68d943 - Correct dkim.verify processing to avoid errors when verifying messages
with no DKIM signatures
2020-04-06 00:27:04 -04:00
Scott Kitterman 443aed143a - Correct signature indexing error introduced in 1.0.0 that prevents
verification of multiple signatures in a single message
2020-01-15 11:03:07 -05:00
Scott Kitterman dc2f7f07f2 - dknewkey: On posix operating systems set file permissions to 600 for ed25519 private key files (as is already done for RSA) (LP: #1857827) 2019-12-31 01:17:19 -05:00
Scott Kitterman 73dbcc08a8 Bump version to 1.1 for next feature series development 2019-12-16 15:21:27 -05:00
Scott Kitterman cb32e3e527 - Set minimum dnspython version to 1.16 because previous versions can not
support the timeout parameter (LP: #1856546)
2019-12-16 15:20:01 -05:00
Scott Kitterman e969511184 Update documentation URL in README.md 2019-12-16 15:19:43 -05:00
Scott Kitterman 52f1279754 Set version and release date 2019-12-15 01:26:32 -05:00
Scott Kitterman 5a0824108d Provide specialized error message when signing or verifying ed25519
signatures and pynacl is not installed (LP: #1854475)
2019-12-15 01:12:02 -05:00
Scott Kitterman 6c5f701131 Follow CNAMES when looking up key records when using DNS (pydns)
(LP: #1856421)
2019-12-15 00:42:31 -05:00
Scott Kitterman da3f98e6a1 Set release date 2019-12-09 17:50:37 -05:00
Scott Kitterman 7356ca1b45 Tab/space fix in ChangeLog 2019-12-09 17:49:05 -05:00
Scott Kitterman f9160a9f13 exclude .pyc files from MANIFEST so we con't accidentally ship test artifacts 2019-12-09 17:46:54 -05:00
Scott Kitterman 952621c5b5 Fixed python3 tested versions in README.md 2019-12-09 17:42:56 -05:00
Scott Kitterman 8701e996d3 Make README Mardown (README.md) and use for long_description 2019-12-09 17:36:01 -05:00
Scott Kitterman 166291857a Udpate README for async and tlsrpt support 2019-12-09 17:02:02 -05:00
Scott Kitterman f680dd879b Merge async work into master for 1.0 2019-12-09 09:18:25 -05:00
Scott Kitterman 397ec61717 ChangeLog typo 2019-12-09 09:03:26 -05:00
Scott Kitterman 7173c0cbcc Catch binascii related key format errors (LP: #1854477) 2019-12-08 02:43:57 -05:00
Scott Kitterman c66a014a9f Fix RSAPublicKey in ChangeLog 2019-11-09 13:42:32 -05:00