summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-09 00:35:42 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-09 00:35:42 +0000
commit48bd7c118a25b950842864c7eb87ef666cbc342d (patch)
treeb678668f292f8a8bb5e00b9b8f89d86370a8e11f /servconf.c
parent99a0563fd59e1d3e1b79a1a9dd38ce9f6b5059ee (diff)
- (bal) OpenBSD Sync
- markus@cvs.openbsd.org 2001/01/08 22:29:05 [auth2.c compat.c compat.h servconf.c servconf.h sshd.8 sshd_config version.h] implement option 'Banner /etc/issue.net' for ssh2, move version to 2.3.1 (needed for bugcompat detection, 2.3.0 would fail if Banner is enabled). - markus@cvs.openbsd.org 2001/01/08 22:03:23 [channels.c ssh-keyscan.c] O_NDELAY -> O_NONBLOCK; thanks stevesk@pobox.com - markus@cvs.openbsd.org 2001/01/08 21:55:41 [sshconnect1.c] more cleanups and fixes from stevesk@pobox.com: 1) try_agent_authentication() for loop will overwrite key just allocated with key_new(); don't alloc 2) call ssh_close_authentication_connection() before exit try_agent_authentication() 3) free mem on bad passphrase in try_rsa_authentication() - markus@cvs.openbsd.org 2001/01/08 21:48:17 [kex.c] missing free; thanks stevesk@pobox.com
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c
index 6604e3d23..fb42d74ef 100644
--- a/servconf.c
+++ b/servconf.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: servconf.c,v 1.56 2001/01/07 11:28:06 markus Exp $"); 13RCSID("$OpenBSD: servconf.c,v 1.57 2001/01/08 22:29:05 markus Exp $");
14 14
15#include "ssh.h" 15#include "ssh.h"
16#include "servconf.h" 16#include "servconf.h"
@@ -78,6 +78,7 @@ initialize_server_options(ServerOptions *options)
78 options->max_startups_begin = -1; 78 options->max_startups_begin = -1;
79 options->max_startups_rate = -1; 79 options->max_startups_rate = -1;
80 options->max_startups = -1; 80 options->max_startups = -1;
81 options->banner = NULL;
81} 82}
82 83
83void 84void
@@ -198,6 +199,7 @@ typedef enum {
198 sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, 199 sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups,
199 sIgnoreUserKnownHosts, sCiphers, sProtocol, sPidFile, 200 sIgnoreUserKnownHosts, sCiphers, sProtocol, sPidFile,
200 sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, 201 sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups,
202 sBanner
201} ServerOpCodes; 203} ServerOpCodes;
202 204
203/* Textual representation of the tokens. */ 205/* Textual representation of the tokens. */
@@ -257,6 +259,7 @@ static struct {
257 { "gatewayports", sGatewayPorts }, 259 { "gatewayports", sGatewayPorts },
258 { "subsystem", sSubsystem }, 260 { "subsystem", sSubsystem },
259 { "maxstartups", sMaxStartups }, 261 { "maxstartups", sMaxStartups },
262 { "banner", sBanner },
260 { NULL, 0 } 263 { NULL, 0 }
261}; 264};
262 265
@@ -697,6 +700,10 @@ parse_flag:
697 intptr = &options->max_startups; 700 intptr = &options->max_startups;
698 goto parse_int; 701 goto parse_int;
699 702
703 case sBanner:
704 charptr = &options->banner;
705 goto parse_filename;
706
700 default: 707 default:
701 fprintf(stderr, "%s line %d: Missing handler for opcode %s (%d)\n", 708 fprintf(stderr, "%s line %d: Missing handler for opcode %s (%d)\n",
702 filename, linenum, arg, opcode); 709 filename, linenum, arg, opcode);