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

Damien Miller djm at mindrot.org
Fri Nov 3 13:21:42 AEDT 2017


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
> 


More information about the openssh-unix-dev mailing list