]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Try again to fix TSIG hashes
authorBob Halley <halley@dnspython.org>
Thu, 12 May 2016 21:19:35 +0000 (14:19 -0700)
committerBob Halley <halley@dnspython.org>
Thu, 12 May 2016 21:19:35 +0000 (14:19 -0700)
dns/tsig.py

index 931d27d0fb2e8f6c36aec71995cd1bda04156ce2..92ce86039f72d0d978e96bc11ee44f46922bfaa1 100644 (file)
@@ -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")