From 4890e539774ab8b57aa0ee733a5b07bdf9561af6 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 17 Sep 2007 11:57:38 +1000 Subject: - djm@cvs.openbsd.org 2007/08/23 03:22:16 [auth2-none.c sshd_config sshd_config.5] Support "Banner=none" to disable displaying of the pre-login banner; ok dtucker@ deraadt@ --- auth2-none.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'auth2-none.c') diff --git a/auth2-none.c b/auth2-none.c index 952b44824..28e593e6c 100644 --- a/auth2-none.c +++ b/auth2-none.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-none.c,v 1.13 2006/08/05 07:52:52 dtucker Exp $ */ +/* $OpenBSD: auth2-none.c,v 1.14 2007/08/23 03:22:16 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -32,6 +32,7 @@ #include #include #include +#include #include "xmalloc.h" #include "key.h" @@ -106,7 +107,9 @@ userauth_banner(void) { char *banner = NULL; - if (options.banner == NULL || (datafellows & SSH_BUG_BANNER)) + if (options.banner == NULL || + strcasecmp(options.banner, "none") == 0 || + (datafellows & SSH_BUG_BANNER) != 0) return; if ((banner = PRIVSEP(auth2_read_banner())) == NULL) -- cgit v1.2.3