diff options
author | 2020-10-16 13:26:13 +0000 | |
---|---|---|
committer | 2020-10-16 13:26:13 +0000 | |
commit | 7e9258b619e489c6f0fefc868d4051d152306a2c (patch) | |
tree | 6d23238a138a33923dfdc75444700e7085a0c6b2 /usr.bin/ssh/auth.c | |
parent | revised log infrastructure for OpenSSH (diff) | |
download | wireguard-openbsd-7e9258b619e489c6f0fefc868d4051d152306a2c.tar.xz wireguard-openbsd-7e9258b619e489c6f0fefc868d4051d152306a2c.zip |
LogVerbose keyword for ssh and sshd
Allows forcing maximum debug logging by file/function/line pattern-
lists.
ok markus@
Diffstat (limited to 'usr.bin/ssh/auth.c')
-rw-r--r-- | usr.bin/ssh/auth.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/auth.c b/usr.bin/ssh/auth.c index 8be8b4f3d65..f5e9175acbd 100644 --- a/usr.bin/ssh/auth.c +++ b/usr.bin/ssh/auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.147 2020/08/27 01:07:09 djm Exp $ */ +/* $OpenBSD: auth.c,v 1.148 2020/10/16 13:26:13 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -475,11 +475,15 @@ getpwnamallow(struct ssh *ssh, const char *user) auth_session_t *as; struct passwd *pw; struct connection_info *ci; + u_int i; ci = get_connection_info(ssh, 1, options.use_dns); ci->user = user; parse_server_match_config(&options, &includes, ci); log_change_level(options.log_level); + log_verbose_reset(); + for (i = 0; i < options.num_log_verbose; i++) + log_verbose_add(options.log_verbose[i]); process_permitopen(ssh, &options); pw = getpwnam(user); |