Imported Upstream version 1.11.1
SVN-Git Migration
8 years ago
|
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 |
|
0 | 34 |
2013-07-01 Bob Halley <halley@dnspython.org>
|
1 | 35 |
|
2 | 36 |
* (Version 1.11.0 released)
|
0 | 0 |
Metadata-Version: 1.1
|
1 | 1 |
Name: dnspython
|
2 | |
Version: 1.11.0
|
|
2 |
Version: 1.11.1
|
3 | 3 |
Summary: DNS toolkit
|
4 | 4 |
Home-page: http://www.dnspython.org
|
5 | 5 |
Author: Bob Halley
|
6 | 6 |
Author-email: halley@dnspython.org
|
7 | 7 |
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
|
9 | 9 |
Description: dnspython is a DNS toolkit for Python. It supports almost all
|
10 | 10 |
record types. It can be used for queries, zone transfers, and dynamic
|
11 | 11 |
updates. It supports TSIG authenticated messages and EDNS0.
|
21 | 21 |
|
22 | 22 |
ABOUT THIS RELEASE
|
23 | 23 |
|
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.
|
25 | 46 |
|
26 | 47 |
New since 1.10.0:
|
27 | 48 |
|
132 | 132 |
return None
|
133 | 133 |
if isinstance(value, dns.node.Node):
|
134 | 134 |
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)
|
137 | 137 |
except KeyError:
|
138 | 138 |
return None
|
139 | 139 |
else:
|
877 | 877 |
# rcode in it. Remove the server from the mix if
|
878 | 878 |
# the rcode isn't SERVFAIL.
|
879 | 879 |
#
|
880 | |
if rcode != dns.rcode.SERVFAIL or not retry_servfail:
|
|
880 |
if rcode != dns.rcode.SERVFAIL or not self.retry_servfail:
|
881 | 881 |
nameservers.remove(nameserver)
|
882 | 882 |
response = None
|
883 | 883 |
if not response is None:
|
110 | 110 |
mpack = struct.pack('!H', len(mac))
|
111 | 111 |
tsig_rdata = pre_mac + mpack + mac + id + post_mac
|
112 | 112 |
if multi:
|
113 | |
ctx = hmac.new(secret)
|
|
113 |
ctx = hmac.new(secret, digestmod=digestmod)
|
114 | 114 |
ml = len(mac)
|
115 | 115 |
ctx.update(struct.pack('!H', ml))
|
116 | 116 |
ctx.update(mac)
|
37 | 37 |
|
38 | 38 |
textring = {}
|
39 | 39 |
for keyname in keyring:
|
40 | |
keytext = dns.name.to_text(keyname)
|
|
40 |
keytext = keyname.to_text()
|
41 | 41 |
secret = base64.encodestring(keyring[keyname])
|
42 | 42 |
textring[keytext] = secret
|
43 | 43 |
return textring
|
17 | 17 |
import sys
|
18 | 18 |
from distutils.core import setup
|
19 | 19 |
|
20 | |
version = '1.11.0'
|
|
20 |
version = '1.11.1'
|
21 | 21 |
|
22 | 22 |
kwargs = {
|
23 | 23 |
'name' : 'dnspython',
|
71 | 71 |
start = 2
|
72 | 72 |
stop = 1
|
73 | 73 |
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))
|
75 | 75 |
self.assertRaises(AssertionError, bad)
|
76 | 76 |
|
77 | 77 |
def testFailFromText2(self):
|
|
79 | 79 |
start = '-1'
|
80 | 80 |
stop = 3
|
81 | 81 |
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))
|
83 | 83 |
self.assertRaises(dns.exception.SyntaxError, bad)
|
84 | 84 |
|
85 | 85 |
def testFailFromText2(self):
|
|
87 | 87 |
start = 1
|
88 | 88 |
stop = 4
|
89 | 89 |
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))
|
91 | 91 |
self.assertRaises(dns.exception.SyntaxError, bad)
|
92 | 92 |
|
93 | 93 |
if __name__ == '__main__':
|