From: Remi Gacogne Date: Thu, 12 Apr 2018 12:36:09 +0000 (+0200) Subject: Fix a warning on botan >= 2.5.0 X-Git-Tag: dnsdist-1.3.1~156^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d9895fe11d5371f5d775d9f13a8b52f494021b1;p=pdns Fix a warning on botan >= 2.5.0 --- 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(); }