string key;
B64Decode("Syq9L9WrBWdxBC+HxKok2g==", key);
- string keyname("pdns-b-aa");
+ DNSName keyname("pdns-b-aa");
TSIGRecordContent trc;
trc.d_algoName="hmac-md5.sig-alg.reg.int";
}
#endif
seedRandom("/dev/urandom");
- cerr<<"Keyname: '"<<keyname<<"', algo: '"<<trc.d_algoName<<"', key: '"<<Base64Encode(key)<<"'\n";
- AXFRRetriever axfr(dest, "b.aa", keyname, "hmac-md5", key);
+ cerr<<"Keyname: '"<<keyname.toString()<<"', algo: '"<<trc.d_algoName.toString()<<"', key: '"<<Base64Encode(key)<<"'\n";
+ AXFRRetriever axfr(dest, DNSName("b.aa"), keyname, DNSName("hmac-md5"), key);
vector<DNSResourceRecord> res;
while(axfr.getChunk(res)) {
}