summaryrefslogtreecommitdiffstats
path: root/src/lib/cryptolink/botan_link.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cryptolink/botan_link.cc')
-rw-r--r--src/lib/cryptolink/botan_link.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/cryptolink/botan_link.cc b/src/lib/cryptolink/botan_link.cc
index c6ca682d21..f57cb45dd3 100644
--- a/src/lib/cryptolink/botan_link.cc
+++ b/src/lib/cryptolink/botan_link.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2015,2017 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -10,7 +10,10 @@
#include <cryptolink/crypto_hash.h>
#include <cryptolink/crypto_hmac.h>
+#define BOTAN_NO_DEPRECATED_WARNINGS
+
#include <botan/botan.h>
+#include <botan/init.h>
namespace isc {
namespace cryptolink {
@@ -32,7 +35,7 @@ CryptoLink::initialize() {
try {
c.impl_ = new CryptoLinkImpl();
} catch (const Botan::Exception& ex) {
- isc_throw(InitializationError, ex.what());
+ isc_throw(InitializationError, "Botan error: " << ex.what());
}
}
}