[openssh-commits] [openssh] 01/01: Only call dh_set_moduli_file if using OpenSSL.

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Mar 13 14:41:54 AEDT 2021


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 5ca8a9216559349c56e09039c4335636fd85c241
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Sat Mar 13 14:40:43 2021 +1100

    Only call dh_set_moduli_file if using OpenSSL.
    
    Fixes link failure when configuring --without-openssl since dh.c is not
    linked in.
---
 sshd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sshd.c b/sshd.c
index bda7455f..32dd4dd4 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1725,8 +1725,10 @@ main(int ac, char **av)
 	parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
 	    cfg, &includes, NULL);
 
+#ifdef WITH_OPENSSL
 	if (options.moduli_file != NULL)
 		dh_set_moduli_file(options.moduli_file);
+#endif
 
 	/* Fill in default values for those options not explicitly set. */
 	fill_default_server_options(&options);

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list