summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-07-20 21:22:58 +0200
committerlouiz’ <louiz@louiz.org>2017-07-20 21:22:58 +0200
commitffb402f0adb9f808c7b8bc9616e71f7b3f8931ac (patch)
tree074862e68c2c0d055d87a1be99947171c839bae6 /src/utils
parentf0f3d3d4e2fb7c02a5b2ad517632ec5071fefb45 (diff)
downloadbiboumi-ffb402f0adb9f808c7b8bc9616e71f7b3f8931ac.tar.gz
biboumi-ffb402f0adb9f808c7b8bc9616e71f7b3f8931ac.tar.bz2
biboumi-ffb402f0adb9f808c7b8bc9616e71f7b3f8931ac.tar.xz
biboumi-ffb402f0adb9f808c7b8bc9616e71f7b3f8931ac.zip
Drop support for botan < 2.0
fix #3274
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/sha1.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/utils/sha1.cpp b/src/utils/sha1.cpp
index 2e6efc2..1a0d185 100644
--- a/src/utils/sha1.cpp
+++ b/src/utils/sha1.cpp
@@ -18,13 +18,7 @@
std::string sha1(const std::string& input)
{
#ifdef BOTAN_FOUND
-# if BOTAN_VERSION_CODE < BOTAN_VERSION_CODE_FOR(1,11,34)
- auto sha1 = Botan::HashFunction::create("SHA-1");
- if (!sha1)
- throw Botan::Algorithm_Not_Found("SHA-1");
-# else
auto sha1 = Botan::HashFunction::create_or_throw("SHA-1");
-# endif
sha1->update(input);
return Botan::hex_encode(sha1->final(), false);
#endif