compile fixes
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 22 Dec 2015 15:44:04 +0000 (16:44 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 22 Dec 2015 15:44:30 +0000 (16:44 +0100)
pdns/cryptoppsigners.cc
pdns/lua-recursor4.cc

index 93497a861c6c41121f567993ac544c7cea59d02d..348ac81246e5e63aa1685eee4427d27d5b1d872d 100644 (file)
@@ -45,7 +45,7 @@ private:
 template<class HASHER, class CURVE, int BITS> void CryptoPPECDSADNSCryptoKeyEngine<HASHER,CURVE,BITS>::create(unsigned int bits)
 {
   if(bits != BITS)
-    throw runtime_error("This CryptoPP class can only hosts keys of length "+to_string(BITS));
+    throw runtime_error("This CryptoPP class can only hosts keys of length "+std::to_string(BITS));
   AutoSeededRandomPool prng;
   privatekey_t* privateKey = new privatekey_t();
   CryptoPP::OID oid=CURVE();
@@ -68,7 +68,7 @@ DNSCryptoKeyEngine::storvector_t CryptoPPECDSADNSCryptoKeyEngine<HASHER,CURVE,BI
 {
    /* Algorithm: 13 (ECDSAP256SHA256)
    PrivateKey: GU6SnQ/Ou+xC5RumuIUIuJZteXT2z0O/ok1s38Et6mQ= */
-  string algostr=to_string(d_algorithm);
+  string algostr=std::to_string(d_algorithm);
   if(d_algorithm==13) 
     algostr+=" (ECDSAP256SHA256)";
   else if(d_algorithm==14)
index a4232c563bbd50ce54524bc2a00b5ac43ad7f3ef..ca08e838a1478746824c89a4d32697222ba58f2a 100644 (file)
@@ -3,6 +3,7 @@
 #include "logger.hh"
 #include "dnsparser.hh"
 #include "syncres.hh"
+#include "namespaces.hh"
 
 #if !defined(HAVE_LUA)
 
@@ -103,7 +104,7 @@ static int getFakePTRRecords(const DNSName& qname, const std::string& prefix, ve
   string newquery;
   for(int n = 0; n < 4; ++n) {
     newquery +=
-      lexical_cast<string>(strtol(parts[n*2].c_str(), 0, 16) + 16*strtol(parts[n*2+1].c_str(), 0, 16));
+      std::to_string(strtol(parts[n*2].c_str(), 0, 16) + 16*strtol(parts[n*2+1].c_str(), 0, 16));
     newquery.append(1,'.');
   }
   newquery += "in-addr.arpa.";