]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Update the default TSIG algorithm to hmac-sha256.
authorBrian Wellington <bwelling@xbill.org>
Mon, 11 May 2020 19:40:35 +0000 (12:40 -0700)
committerBrian Wellington <bwelling@xbill.org>
Mon, 11 May 2020 19:40:35 +0000 (12:40 -0700)
In the upcoming update to RFC 2845, HMAC-MD5 will move to "MUST NOT"
use, so it shouldn't be the default.

dns/tsig.py

index 2517162064a8c87efe9eb50e9623989c65280473..dade52aab9ed5f55e1580f2a8b34df707cea4c6e 100644 (file)
@@ -77,7 +77,7 @@ _hashes = {
     HMAC_MD5: hashlib.md5,
 }
 
-default_algorithm = HMAC_MD5
+default_algorithm = HMAC_SHA256
 
 BADSIG = 16
 BADKEY = 17