]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
5 years agoAdds support for reading TSIG text format. 571/head
Brian Wellington [Mon, 10 Aug 2020 21:27:44 +0000 (14:27 -0700)] 
Adds support for reading TSIG text format.

Implements from_text for the TSIG record type, and clean up some other
things.

Fixes the text format to emit fields in the right order; fudge and
time_signed were reversed.  This also matches BIND's output format now.

Add get_uint48() to the tokenizer, so that from_text() can use it.  Add
get_uint48() to the wire parser, and use it in from_wire, for
consistency.

Change dns.tsig.sign() to use rdata.replace() rather than constructing a
new TSIG record manually; this couldn't be done before, because
replace() uses text format for validation.

5 years agoUpdate SVCB tests.
Brian Wellington [Mon, 10 Aug 2020 19:37:28 +0000 (12:37 -0700)] 
Update SVCB tests.

This adds a few more test cases, and reorders tests / test cases for
consistency.

5 years agoMerge pull request #570 from bwelling/tsig-new-algorithms
Bob Halley [Mon, 10 Aug 2020 18:54:17 +0000 (11:54 -0700)] 
Merge pull request #570 from bwelling/tsig-new-algorithms

Add support for new TSIG algorithms

5 years agoAdd support for new TSIG algorithms. 570/head
Brian Wellington [Mon, 10 Aug 2020 18:43:20 +0000 (11:43 -0700)] 
Add support for new TSIG algorithms.

This adds support for the hmac-sha256-128, hmac-sha384-192, and hmac-sha512-256 truncated algorithms.

This also reorders some of the declarations in the TSIG code.

5 years agoFix dns.message.use_tsig().
Brian Wellington [Mon, 10 Aug 2020 18:41:22 +0000 (11:41 -0700)] 
Fix dns.message.use_tsig().

Passing only a dns.tsig.Key to dns.message.use_tsig() didn't work, as
the placeholder tsig rrset on the message object was created with None
as its name, not the name associated with the key.

Also do a bit of refactoring to make the code more clear.

5 years agoSimplify $GENERATE range code, add some error checks, and increase test coverage.
Bob Halley [Sun, 9 Aug 2020 01:32:55 +0000 (18:32 -0700)] 
Simplify $GENERATE range code, add some error checks, and increase test coverage.

5 years agomention GSS-TSIG and TKEY in what's new
Bob Halley [Sun, 9 Aug 2020 01:13:42 +0000 (18:13 -0700)] 
mention GSS-TSIG and TKEY in what's new

5 years agolint
Bob Halley [Sun, 9 Aug 2020 01:11:07 +0000 (18:11 -0700)] 
lint

5 years agoMerge pull request #530 from nrhall/nrhall-gss-tsig-changes
Bob Halley [Sun, 9 Aug 2020 01:03:52 +0000 (18:03 -0700)] 
Merge pull request #530 from nrhall/nrhall-gss-tsig-changes

Add support for gss-tsig and TKEY records to support GSSAPI authentication

5 years agoThe from_text_list() methods for Rdataset and RRset should allow the
Bob Halley [Sat, 8 Aug 2020 14:25:53 +0000 (07:25 -0700)] 
The from_text_list() methods for Rdataset and RRset should allow the
full set of parameters that rdata's from_text() allows (i.e. origin,
relativize, and relativize_to).

These parameters were added though the order is slightly different
from dns.rdata.to_text() as in the the rdata version idna_codec is
after origin, relativize, and relativize_to.  We already had an
idna_codec for the Rdataset and RRset functions, so we added after it
to keep backwards compatibility.

5 years agoLOC _exponent_of does not need to do division.
Bob Halley [Sat, 8 Aug 2020 14:21:37 +0000 (07:21 -0700)] 
LOC _exponent_of does not need to do division.

5 years agoMake SVCB and HTTPS immutable.
Bob Halley [Sat, 8 Aug 2020 14:19:23 +0000 (07:19 -0700)] 
Make SVCB and HTTPS immutable.

5 years agoAdd immutable module.
Bob Halley [Sat, 8 Aug 2020 14:18:10 +0000 (07:18 -0700)] 
Add immutable module.

5 years agoMerge pull request #568 from rthalley/svcb
Bob Halley [Sat, 8 Aug 2020 02:20:30 +0000 (19:20 -0700)] 
Merge pull request #568 from rthalley/svcb

SVCB and HTTPS support

5 years agoSVCB and HTTPS support 568/head
Bob Halley [Fri, 7 Aug 2020 03:02:24 +0000 (20:02 -0700)] 
SVCB and HTTPS support

5 years agoSupport callable() TSIG keyrings for use-cases like GSSTSig. 530/head
Nick Hall [Fri, 7 Aug 2020 22:00:36 +0000 (23:00 +0100)] 
Support callable() TSIG keyrings for use-cases like GSSTSig.

5 years agoAdd a lightweight wrapper around the HMAC types and refactor the "is gss-api or not...
Nick Hall [Tue, 4 Aug 2020 16:47:48 +0000 (17:47 +0100)] 
Add a lightweight wrapper around the HMAC types and refactor the "is gss-api or not" wrapper functions to just call the class methods

5 years agoadd additional test case with a request/response TSIG
Nick Hall [Tue, 14 Jul 2020 16:59:01 +0000 (17:59 +0100)] 
add additional test case with a request/response TSIG

5 years agoAdd a number of additional tests to improve TSIG test coverage relating
Nick Hall [Fri, 10 Jul 2020 21:48:37 +0000 (22:48 +0100)] 
Add a number of additional tests to improve TSIG test coverage relating
to gss-tsig change and some associated refactoring.

5 years agoAdd gss-tsig support to dnspython
Nick Hall [Sun, 5 Jul 2020 23:40:36 +0000 (00:40 +0100)] 
Add gss-tsig support to dnspython

5 years agoAdd support for TKEY RR type
Nick Hall [Sun, 3 Feb 2019 14:02:49 +0000 (14:02 +0000)] 
Add support for TKEY RR type

5 years agoRemove duplicates in the ISDN sample data.
Brian Wellington [Fri, 7 Aug 2020 01:10:47 +0000 (18:10 -0700)] 
Remove duplicates in the ISDN sample data.

5 years agofix loc version not zero test
Bob Halley [Tue, 4 Aug 2020 13:48:09 +0000 (06:48 -0700)] 
fix loc version not zero test

5 years agolint
Bob Halley [Tue, 4 Aug 2020 13:44:06 +0000 (06:44 -0700)] 
lint

5 years agoLOC with version not 0 is a FORMERR
Bob Halley [Tue, 4 Aug 2020 13:43:44 +0000 (06:43 -0700)] 
LOC with version not 0 is a FORMERR

5 years agoMerge pull request #562 from nrhall/nrhall-message-patch
Bob Halley [Tue, 4 Aug 2020 13:16:12 +0000 (06:16 -0700)] 
Merge pull request #562 from nrhall/nrhall-message-patch

Expose set_rcode

5 years agoMerge pull request #564 from rthalley/constants2
Bob Halley [Tue, 4 Aug 2020 13:11:23 +0000 (06:11 -0700)] 
Merge pull request #564 from rthalley/constants2

Constants generation at end of file approach

5 years agotest constants with independent code 564/head
Bob Halley [Tue, 4 Aug 2020 13:05:19 +0000 (06:05 -0700)] 
test constants with independent code

5 years agoadd enumeration checking helpers
Bob Halley [Tue, 4 Aug 2020 13:05:00 +0000 (06:05 -0700)] 
add enumeration checking helpers

5 years agofix case of enum names
Bob Halley [Mon, 3 Aug 2020 14:00:38 +0000 (07:00 -0700)] 
fix case of enum names

5 years agomultiple # in a comment is ok
Bob Halley [Mon, 3 Aug 2020 13:44:42 +0000 (06:44 -0700)] 
multiple # in a comment is ok

5 years agoremove globals() enum updating
Bob Halley [Mon, 3 Aug 2020 13:41:31 +0000 (06:41 -0700)] 
remove globals() enum updating

5 years agoadd constants
Bob Halley [Mon, 3 Aug 2020 13:35:22 +0000 (06:35 -0700)] 
add constants

5 years agopylint linting
Bob Halley [Fri, 31 Jul 2020 23:03:09 +0000 (16:03 -0700)] 
pylint linting

5 years agoexpose set_rcode in Message 562/head
Nick Hall [Wed, 29 Jul 2020 22:48:42 +0000 (23:48 +0100)] 
expose set_rcode in Message

5 years agothe abstract wire parse method for Rdata is now from_wire_parser()
Bob Halley [Fri, 31 Jul 2020 14:36:48 +0000 (07:36 -0700)] 
the abstract wire parse method for Rdata is now from_wire_parser()

5 years agoallow pytest 6
Bob Halley [Thu, 30 Jul 2020 16:25:27 +0000 (09:25 -0700)] 
allow pytest 6

5 years agoWhen validating a signature, derelativize before doing any label computations.
Bob Halley [Wed, 29 Jul 2020 01:40:36 +0000 (18:40 -0700)] 
When validating a signature, derelativize before doing any label computations.

Raise an error if the number of labels in the signature is longer than the
number of labels in the owner name.  (This is just to give a better error
as the validation would fail anyway.)

5 years agomore coverage
Bob Halley [Tue, 28 Jul 2020 16:47:49 +0000 (09:47 -0700)] 
more coverage

5 years agoRaise NoPreviousName if a text message tries to refer to a previous name but there...
Bob Halley [Tue, 28 Jul 2020 16:47:39 +0000 (09:47 -0700)] 
Raise NoPreviousName if a text message tries to refer to a previous name but there is none.

5 years agomore message coverage
Bob Halley [Tue, 28 Jul 2020 14:40:06 +0000 (07:40 -0700)] 
more message coverage

5 years agoReturn the message in question_only mode. [#556]
Bob Halley [Tue, 28 Jul 2020 14:39:50 +0000 (07:39 -0700)] 
Return the message in question_only mode. [#556]

5 years agoMerge pull request #553 from rthalley/wrap
Bob Halley [Tue, 28 Jul 2020 14:01:00 +0000 (07:01 -0700)] 
Merge pull request #553 from rthalley/wrap

Wrap exceptions from rdata from_text() and from_wire().

5 years agoApply the resolver search list, domain, and ndots settings in the same way
Bob Halley [Tue, 28 Jul 2020 00:19:11 +0000 (17:19 -0700)] 
Apply the resolver search list, domain, and ndots settings in the same way
that the BIND stub resolver library does.

5 years agoAdd missing lifetime parameter to dns.asyncresolver.resolve() [#555]
Bob Halley [Mon, 27 Jul 2020 21:24:18 +0000 (14:24 -0700)] 
Add missing lifetime parameter to dns.asyncresolver.resolve() [#555]

5 years agoWrap exceptions from rdata from_text() and from_wire(). 553/head
Bob Halley [Mon, 27 Jul 2020 00:48:14 +0000 (17:48 -0700)] 
Wrap exceptions from rdata from_text() and from_wire().

5 years agoincrease TXT coverage
Bob Halley [Sun, 26 Jul 2020 21:12:01 +0000 (14:12 -0700)] 
increase TXT coverage

5 years agoincrease rcode coverage
Bob Halley [Sun, 26 Jul 2020 20:59:08 +0000 (13:59 -0700)] 
increase rcode coverage

5 years agoremove test that can never be true
Bob Halley [Sun, 26 Jul 2020 20:50:34 +0000 (13:50 -0700)] 
remove test that can never be true

5 years agomore resolver override testing
Bob Halley [Sun, 26 Jul 2020 20:22:33 +0000 (13:22 -0700)] 
more resolver override testing

5 years agoexercise entropy stirring
Bob Halley [Sun, 26 Jul 2020 18:09:13 +0000 (11:09 -0700)] 
exercise entropy stirring

5 years agoexclude unpractical-to-test AttributeError
Bob Halley [Sun, 26 Jul 2020 18:03:19 +0000 (11:03 -0700)] 
exclude unpractical-to-test AttributeError

5 years agoincrease EDNS coverage
Bob Halley [Sun, 26 Jul 2020 17:57:47 +0000 (10:57 -0700)] 
increase EDNS coverage

5 years agostill more dnssec coverage
Bob Halley [Sun, 26 Jul 2020 17:43:17 +0000 (10:43 -0700)] 
still more dnssec coverage

5 years agomore dnssec coverage
Bob Halley [Sun, 26 Jul 2020 17:05:32 +0000 (10:05 -0700)] 
more dnssec coverage

5 years agoimprove dnssec coverage
Bob Halley [Sun, 26 Jul 2020 15:30:58 +0000 (08:30 -0700)] 
improve dnssec coverage

5 years agomore easy coverage gains
Bob Halley [Sat, 25 Jul 2020 20:06:21 +0000 (13:06 -0700)] 
more easy coverage gains

5 years agoRemove checks already done by dns.dnssec.algorithm_from_text().
Bob Halley [Sat, 25 Jul 2020 19:46:35 +0000 (12:46 -0700)] 
Remove checks already done by dns.dnssec.algorithm_from_text().

5 years agomore message coverage
Bob Halley [Sat, 25 Jul 2020 14:18:52 +0000 (07:18 -0700)] 
more message coverage

5 years agoeven on errors where we tolerate no question, check question if present
Bob Halley [Sat, 25 Jul 2020 13:29:08 +0000 (06:29 -0700)] 
even on errors where we tolerate no question, check question if present

5 years agomore minor resolver coverage
Bob Halley [Sat, 25 Jul 2020 13:19:07 +0000 (06:19 -0700)] 
more minor resolver coverage

5 years agomore reversename coverage
Bob Halley [Sat, 25 Jul 2020 12:54:54 +0000 (05:54 -0700)] 
more reversename coverage

5 years agoBring rdataset to full coverage.
Bob Halley [Sat, 25 Jul 2020 02:17:28 +0000 (19:17 -0700)] 
Bring rdataset to full coverage.

5 years agoutil coverage
Bob Halley [Sat, 25 Jul 2020 01:54:56 +0000 (18:54 -0700)] 
util coverage

5 years agotest cleanups and more coverage
Bob Halley [Sat, 25 Jul 2020 01:10:13 +0000 (18:10 -0700)] 
test cleanups and more coverage

5 years agoto_text() always returns a str, so no need to check if it is not a str
Bob Halley [Sat, 25 Jul 2020 01:10:01 +0000 (18:10 -0700)] 
to_text() always returns a str, so no need to check if it is not a str

5 years agobring rdata.py to full coverage
Bob Halley [Fri, 24 Jul 2020 15:09:16 +0000 (08:09 -0700)] 
bring rdata.py to full coverage

5 years agoignore coverage on abstract methods
Bob Halley [Fri, 24 Jul 2020 15:08:29 +0000 (08:08 -0700)] 
ignore coverage on abstract methods

5 years agoHave only one one top-level section for What's New.
Bob Halley [Fri, 24 Jul 2020 02:33:37 +0000 (19:33 -0700)] 
Have only one one top-level section for What's New.

5 years agotest style improvements
Bob Halley [Fri, 24 Jul 2020 02:26:47 +0000 (19:26 -0700)] 
test style improvements

5 years agoAllow an escaped newline in a quoted string.
Bob Halley [Fri, 24 Jul 2020 02:21:16 +0000 (19:21 -0700)] 
Allow an escaped newline in a quoted string.

5 years agomore tokenizer coverage improvements
Bob Halley [Fri, 24 Jul 2020 02:20:33 +0000 (19:20 -0700)] 
more tokenizer coverage improvements

5 years agomore tokenizer test cleanups
Bob Halley [Thu, 23 Jul 2020 16:34:14 +0000 (09:34 -0700)] 
more tokenizer test cleanups

5 years agomore tokenizer coverage
Bob Halley [Thu, 23 Jul 2020 15:48:02 +0000 (08:48 -0700)] 
more tokenizer coverage

5 years agoAdd no cover for abstract method.
Bob Halley [Thu, 23 Jul 2020 14:17:21 +0000 (07:17 -0700)] 
Add no cover for abstract method.

5 years agoAdd serial branch coverage; remove duplicated test.
Bob Halley [Thu, 23 Jul 2020 14:12:20 +0000 (07:12 -0700)] 
Add serial branch coverage; remove duplicated test.

5 years agocover compression table too big branch
Bob Halley [Thu, 23 Jul 2020 14:00:05 +0000 (07:00 -0700)] 
cover compression table too big branch

5 years agoImprove name coverage slightly by testing the uts_46 branch in 2008 decode.
Bob Halley [Thu, 23 Jul 2020 13:33:27 +0000 (06:33 -0700)] 
Improve name coverage slightly by testing the uts_46 branch in 2008 decode.
I'm not sure how useful in practice this is, as we don't offer a codec
configuration default for it, but I'm not sure you'd never do it, and the
existing code was in the wrong order.

5 years agoadd coverage for a v6 branch case
Bob Halley [Thu, 23 Jul 2020 02:03:50 +0000 (19:03 -0700)] 
add coverage for a v6 branch case

5 years agoAdjust no cover pragmas to better reflect what the Azure pipeline hits/misses.
Bob Halley [Wed, 22 Jul 2020 15:53:30 +0000 (08:53 -0700)] 
Adjust no cover pragmas to better reflect what the Azure pipeline hits/misses.

5 years agomore resolver coverage improvements
Bob Halley [Wed, 22 Jul 2020 15:52:37 +0000 (08:52 -0700)] 
more resolver coverage improvements

5 years agoMake resolver use_edns() conform to its docstring; slightly improve use_edns() logic.
Bob Halley [Wed, 22 Jul 2020 15:27:27 +0000 (08:27 -0700)] 
Make resolver use_edns() conform to its docstring; slightly improve use_edns() logic.

5 years agoFix Answer constructor invocations that missed an API change.
Bob Halley [Wed, 22 Jul 2020 14:27:17 +0000 (07:27 -0700)] 
Fix Answer constructor invocations that missed an API change.

5 years agoIncrease branch coverage of the resolver.
Bob Halley [Wed, 22 Jul 2020 14:25:07 +0000 (07:25 -0700)] 
Increase branch coverage of the resolver.

Speed up test resolver by around 6 seconds by mocking the clock.

Improve the cleaning test to verify that it really was cleaning that
removed the entry, and not get detecting the expiration.

5 years agoMerge pull request #550 from rthalley/resolve_chaining
Bob Halley [Wed, 22 Jul 2020 01:20:02 +0000 (18:20 -0700)] 
Merge pull request #550 from rthalley/resolve_chaining

Unify Chaining Code

5 years agoUse min() for min_ttl computations. 550/head
Bob Halley [Tue, 21 Jul 2020 23:01:32 +0000 (16:01 -0700)] 
Use min() for min_ttl computations.

5 years agofix exception docstrings
Bob Halley [Tue, 21 Jul 2020 18:23:54 +0000 (11:23 -0700)] 
fix exception docstrings

5 years agoset min ttl to max_ttl instead of special case -1
Bob Halley [Tue, 21 Jul 2020 17:40:51 +0000 (10:40 -0700)] 
set min ttl to max_ttl instead of special case -1

5 years agoIncrease LOC coverage.
Bob Halley [Tue, 21 Jul 2020 17:21:29 +0000 (10:21 -0700)] 
Increase LOC coverage.

5 years agoturn on branch coverage
Bob Halley [Tue, 21 Jul 2020 17:21:20 +0000 (10:21 -0700)] 
turn on branch coverage

5 years agounify chaining code
Bob Halley [Tue, 21 Jul 2020 14:32:27 +0000 (07:32 -0700)] 
unify chaining code

5 years agoMerge pull request #548 from rthalley/dependabot/pip/cryptography-gte-2.6-and-lt-4.0
Bob Halley [Tue, 21 Jul 2020 12:27:18 +0000 (05:27 -0700)] 
Merge pull request #548 from rthalley/dependabot/pip/cryptography-gte-2.6-and-lt-4.0

Update cryptography requirement from ^2.6 to >=2.6,<4.0

5 years agoUpdate cryptography requirement from ^2.6 to >=2.6,<4.0 548/head
dependabot[bot] [Tue, 21 Jul 2020 05:33:33 +0000 (05:33 +0000)] 
Update cryptography requirement from ^2.6 to >=2.6,<4.0

Updates the requirements on [cryptography](https://github.com/pyca/cryptography) to permit the latest version.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/2.6...3.0)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoUpdate with what's new in 2.1.0.
Bob Halley [Tue, 21 Jul 2020 02:52:59 +0000 (19:52 -0700)] 
Update with what's new in 2.1.0.

5 years agoSet EDNS default payload to 1232.
Bob Halley [Tue, 21 Jul 2020 02:52:20 +0000 (19:52 -0700)] 
Set EDNS default payload to 1232.

5 years agoFix resolver EDNS0 payload size when EDNS0 enabled by resolv.conf.
Bob Halley [Tue, 21 Jul 2020 02:23:30 +0000 (19:23 -0700)] 
Fix resolver EDNS0 payload size when EDNS0 enabled by resolv.conf.
[Issue #546]

5 years agoMerge pull request #543 from rthalley/comments
Bob Halley [Tue, 21 Jul 2020 01:37:23 +0000 (18:37 -0700)] 
Merge pull request #543 from rthalley/comments

A way of doing comments

5 years agoa way of doing comments 543/head
Bob Halley [Sat, 18 Jul 2020 20:07:04 +0000 (13:07 -0700)] 
a way of doing comments

5 years agoRemove duplicates in the LOC sample data.
Brian Wellington [Mon, 20 Jul 2020 19:42:59 +0000 (12:42 -0700)] 
Remove duplicates in the LOC sample data.

Some of these records were duplicates, which isn't all that useful for
testing.  Update some from the correct BIND sample files, and fix
others to improve coverage testing.

5 years agoMerge pull request #542 from rthalley/canonical_name
Bob Halley [Mon, 20 Jul 2020 13:28:14 +0000 (06:28 -0700)] 
Merge pull request #542 from rthalley/canonical_name

Canonical name