mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
Only call dh_set_moduli_file if using OpenSSL.
Fixes link failure when configuring --without-openssl since dh.c is not linked in.
This commit is contained in:
parent
867a7dcf00
commit
5ca8a92165
2
sshd.c
2
sshd.c
@ -1725,8 +1725,10 @@ main(int ac, char **av)
|
|||||||
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
|
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
|
||||||
cfg, &includes, NULL);
|
cfg, &includes, NULL);
|
||||||
|
|
||||||
|
#ifdef WITH_OPENSSL
|
||||||
if (options.moduli_file != NULL)
|
if (options.moduli_file != NULL)
|
||||||
dh_set_moduli_file(options.moduli_file);
|
dh_set_moduli_file(options.moduli_file);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Fill in default values for those options not explicitly set. */
|
/* Fill in default values for those options not explicitly set. */
|
||||||
fill_default_server_options(&options);
|
fill_default_server_options(&options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user