]> granicus.if.org Git - pdns/commitdiff
Add hmac-md5 shortname support
authorAki Tuomi <cmouse@cmouse.fi>
Sat, 23 May 2015 13:57:31 +0000 (16:57 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Thu, 28 May 2015 14:42:23 +0000 (17:42 +0300)
pdns/misc.cc

index b3584c2bf5fb256c56fd5e5e4a4bd43698be5261..be44536a6fac4b012ad94efe11c591489f4f0ad1 100644 (file)
@@ -1005,7 +1005,7 @@ bool getTSIGHashEnum(const string &algoName, TSIGHashEnum& algoEnum)
 {
   string normalizedName = toLowerCanonic(algoName);
 
-  if (normalizedName == "hmac-md5.sig-alg.reg.int")
+  if (normalizedName == "hmac-md5.sig-alg.reg.int" || normalizedName == "hmac-md5")
     algoEnum = TSIG_MD5;
   else if (normalizedName == "hmac-sha1")
     algoEnum = TSIG_SHA1;