]> granicus.if.org Git - pdns/commitdiff
fix up tsig-tests
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 8 Jan 2016 08:45:28 +0000 (09:45 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 8 Jan 2016 08:45:28 +0000 (09:45 +0100)
pdns/tsig-tests.cc

index 8739bb915dd588e3a1174f796d27b16ee1ef8396..1c54284bf7e585047fc207675cca1b86af0ea17c 100644 (file)
@@ -93,7 +93,11 @@ try
 #endif
   seedRandom("/dev/urandom");
   cerr<<"Keyname: '"<<keyname.toString()<<"', algo: '"<<trc.d_algoName.toString()<<"', key: '"<<Base64Encode(key)<<"'\n";
-  AXFRRetriever axfr(dest, DNSName("b.aa"), keyname, DNSName("hmac-md5"), key);
+  TSIGTriplet tt;
+  tt.name=keyname;
+  tt.algo=DNSName("hmac-md5");
+  tt.secret=key;
+  AXFRRetriever axfr(dest, DNSName("b.aa"), tt);
   vector<DNSResourceRecord> res;
   while(axfr.getChunk(res)) {
   }