From dd39e2dca1b80dbb211e25fc148d17ce5eb999a4 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 22 Dec 2015 16:44:04 +0100 Subject: [PATCH] compile fixes --- pdns/cryptoppsigners.cc | 4 ++-- pdns/lua-recursor4.cc | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pdns/cryptoppsigners.cc b/pdns/cryptoppsigners.cc index 93497a861..348ac8124 100644 --- a/pdns/cryptoppsigners.cc +++ b/pdns/cryptoppsigners.cc @@ -45,7 +45,7 @@ private: template void CryptoPPECDSADNSCryptoKeyEngine::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(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."; -- 2.40.0