diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-10-12 18:11:56 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-10-12 18:11:56 +0000 |
commit | c6acf01d5070cf18e4aa1d15c1476b2f50143fb7 (patch) | |
tree | cd24e0093b6c8c01c11cd2b086cb4df56374d442 /usr.bin/ssh/servconf.c | |
parent | 51e7429fa8a4ccf2297e598d0f1b8cae4c53436c (diff) |
SilentDeny, don't log/answer refused connections, deraadt@
Diffstat (limited to 'usr.bin/ssh/servconf.c')
-rw-r--r-- | usr.bin/ssh/servconf.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/ssh/servconf.c b/usr.bin/ssh/servconf.c index 7bcf12cf870..2c35c789acd 100644 --- a/usr.bin/ssh/servconf.c +++ b/usr.bin/ssh/servconf.c @@ -12,7 +12,7 @@ Created: Mon Aug 21 15:48:58 1995 ylo */ #include "includes.h" -RCSID("$Id: servconf.c,v 1.13 1999/10/11 21:48:29 markus Exp $"); +RCSID("$Id: servconf.c,v 1.14 1999/10/12 18:11:54 markus Exp $"); #include "ssh.h" #include "servconf.h" @@ -58,6 +58,7 @@ void initialize_server_options(ServerOptions *options) #endif options->permit_empty_passwd = -1; options->use_login = -1; + options->silent_deny = -1; options->num_allow_hosts = 0; options->num_deny_hosts = 0; options->num_allow_users = 0; @@ -139,6 +140,8 @@ void fill_default_server_options(ServerOptions *options) options->permit_empty_passwd = 1; if (options->use_login == -1) options->use_login = 0; + if (options->silent_deny == -1) + options->silent_deny = 0; } #define WHITESPACE " \t\r\n" @@ -161,7 +164,7 @@ typedef enum sPasswordAuthentication, sAllowHosts, sDenyHosts, sListenAddress, sPrintMotd, sIgnoreRhosts, sX11Forwarding, sX11DisplayOffset, sStrictModes, sEmptyPasswd, sRandomSeedFile, sKeepAlives, sCheckMail, - sUseLogin, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups + sUseLogin, sSilentDeny, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups } ServerOpCodes; @@ -208,6 +211,7 @@ static struct { "strictmodes", sStrictModes }, { "permitemptypasswords", sEmptyPasswd }, { "uselogin", sUseLogin }, + { "silentdeny", sSilentDeny }, { "randomseed", sRandomSeedFile }, { "keepalive", sKeepAlives }, { "allowusers", sAllowUsers }, @@ -461,6 +465,10 @@ void read_server_config(ServerOptions *options, const char *filename) intptr = &options->use_login; goto parse_flag; + case sSilentDeny: + intptr = &options->silent_deny; + goto parse_flag; + case sLogFacility: cp = strtok(NULL, WHITESPACE); if (!cp) |