summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-05-17 01:24:17 +0000
committerDamien Miller <djm@mindrot.org>2017-05-17 11:25:22 +1000
commit54cd41a4663fad66406dd3c8fe0e4760ccd8a899 (patch)
tree382e0546d26cf1bb6ce54c0dc1b5278df697450c /servconf.c
parent277abcda3f1b08d2376686f0ef20320160d4c8ab (diff)
upstream commit
allow LogLevel in sshd_config Match blocks; ok dtucker bz#2717 Upstream-ID: 662e303be63148f47db1aa78ab81c5c2e732baa8
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/servconf.c b/servconf.c
index 73f2c2b18..a112798e4 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,5 +1,5 @@
1 1
2/* $OpenBSD: servconf.c,v 1.307 2017/04/27 13:40:05 jsg Exp $ */ 2/* $OpenBSD: servconf.c,v 1.308 2017/05/17 01:24:17 djm Exp $ */
3/* 3/*
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5 * All rights reserved 5 * All rights reserved
@@ -449,7 +449,7 @@ static struct {
449 { "keyregenerationinterval", sDeprecated, SSHCFG_GLOBAL }, 449 { "keyregenerationinterval", sDeprecated, SSHCFG_GLOBAL },
450 { "permitrootlogin", sPermitRootLogin, SSHCFG_ALL }, 450 { "permitrootlogin", sPermitRootLogin, SSHCFG_ALL },
451 { "syslogfacility", sLogFacility, SSHCFG_GLOBAL }, 451 { "syslogfacility", sLogFacility, SSHCFG_GLOBAL },
452 { "loglevel", sLogLevel, SSHCFG_GLOBAL }, 452 { "loglevel", sLogLevel, SSHCFG_ALL },
453 { "rhostsauthentication", sDeprecated, SSHCFG_GLOBAL }, 453 { "rhostsauthentication", sDeprecated, SSHCFG_GLOBAL },
454 { "rhostsrsaauthentication", sDeprecated, SSHCFG_ALL }, 454 { "rhostsrsaauthentication", sDeprecated, SSHCFG_ALL },
455 { "hostbasedauthentication", sHostbasedAuthentication, SSHCFG_ALL }, 455 { "hostbasedauthentication", sHostbasedAuthentication, SSHCFG_ALL },
@@ -1345,7 +1345,7 @@ process_server_config_line(ServerOptions *options, char *line,
1345 if (value == SYSLOG_LEVEL_NOT_SET) 1345 if (value == SYSLOG_LEVEL_NOT_SET)
1346 fatal("%.200s line %d: unsupported log level '%s'", 1346 fatal("%.200s line %d: unsupported log level '%s'",
1347 filename, linenum, arg ? arg : "<NONE>"); 1347 filename, linenum, arg ? arg : "<NONE>");
1348 if (*log_level_ptr == -1) 1348 if (*activep && *log_level_ptr == -1)
1349 *log_level_ptr = (LogLevel) value; 1349 *log_level_ptr = (LogLevel) value;
1350 break; 1350 break;
1351 1351
@@ -1989,6 +1989,7 @@ copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
1989 M_CP_INTOPT(ip_qos_bulk); 1989 M_CP_INTOPT(ip_qos_bulk);
1990 M_CP_INTOPT(rekey_limit); 1990 M_CP_INTOPT(rekey_limit);
1991 M_CP_INTOPT(rekey_interval); 1991 M_CP_INTOPT(rekey_interval);
1992 M_CP_INTOPT(log_level);
1992 1993
1993 /* 1994 /*
1994 * The bind_mask is a mode_t that may be unsigned, so we can't use 1995 * The bind_mask is a mode_t that may be unsigned, so we can't use