diff options
Diffstat (limited to 'dns/tsig.py')
-rw-r--r-- | dns/tsig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/tsig.py b/dns/tsig.py index 63b925a..6e97dce 100644 --- a/dns/tsig.py +++ b/dns/tsig.py @@ -111,7 +111,7 @@ def sign(wire, keyname, secret, time, fudge, original_id, error, mpack = struct.pack('!H', len(mac)) tsig_rdata = pre_mac + mpack + mac + id + post_mac if multi: - ctx = hmac.new(secret) + ctx = hmac.new(secret, digestmod=digestmod) ml = len(mac) ctx.update(struct.pack('!H', ml)) ctx.update(mac) |