summaryrefslogtreecommitdiff
path: root/dh.c
diff options
context:
space:
mode:
authorMarcus Folkesson <marcus.folkesson@gmail.com>2017-10-28 19:48:39 +0200
committerDamien Miller <djm@mindrot.org>2017-11-03 13:13:54 +1100
commit6b373e4635a7470baa94253dd1dc8953663da9e8 (patch)
tree4f74662cd3b80bc46d4c23c5bc0b7d85c1d91c27 /dh.c
parent939b30ba23848b572e15bf92f0f1a3d9cf3acc2b (diff)
only enable functions in dh.c when openssl is used
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Diffstat (limited to 'dh.c')
-rw-r--r--dh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dh.c b/dh.c
index 475312427..eebee2377 100644
--- a/dh.c
+++ b/dh.c
@@ -25,6 +25,7 @@
25 25
26#include "includes.h" 26#include "includes.h"
27 27
28#ifdef WITH_OPENSSL
28 29
29#include <openssl/bn.h> 30#include <openssl/bn.h>
30#include <openssl/dh.h> 31#include <openssl/dh.h>
@@ -465,3 +466,5 @@ dh_estimate(int bits)
465 return 7680; 466 return 7680;
466 return 8192; 467 return 8192;
467} 468}
469
470#endif /* WITH_OPENSSL */