From f2906bd2a0169f348b3bcdabd41ad7976cec932a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 12 Apr 2018 14:36:09 +0200 Subject: [PATCH] Fix a warning on botan >= 2.5.0 (cherry picked from commit 7d9895fe11d5371f5d775d9f13a8b52f494021b1) --- pdns/botansigners.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/botansigners.cc b/pdns/botansigners.cc index 5d7b43b62..cb04d7289 100644 --- a/pdns/botansigners.cc +++ b/pdns/botansigners.cc @@ -26,6 +26,7 @@ #include #include #include +#include #include "dnssecinfra.hh" using namespace Botan; @@ -170,7 +171,11 @@ void GOSTDNSCryptoKeyEngine::fromPublicKeyString(const std::string& input) y=decode_le((const byte*)input.c_str() + input.length()/2, input.length()/2); auto params = getParams(); +#if BOTAN_VERSION_CODE < BOTAN_VERSION_CODE_FOR(2,5,0) PointGFp point(params.get_curve(), x,y); +#else + PointGFp point(params.point(x,y)); +#endif d_pubkey = std::make_shared(params, point); d_key.reset(); } -- 2.40.0