| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Attempt to refactor per-opcode validation.message | Brian Wellington | 2020-06-26 | 2 | -52/+44 |
| | | | | | | | | | Instead of validating rrsets and sections after parsing them, check the class/type for each record before parsing it. This is more generic, because it moves all of the update logic out of the common code. It's also more flexible, as it allows the update logic to specify that meta-records are empty. | ||||
| * | Remove hardcoded section names from TextReader. | Brian Wellington | 2020-06-26 | 1 | -26/+36 |
| | | |||||
| * | Minor _WireReader refactoring. | Brian Wellington | 2020-06-26 | 1 | -47/+49 |
| | | | | | | | Instead of parsing the header to determine which Message subclass to create and passing that message to _WireReader, make _WireReader create the Message subclass itself. | ||||
| * | basic documentation updates for revised message hierarchy | Bob Halley | 2020-06-26 | 2 | -4/+14 |
| | | |||||
| * | move rrset validation to the end-of-section processing | Bob Halley | 2020-06-26 | 1 | -11/+7 |
| | | |||||
| * | lint | Bob Halley | 2020-06-26 | 1 | -2/+2 |
| | | |||||
| * | fix cut-and-paste error | Bob Halley | 2020-06-26 | 1 | -3/+0 |
| | | |||||
| * | message.from_text() should have the same relativize options as other text APIs. | Bob Halley | 2020-06-26 | 1 | -7/+32 |
| | | |||||
| * | new message class hierarchy and conversion of wire and text readers | Bob Halley | 2020-06-25 | 2 | -102/+165 |
| | | |||||
| * | set update section globals for convenience; fix formatting | Bob Halley | 2020-06-25 | 2 | -1/+3 |
| | | |||||
| * | make sections a list; propertize question, answer, etc. | Bob Halley | 2020-06-25 | 2 | -60/+98 |
| | | |||||
| * | section enums | Bob Halley | 2020-06-25 | 2 | -35/+26 |
| | | |||||
| * | Fix TTL limiting. | Brian Wellington | 2020-06-24 | 1 | -1/+1 |
| | | | | | | | | | The message code would convert negative TTL into 0, but the TTL could never be negative, as it was read with the '!I' format, which reads unsigned 32 bit integers. We don't want to change that, since OPT flags (which are encoded in the TTL) should be treated as unsigned. Instead, treat all TTLs > (2^31 - 1) as 0. | ||||
| * | Minor style changes. | Brian Wellington | 2020-06-24 | 1 | -9/+8 |
| | | | | | | There's no need to pass start=0 to range(). Use += when possible. Replace multiple comparisons with in. | ||||
| * | The cached _all_slots technique of the earlier pickle fix didn't work for | Bob Halley | 2020-06-22 | 1 | -12/+6 |
| | | | | | | GenericRdata or for directly imported types. This fix just computes the all slots relatively efficiently every __getstate__(). | ||||
| * | import dns.dnssec | Brian Wellington | 2020-06-22 | 1 | -0/+1 |
| | | |||||
| * | set versioning to dev | Bob Halley | 2020-06-20 | 1 | -2/+2 |
| | | |||||
| * | improve resolver coverage | Bob Halley | 2020-06-20 | 1 | -6/+6 |
| | | |||||
| * | Remove hmac_md5(), as it was added for backwards compatibility when we | Bob Halley | 2020-06-19 | 1 | -7/+0 |
| | | | | | switched to using sign() back in 2010. | ||||
| * | improve coverage | Bob Halley | 2020-06-19 | 1 | -2/+3 |
| | | |||||
| * | add comment about is-response checking for DDNS | Bob Halley | 2020-06-19 | 1 | -0/+4 |
| | | |||||
| * | we did not check label-too-long in a few text cases | Bob Halley | 2020-06-19 | 1 | -4/+10 |
| | | |||||
| * | improve set coverage | Bob Halley | 2020-06-19 | 1 | -1/+1 |
| | | |||||
| * | Make _cmp generic for all EDNS Options. It now compares the wire formats | Bob Halley | 2020-06-19 | 1 | -19/+11 |
| | | | | | | | | | | | of two objects of the same class. Previously we did type-specific stuff for ECSOption, but we only checked the padded address info, not the srclen or scopelen, so different options could compare the same. Also, it's not clear that there's any better semantic ordering of options than the wire format, so we will just go for simplicity and use the generic implementation. | ||||
| * | lint | Bob Halley | 2020-06-19 | 1 | -4/+4 |
| | | |||||
| * | more coverage improvements | Bob Halley | 2020-06-19 | 1 | -3/+3 |
| | | |||||
| * | fix cut-and-paste typo | Bob Halley | 2020-06-19 | 1 | -1/+1 |
| | | |||||
| * | Improve GPOS validity checking. | Bob Halley | 2020-06-19 | 1 | -1/+12 |
| | | |||||
| * | Check previously unchecked things in from_text(), and make from_wire() ↵ | Bob Halley | 2020-06-19 | 1 | -6/+25 |
| | | | | | checks more precise. | ||||
| * | eliminate coverage noise | Bob Halley | 2020-06-19 | 1 | -1/+1 |
| | | |||||
| * | improve async coverage | Bob Halley | 2020-06-19 | 3 | -9/+12 |
| | | |||||
| * | Fix rdata pickling. | Bob Halley | 2020-06-18 | 1 | -2/+24 |
| | | | | | | | | | | | | Coverage testing showed that while rdatas would pickle and unpickle apparently successfully, in fact only the slots from the deepest class in the inheritance chain would be restored. So, e.g., a restored A rdata would have an address attribute but no rdclass or rdtype attributes, and so things like rdata comparison would break. This change preserves the whole set of slots, from all ancestors as well as the object, as a dictionary. | ||||
| * | validate rdata replace() | Bob Halley | 2020-06-18 | 1 | -2/+7 |
| | | |||||
| * | further improve entropy coverage | Bob Halley | 2020-06-18 | 1 | -1/+1 |
| | | |||||
| * | improve entropy coverage | Bob Halley | 2020-06-18 | 1 | -2/+2 |
| | | |||||
| * | improve query coverage | Bob Halley | 2020-06-18 | 1 | -10/+10 |
| | | |||||
| * | more tokenizer coverage | Bob Halley | 2020-06-18 | 1 | -1/+2 |
| | | |||||
| * | Construct socket.gaierror with an errno and a string, as doing just the | Bob Halley | 2020-06-18 | 1 | -9/+26 |
| | | | | | | | | errno doesn't cause the errno field in the exception to be set, and thus our exceptions were different and less useful than the stock ones. Adjust gethostbyaddr() to filter addresses like the system one does. | ||||
| * | DS: support mnemonic format from RFC 4034 section 5.3 | Petr Špaček | 2020-06-18 | 1 | -1/+1 |
| | | |||||
| * | Merge pull request #510 from bwelling/renderer | Bob Halley | 2020-06-17 | 1 | -60/+38 |
| |\ | | | | | Simplify renderer code. | ||||
| | * | Simplify renderer code. | Brian Wellington | 2020-06-17 | 1 | -60/+38 |
| | | | | | | | | | | | | | Use context manager to avoid duplicating length checking in many places. Change the code dealing with EDNS options to avoid lots of seeking by not rendering directly into the file. | ||||
| * | | Improve the comment on get_int(), as it is unsigned. | Bob Halley | 2020-06-17 | 1 | -13/+8 |
| |/ | | | | | | | | | | Add missing base parameter to get_uint32. Don't copy get_int in get_uint32, just call get_int. get_uint32 erroneously permitted 4294967296. remove cut-and-paste origin parameter to get_string() and get_identifier(). | ||||
| * | Optimize wiredata __getitem__. | Brian Wellington | 2020-06-17 | 1 | -1/+1 |
| | | | | | | When getting an item (not a slice), call bytes.__getitem__ directly rather than creating a new bytes object. | ||||
| * | make passing a socket to async routines actually work | Bob Halley | 2020-06-17 | 2 | -3/+3 |
| | | |||||
| * | simplify TTL check when reading a zone file | Bob Halley | 2020-06-17 | 1 | -10/+7 |
| | | |||||
| * | Fix typo. | Brian Wellington | 2020-06-17 | 1 | -1/+1 |
| | | |||||
| * | remove unneeded exception catching from rhs setting in $GENERATE code ↵ | Bob Halley | 2020-06-17 | 1 | -5/+2 |
| | | | | | (cut-and-paste issue) | ||||
| * | Treat OSErrors during resolution as permanent failures, in line with other | Bob Halley | 2020-06-17 | 1 | -3/+3 |
| | | | | | | | stub resolvers. Reduce default lifetime from 30 seconds to 5 seconds. | ||||
| * | Now that rdata are immutable, there is no point to the validate() method, so | Bob Halley | 2020-06-17 | 1 | -15/+0 |
| | | | | | remove it. | ||||
| * | fix sniffio-less asyncio detection on 3.6.x | Bob Halley | 2020-06-17 | 1 | -0/+1 |
| | | |||||
