From 2ae24e0984e2db09d741aff1ce762565e1382b39 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 19 Feb 2018 10:21:19 +0100 Subject: [PATCH] make pdnsutil support base64 encoded keys for ipcipher --- pdns/pdnsutil.cc | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index b73bbf39b1..ffad92e75b 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1003,9 +1003,9 @@ int editZone(DNSSECKeeper& dk, const DNSName &zone) { return EXIT_SUCCESS; } -static int xcryptIP(const std::string& cmd, const std::string& ip, const std::string& key) +static int xcryptIP(const std::string& cmd, const std::string& ip, const std::string& rkey) { - string rkey = makeIPCipherKey(key); + ComboAddress ca(ip), ret; if(cmd=="ipencrypt") @@ -1970,9 +1970,9 @@ try cout<<"increase-serial ZONE Increases the SOA-serial by 1. Uses SOA-EDIT"<