summaryrefslogtreecommitdiffstats
path: root/src/lib/cryptolink/openssl_hash.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2014-09-17 11:41:04 +0200
committerFrancis Dupont <fdupont@isc.org>2014-09-17 11:41:04 +0200
commit8cf2ee46b3d7398f4f716435be3d9b19bf3599f5 (patch)
treee03a66185729711bcad201b0cb2a39f0deaba112 /src/lib/cryptolink/openssl_hash.cc
parentupdate ChangeLog (diff)
downloadkea-8cf2ee46b3d7398f4f716435be3d9b19bf3599f5.tar.xz
kea-8cf2ee46b3d7398f4f716435be3d9b19bf3599f5.zip
[trac3471] cryptolink code cleanup
Diffstat (limited to 'src/lib/cryptolink/openssl_hash.cc')
-rw-r--r--src/lib/cryptolink/openssl_hash.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/cryptolink/openssl_hash.cc b/src/lib/cryptolink/openssl_hash.cc
index b0ebe73c66..dfc870c400 100644
--- a/src/lib/cryptolink/openssl_hash.cc
+++ b/src/lib/cryptolink/openssl_hash.cc
@@ -19,9 +19,12 @@
#include <openssl/evp.h>
+#include <cryptolink/openssl_common.h>
+
#include <cstring>
-namespace {
+namespace isc {
+namespace cryptolink {
/// @brief Decode the HashAlgorithm enum into an EVP_MD pointer (or 0)
///
@@ -51,12 +54,6 @@ getOpenSSLHashAlgorithm(isc::cryptolink::HashAlgorithm algorithm) {
return (0);
}
-} // local namespace
-
-
-namespace isc {
-namespace cryptolink {
-
/// \brief OpenSSL implementation of Hash. Each method is the counterpart
/// of the Hash corresponding method.
class HashImpl {