Codebase list dnspython / 3330f0b
Imported Upstream version 1.11.1 SVN-Git Migration 8 years ago
10 changed file(s) with 68 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
0 2013-09-02 Bob Halley <halley@dnspython.org>
1
2 * (Version 1.11.1 released)
3
4 2013-09-01 Bob Halley <halley@dnspython.org>
5
6 * dns/tsigkeyring.py (to_text): we want keyname.to_text(), not
7 dns.name.to_text(keyname). Thangs to wangwang for the fix.
8
9 2013-08-26 Bob Halley <halley@dnspython.org>
10
11 * dns/tsig.py (sign): multi-message TSIGs were broken for
12 algorithms other than HMAC-MD5 because we weren't passing the
13 right digest module to the HMAC code. Thanks to salzmdan for
14 reporting the bug.
15
16 2013-08-09 Bob Halley <halley@dnspython.org>
17
18 * dns/dnssec.py (_find_candidate_keys): we tried to extract the
19 key from the wrong variable name. Thanks to Andrei Fokau for the
20 fix.
21
22 2013-07-08 Bob Halley <halley@dnspython.org>
23
24 * dns/resolver.py: we want 'self.retry_servfail' not just
25 retry_servfail. Reported by many, thanks! Thanks to
26 Jeffrey C. Ollie for the fix.
27
28 2013-07-08 Bob Halley <halley@dnspython.org>
29
30 * tests/grange.py: fix tests to use older-style print formatting
31 for backwards compatibility with python 2.4. Thanks to
32 Jeffrey C. Ollie for the fix.
33
034 2013-07-01 Bob Halley <halley@dnspython.org>
135
236 * (Version 1.11.0 released)
00 Metadata-Version: 1.1
11 Name: dnspython
2 Version: 1.11.0
2 Version: 1.11.1
33 Summary: DNS toolkit
44 Home-page: http://www.dnspython.org
55 Author: Bob Halley
66 Author-email: halley@dnspython.org
77 License: BSD-like
8 Download-URL: http://www.dnspython.org/kits/1.11.0/dnspython-1.11.0.tar.gz
8 Download-URL: http://www.dnspython.org/kits/1.11.1/dnspython-1.11.1.tar.gz
99 Description: dnspython is a DNS toolkit for Python. It supports almost all
1010 record types. It can be used for queries, zone transfers, and dynamic
1111 updates. It supports TSIG authenticated messages and EDNS0.
2121
2222 ABOUT THIS RELEASE
2323
24 This is dnspython 1.11.0
24 This is dnspython 1.11.1
25
26 New since 1.11.0:
27
28 Nothing
29
30 Bugs fixed since 1.11.1:
31
32 dns.resolver.Resolver erroneously referred to 'retry_servfail'
33 instead of 'self.retry_servfail'.
34
35 dns.tsigkeyring.to_text() would fail trying to convert the
36 keyname to text.
37
38 Multi-message TSIGs were broken for algorithms other than
39 HMAC-MD5 because we weren't passing the right digest module to
40 the HMAC code.
41
42 dns.dnssec._find_candidate_keys() tried to extract the key
43 from the wrong variable name.
44
45 $GENERATE tests were not backward compatible with python 2.4.
2546
2647 New since 1.10.0:
2748
132132 return None
133133 if isinstance(value, dns.node.Node):
134134 try:
135 rdataset = node.find_rdataset(dns.rdataclass.IN,
136 dns.rdatatype.DNSKEY)
135 rdataset = value.find_rdataset(dns.rdataclass.IN,
136 dns.rdatatype.DNSKEY)
137137 except KeyError:
138138 return None
139139 else:
877877 # rcode in it. Remove the server from the mix if
878878 # the rcode isn't SERVFAIL.
879879 #
880 if rcode != dns.rcode.SERVFAIL or not retry_servfail:
880 if rcode != dns.rcode.SERVFAIL or not self.retry_servfail:
881881 nameservers.remove(nameserver)
882882 response = None
883883 if not response is None:
110110 mpack = struct.pack('!H', len(mac))
111111 tsig_rdata = pre_mac + mpack + mac + id + post_mac
112112 if multi:
113 ctx = hmac.new(secret)
113 ctx = hmac.new(secret, digestmod=digestmod)
114114 ml = len(mac)
115115 ctx.update(struct.pack('!H', ml))
116116 ctx.update(mac)
3737
3838 textring = {}
3939 for keyname in keyring:
40 keytext = dns.name.to_text(keyname)
40 keytext = keyname.to_text()
4141 secret = base64.encodestring(keyring[keyname])
4242 textring[keytext] = secret
4343 return textring
1616
1717 MAJOR = 1
1818 MINOR = 11
19 MICRO = 0
19 MICRO = 1
2020 RELEASELEVEL = 0x0f
2121 SERIAL = 0
2222
1717 import sys
1818 from distutils.core import setup
1919
20 version = '1.11.0'
20 version = '1.11.1'
2121
2222 kwargs = {
2323 'name' : 'dnspython',
7171 start = 2
7272 stop = 1
7373 step = 1
74 dns.grange.from_text('{0}-{1}/{2}'.format(start, stop, step))
74 dns.grange.from_text('%d-%d/%d' % (start, stop, step))
7575 self.assertRaises(AssertionError, bad)
7676
7777 def testFailFromText2(self):
7979 start = '-1'
8080 stop = 3
8181 step = 1
82 dns.grange.from_text('{0}-{1}/{2}'.format(start, stop, step))
82 dns.grange.from_text('%s-%d/%d' % (start, stop, step))
8383 self.assertRaises(dns.exception.SyntaxError, bad)
8484
8585 def testFailFromText2(self):
8787 start = 1
8888 stop = 4
8989 step = '-2'
90 dns.grange.from_text('{0}-{1}/{2}'.format(start, stop, step))
90 dns.grange.from_text('%d-%d/%s' % (start, stop, step))
9191 self.assertRaises(dns.exception.SyntaxError, bad)
9292
9393 if __name__ == '__main__':