]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
only enable functions in dh.c when openssl is used
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Sat, 28 Oct 2017 17:48:39 +0000 (19:48 +0200)
committerDamien Miller <djm@mindrot.org>
Fri, 3 Nov 2017 02:13:54 +0000 (13:13 +1100)
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
dh.c

diff --git a/dh.c b/dh.c
index 475312427805893d238424fd7044c30398748745..eebee23779e960782f38b6957a90c2949b05ceb7 100644 (file)
--- a/dh.c
+++ b/dh.c
@@ -25,6 +25,7 @@
 
 #include "includes.h"
 
+#ifdef WITH_OPENSSL
 
 #include <openssl/bn.h>
 #include <openssl/dh.h>
@@ -465,3 +466,5 @@ dh_estimate(int bits)
                return 7680;
        return 8192;
 }
+
+#endif /* WITH_OPENSSL */