From: Bob Halley Date: Thu, 12 May 2016 21:19:35 +0000 (-0700) Subject: Try again to fix TSIG hashes X-Git-Tag: v1.14.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f0f20ddea618563b55cf60591cbdbd00c62deb4;p=thirdparty%2Fdnspython.git Try again to fix TSIG hashes --- diff --git a/dns/tsig.py b/dns/tsig.py index 931d27d0..92ce8603 100644 --- a/dns/tsig.py +++ b/dns/tsig.py @@ -210,7 +210,7 @@ def get_algorithm(algorithm): algorithm = dns.name.from_text(algorithm) try: - return (algorithm.to_digestable(), _hashes[algorithm]) + return (algorithm.to_digestable(), dns.hash.hashes[_hashes[algorithm]]) except KeyError: raise NotImplementedError("TSIG algorithm " + str(algorithm) + " is not supported")