[PATCH] only enable functions in dh.c when openssl is used

Marcus Folkesson marcus.folkesson at gmail.com
Sun Oct 29 04:48:39 AEDT 2017


Signed-off-by: Marcus Folkesson <marcus.folkesson at gmail.com>
---
 dh.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dh.c b/dh.c
index 47531242..eebee237 100644
--- 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 */
-- 
2.13.1



More information about the openssh-unix-dev mailing list