summaryrefslogtreecommitdiff
path: root/dns/update.py
Commit message (Collapse)AuthorAgeFilesLines
* fix case of enum namesconstants2Bob Halley2020-08-031-2/+2
|
* remove globals() enum updatingBob Halley2020-08-031-2/+0
|
* add constantsBob Halley2020-08-031-0/+9
|
* Add dns.tsig.Key class.Brian Wellington2020-07-011-12/+2
| | | | | | | | | | | | | | | | | | | | This creates a new class to represent a TSIG key, containing name, secret, and algorithm. The keyring format is changed to be {name : key}, and the methods in dns.tsigkeyring are updated to deal with old and new formats. The Message class is updated to use dns.tsig.Key, although (to avoid breaking existing code), it stores them in the keyring field. Message.use_tsig() can accept either explicit keys, or keyrings; it will extract and/or create a key. dns.message.from_wire() can accept either a key or a keyring in the keyring parameter. If passed a key, it will now raise if the TSIG record in the message was signed with a different key. If passed a keyring containing keys (as opposed to bare secrets), it will check that the TSIG record's algorithm matches that of the key.
* minor (cosmetic) fix to update sectionsNick Hall2020-06-291-3/+3
|
* Refactor OPT handling code into OPT record class. (#520)Brian Wellington2020-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Create an OPT record class. * Move OPT logic to one place. * Store the OPT record on the message object. This also adds a Renderer.add_rdata() method. * Add Rdataset.rdata_to_wire() helper. * Fix conflicts; simplify. * Fix typo. * style * Add a trivial to_text so that repr() works. * Add _parse_special_rr_header * More OPT checking. Pass the name to _parse_rr_header and _parse_special_rr_header, and check that the OPT record has the root name.
* Simplify code.Brian Wellington2020-06-261-5/+4
| | | | | There's no need to attach an attribute to the _TextReader/_WireReader classes; the code has access to the message.
* Attempt to refactor per-opcode validation.messageBrian Wellington2020-06-261-9/+16
| | | | | | | | 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.
* basic documentation updates for revised message hierarchyBob Halley2020-06-261-0/+3
|
* new message class hierarchy and conversion of wire and text readersBob Halley2020-06-251-25/+28
|
* set update section globals for convenience; fix formattingBob Halley2020-06-251-0/+2
|
* make sections a list; propertize question, answer, etc.Bob Halley2020-06-251-11/+39
|
* section enumsBob Halley2020-06-251-0/+10
|
* Minor Python 3 cleanups.Brian Wellington2020-06-031-2/+2
| | | | | | | Classes inherit from object by default; there's no need to explicitly include this. Replace super(Foo, self) with super().
* Remove dns.rdata{type,class}.to_enum.Brian Wellington2020-05-211-5/+5
| | | | | | | These methods (which convert a str/int into an enum/int) shouldn't be commonly used by external code, so don't need to exist at the module level. The make() method on the enum class (renamed from to_enum()) can still be used, and the internal callers have been updated to use it.
* Start converting rdatatype/rdataclass to enum.Brian Wellington2020-05-181-13/+5
|
* in doco, text->str, binary->bytesBob Halley2020-05-081-3/+3
|
* Remove _compat module.Bob Halley2018-12-091-11/+10
|
* update copyrightBob Halley2018-12-011-0/+2
|
* doco UpdateBob Halley2017-01-151-33/+61
|
* python3 supportArthur Gautier2016-04-211-37/+41
| | | | Signed-off-by: Arthur Gautier <baloo@gandi.net>
* Unicode support bugfixruohan.chen2015-12-121-2/+2
|
* update copyrightsBob Halley2011-05-121-1/+1
|
* Allow unicode strings for rdtype and rdclass parametersBob Halley2010-10-171-3/+3
|
* add constants for TSIG algorithmsBob Halley2010-10-171-1/+5
|
* The TSIG algorithm was being passed to use_tsig() incorrectly.Bob Halley2010-03-101-1/+1
|
* update copyrights for 2010Bob Halley2010-01-131-1/+1
|
* fix typoBob Halley2009-11-131-1/+1
|
* add support for more TSIG algorithmsBob Halley2009-11-131-2/+5
|
* present() did not add a zero TTL if its argument was a single rdataBob Halley2009-11-131-14/+14
|
* update copyrightsBob Halley2009-06-181-1/+1
|
* update copyrights for 2007Bob Halley2007-01-011-1/+1
|
* If the 'zone' parameter to the Update constructor was a name, we erroneouslyBob Halley2006-03-031-2/+0
| | | | | | tried to invoke a method named 'copy'. Names are immutable, there's no need to copy anyway.
* Preliminary Unicode supportBob Halley2005-11-131-5/+5
|
* update copyrightsBob Halley2005-09-021-1/+1
| | | | | Original author: Bob Halley <halley@dnspython.org> Date: 2005-01-08 08:13:48
* remove cvs $Id$ tagsBob Halley2005-09-021-2/+0
| | | | | Original author: Bob Halley <halley@dnspython.org> Date: 2004-07-31 09:51:40
* we specified dns.rdatatype.NONE instead of dns.rdataclass.NONE in someBob Halley2005-09-021-2/+2
| | | | | | | update delete operations Original author: Bob Halley <halley@dnspython.org> Date: 2004-05-23 06:51:54
* initial importBob Halley2005-09-021-0/+242
Original author: Bob Halley <halley@dnspython.org> Date: 2004-03-23 21:57:40