summaryrefslogtreecommitdiff
path: root/dns/renderer.py
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2010-01-13 14:40:50 -0800
committerBob Halley <halley@nominum.com>2010-01-13 14:40:50 -0800
commitdcdd4f08545751d42e761acdd15b040c9fcfe0ae (patch)
tree6f34471331454b40bc94b4f11eb1bd052385e80f /dns/renderer.py
parentd70493b95619e5686a4a0e5d06d88ad3aa199365 (diff)
downloaddnspython-dcdd4f08545751d42e761acdd15b040c9fcfe0ae.tar.gz
tsig import cleanups; rename tsig signing routing from "hmac_md5" to "sign"
Diffstat (limited to 'dns/renderer.py')
-rw-r--r--dns/renderer.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/dns/renderer.py b/dns/renderer.py
index b8a0c94..2a53089 100644
--- a/dns/renderer.py
+++ b/dns/renderer.py
@@ -274,16 +274,16 @@ class Renderer(object):
self._set_section(ADDITIONAL)
before = self.output.tell()
s = self.output.getvalue()
- (tsig_rdata, self.mac, ctx) = dns.tsig.hmac_md5(s,
- keyname,
- secret,
- int(time.time()),
- fudge,
- id,
- tsig_error,
- other_data,
- request_mac,
- algorithm=algorithm)
+ (tsig_rdata, self.mac, ctx) = dns.tsig.sign(s,
+ keyname,
+ secret,
+ int(time.time()),
+ fudge,
+ id,
+ tsig_error,
+ other_data,
+ request_mac,
+ algorithm=algorithm)
keyname.to_wire(self.output, self.compress, self.origin)
self.output.write(struct.pack('!HHIH', dns.rdatatype.TSIG,
dns.rdataclass.ANY, 0, 0))