diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-02-19 22:25:37 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-02-19 22:25:37 +1100 |
commit | 1629c07c0725fd5cc533c9664b8e8add27a81c69 (patch) | |
tree | 2954f5aba367319421509ea0100b76ab710260b5 /monitor.c | |
parent | 591322ae3897bef0b19236ec0c2a6053e8466e71 (diff) |
- dtucker@cvs.openbsd.org 2007/02/19 10:45:58
[monitor_wrap.c servconf.c servconf.h monitor.c sshd_config.5]
Teach Match how handle config directives that are used before
authentication. This allows configurations such as permitting password
authentication from the local net only while requiring pubkey from
offsite. ok djm@, man page bits ok jmc@
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: monitor.c,v 1.89 2006/11/07 10:31:31 markus Exp $ */ | 1 | /* $OpenBSD: monitor.c,v 1.90 2007/02/19 10:45:58 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> | 3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> |
4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> | 4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> |
@@ -642,6 +642,9 @@ mm_answer_pwnamallow(int sock, Buffer *m) | |||
642 | #endif | 642 | #endif |
643 | buffer_put_cstring(m, pwent->pw_dir); | 643 | buffer_put_cstring(m, pwent->pw_dir); |
644 | buffer_put_cstring(m, pwent->pw_shell); | 644 | buffer_put_cstring(m, pwent->pw_shell); |
645 | buffer_put_string(m, &options, sizeof(options)); | ||
646 | if (options.banner != NULL) | ||
647 | buffer_put_cstring(m, options.banner); | ||
645 | 648 | ||
646 | out: | 649 | out: |
647 | debug3("%s: sending MONITOR_ANS_PWNAM: %d", __func__, allowed); | 650 | debug3("%s: sending MONITOR_ANS_PWNAM: %d", __func__, allowed); |