summaryrefslogtreecommitdiff
path: root/src/DHKeyExchange.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-11 02:24:42 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-11 02:29:14 +0900
commite76dc28f7fc26e994a1f3ddf1f665035fcb690e3 (patch)
treebac09b2f880783f0b7bef90c8db14d20a8df7686 /src/DHKeyExchange.h
parent11ac2c4a8885480b64610089ab0da1c4478e6815 (diff)
Added libnettle and libgmp support.
libnettle and libgmp is used by default. Old implementation uses libgcrypt as default. If more and more Linux distributions offer libnettle linked GnuTLS, then this change decrease library dependency against libgcrypt and libgpg-error. The current library detection for libnettle and libgmp is very simple, just use AC_SEARCH_LIBS. util::generateRandomData() was written using SimpleRandomizer, thus no external library dependency from this function.
Diffstat (limited to 'src/DHKeyExchange.h')
-rw-r--r--src/DHKeyExchange.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DHKeyExchange.h b/src/DHKeyExchange.h
index 91e12ff0..1fd7b86f 100644
--- a/src/DHKeyExchange.h
+++ b/src/DHKeyExchange.h
@@ -36,7 +36,9 @@
#define D_DH_KEY_EXCHANGE_H
#include "common.h"
-#ifdef HAVE_LIBGCRYPT
+#ifdef HAVE_LIBGMP
+# include "LibgmpDHKeyExchange.h"
+#elif HAVE_LIBGCRYPT
# include "LibgcryptDHKeyExchange.h"
#elif HAVE_OPENSSL
# include "LibsslDHKeyExchange.h"