Skip to content

Commit dd39e2d

Browse files
committed
compile fixes
1 parent 4ebc0e8 commit dd39e2d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pdns/cryptoppsigners.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CryptoPPECDSADNSCryptoKeyEngine : public DNSCryptoKeyEngine
4545
template<class HASHER, class CURVE, int BITS> void CryptoPPECDSADNSCryptoKeyEngine<HASHER,CURVE,BITS>::create(unsigned int bits)
4646
{
4747
if(bits != BITS)
48-
throw runtime_error("This CryptoPP class can only hosts keys of length "+to_string(BITS));
48+
throw runtime_error("This CryptoPP class can only hosts keys of length "+std::to_string(BITS));
4949
AutoSeededRandomPool prng;
5050
privatekey_t* privateKey = new privatekey_t();
5151
CryptoPP::OID oid=CURVE();
@@ -68,7 +68,7 @@ DNSCryptoKeyEngine::storvector_t CryptoPPECDSADNSCryptoKeyEngine<HASHER,CURVE,BI
6868
{
6969
/* Algorithm: 13 (ECDSAP256SHA256)
7070
PrivateKey: GU6SnQ/Ou+xC5RumuIUIuJZteXT2z0O/ok1s38Et6mQ= */
71-
string algostr=to_string(d_algorithm);
71+
string algostr=std::to_string(d_algorithm);
7272
if(d_algorithm==13)
7373
algostr+=" (ECDSAP256SHA256)";
7474
else if(d_algorithm==14)

pdns/lua-recursor4.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "logger.hh"
44
#include "dnsparser.hh"
55
#include "syncres.hh"
6+
#include "namespaces.hh"
67

78
#if !defined(HAVE_LUA)
89

@@ -103,7 +104,7 @@ static int getFakePTRRecords(const DNSName& qname, const std::string& prefix, ve
103104
string newquery;
104105
for(int n = 0; n < 4; ++n) {
105106
newquery +=
106-
lexical_cast<string>(strtol(parts[n*2].c_str(), 0, 16) + 16*strtol(parts[n*2+1].c_str(), 0, 16));
107+
std::to_string(strtol(parts[n*2].c_str(), 0, 16) + 16*strtol(parts[n*2+1].c_str(), 0, 16));
107108
newquery.append(1,'.');
108109
}
109110
newquery += "in-addr.arpa.";

0 commit comments

Comments
 (0)