Skip to content

Commit

Permalink
Put dh_set_moduli_file call inside ifdef WITH_OPENSSL. Fixes build with
Browse files Browse the repository at this point in the history
OPENSSL=no.
  • Loading branch information
daztucker committed Jul 19, 2021
1 parent 750e80c commit 10d483a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion usr.bin/ssh/sshd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: sshd.c,v 1.577 2021/07/02 05:11:21 dtucker Exp $ */
/* $OpenBSD: sshd.c,v 1.578 2021/07/19 02:21:50 dtucker Exp $ */
/*
* Author: Tatu Ylonen <[email protected]>
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
Expand Down Expand Up @@ -1635,8 +1635,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);
Expand Down

0 comments on commit 10d483a

Please sign in to comment.