summaryrefslogtreecommitdiff
path: root/src/authAlgo.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-06-22 22:11:20 +0000
committerChristian Pointner <equinox@anytun.org>2014-06-22 22:11:20 +0000
commitf463e79addfe63297d4e44f9da49a30cc56b68c3 (patch)
treec1160efa35a3145715ef95e33d2cd0c76285f830 /src/authAlgo.h
parentimproved selection of crypto lib (diff)
added compile switches for libnettle
Diffstat (limited to 'src/authAlgo.h')
-rw-r--r--src/authAlgo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/authAlgo.h b/src/authAlgo.h
index a9b8051..d58646f 100644
--- a/src/authAlgo.h
+++ b/src/authAlgo.h
@@ -40,6 +40,8 @@
#if defined(USE_SSL_CRYPTO)
#include <openssl/hmac.h>
+#elif defined(USE_NETTLE)
+#include <nettle/hmac.h>
#else // USE_GCRYPT is the default
#include <gcrypt.h>
#endif
@@ -99,6 +101,9 @@ public:
private:
#if defined(USE_SSL_CRYPTO)
HMAC_CTX ctx_;
+#elif defined(USE_NETTLE)
+ // TODO: nettle
+
#else // USE_GCRYPT is the default
gcry_md_hd_t handle_;
#endif