Marcus Folkesson
2017-Oct-28 17:48 UTC
[PATCH] only enable functions in dh.c when openssl is used
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
Damien Miller
2017-Nov-03 02:21 UTC
[PATCH] only enable functions in dh.c when openssl is used
applied - thanks On Sat, 28 Oct 2017, Marcus Folkesson wrote:> 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 > > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >