]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix a warning on botan >= 2.5.0 6596/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 12 Apr 2018 12:36:09 +0000 (14:36 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 10 May 2018 11:50:45 +0000 (13:50 +0200)
(cherry picked from commit 7d9895fe11d5371f5d775d9f13a8b52f494021b1)

pdns/botansigners.cc

index 5d7b43b62b5bf071687435832c4c33f1b030fec5..cb04d728947dfea070a121eef92ae5cdb9b2d1c9 100644 (file)
@@ -26,6 +26,7 @@
 #include <botan/gost_3410.h>
 #include <botan/gost_3411.h>
 #include <botan/pubkey.h>
+#include <botan/version.h>
 #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<GOST_3410_PublicKey>(params, point);
   d_key.reset();
 }