summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
authordjm <djm>2002-01-22 12:19:11 +0000
committerdjm <djm>2002-01-22 12:19:11 +0000
commita53a2dc316f303c2bbb63a710f8e5d36825786b3 (patch)
treec2cb2134c0fd4a776e3624afda619f33b2a9dc72 /servconf.c
parentc3d58305687bcf99ff0fbee5b76951ce5ab6e33f (diff)
downloadopenssh-a53a2dc316f303c2bbb63a710f8e5d36825786b3.tar.gz
- stevesk@cvs.openbsd.org 2002/01/04 18:14:16
[servconf.c sshd.8] protocol 2 HostKey code default is now /etc/ssh_host_rsa_key and /etc/ssh_host_dsa_key like we have in sshd_config. ok markus@
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/servconf.c b/servconf.c
index e772cd46..445d2da7 100644
--- a/servconf.c
+++ b/servconf.c
@@ -10,7 +10,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: servconf.c,v 1.96 2002/01/04 17:59:17 stevesk Exp $");
+RCSID("$OpenBSD: servconf.c,v 1.97 2002/01/04 18:14:16 stevesk Exp $");
#if defined(KRB4) || defined(KRB5)
#include <krb.h>
@@ -124,9 +124,14 @@ fill_default_server_options(ServerOptions *options)
if (options->num_host_key_files == 0) {
/* fill default hostkeys for protocols */
if (options->protocol & SSH_PROTO_1)
- options->host_key_files[options->num_host_key_files++] = _PATH_HOST_KEY_FILE;
- if (options->protocol & SSH_PROTO_2)
- options->host_key_files[options->num_host_key_files++] = _PATH_HOST_DSA_KEY_FILE;
+ options->host_key_files[options->num_host_key_files++] =
+ _PATH_HOST_KEY_FILE;
+ if (options->protocol & SSH_PROTO_2) {
+ options->host_key_files[options->num_host_key_files++] =
+ _PATH_HOST_RSA_KEY_FILE;
+ options->host_key_files[options->num_host_key_files++] =
+ _PATH_HOST_DSA_KEY_FILE;
+ }
}
if (options->num_ports == 0)
options->ports[options->num_ports++] = SSH_DEFAULT_PORT;