summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/servconf.c b/servconf.c
index 6297143f1..d82e84275 100644
--- a/servconf.c
+++ b/servconf.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: servconf.c,v 1.89 2001/08/16 19:18:34 jakob Exp $"); 13RCSID("$OpenBSD: servconf.c,v 1.90 2001/11/11 13:02:31 markus Exp $");
14 14
15#if defined(KRB4) || defined(KRB5) 15#if defined(KRB4) || defined(KRB5)
16#include <krb.h> 16#include <krb.h>
@@ -213,8 +213,15 @@ fill_default_server_options(ServerOptions *options)
213 options->client_alive_count_max = 3; 213 options->client_alive_count_max = 3;
214 if (options->authorized_keys_file == NULL) 214 if (options->authorized_keys_file == NULL)
215 options->authorized_keys_file = _PATH_SSH_USER_PERMITTED_KEYS; 215 options->authorized_keys_file = _PATH_SSH_USER_PERMITTED_KEYS;
216 if (options->authorized_keys_file2 == NULL) 216 if (options->authorized_keys_file2 == NULL) {
217 options->authorized_keys_file2 = _PATH_SSH_USER_PERMITTED_KEYS2; 217 /* authorized_keys_file2 falls back to authorized_keys_file */
218 if (options->authorized_keys_file != NULL)
219 options->authorized_keys_file2 = options->authorized_keys_file;
220 else
221 options->authorized_keys_file2 = _PATH_SSH_USER_PERMITTED_KEYS2;
222 }
223 if (options->authorized_keys_file == NULL)
224 options->authorized_keys_file = _PATH_SSH_USER_PERMITTED_KEYS;
218 if (options->pam_authentication_via_kbd_int == -1) 225 if (options->pam_authentication_via_kbd_int == -1)
219 options->pam_authentication_via_kbd_int = 0; 226 options->pam_authentication_via_kbd_int = 0;
220} 227}