summaryrefslogtreecommitdiff
path: root/src/anytunError.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-06-22 23:09:15 +0000
committerChristian Pointner <equinox@anytun.org>2014-06-22 23:09:15 +0000
commitfac90fc49e667b18522b442ff15edd3bb8eb804b (patch)
tree7530b98b4b7c50f0512184e9a2369a0b196306a7 /src/anytunError.cpp
parentfixed typo in license header (diff)
parentimplemented key derivation using libnettle (diff)
merged nettle featuer branch to trunk
Diffstat (limited to 'src/anytunError.cpp')
-rw-r--r--src/anytunError.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/anytunError.cpp b/src/anytunError.cpp
index d0cd451..58d8fd7 100644
--- a/src/anytunError.cpp
+++ b/src/anytunError.cpp
@@ -36,7 +36,8 @@
#include <boost/system/system_error.hpp>
#ifndef NO_CRYPT
-#ifndef USE_SSL_CRYPTO
+
+#if defined(USE_GCRYPT)
std::ostream& operator<<(std::ostream& stream, AnytunGpgError const& value)
{
char buf[STERROR_TEXT_MAX];
@@ -45,6 +46,7 @@ std::ostream& operator<<(std::ostream& stream, AnytunGpgError const& value)
return stream << buf;
}
#endif
+
#endif
std::ostream& operator<<(std::ostream& stream, AnytunErrno const& value)