summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-09 21:27:49 +1100
committerDamien Miller <djm@mindrot.org>2000-03-09 21:27:49 +1100
commit98c7ad60ec5725d91da9f9f6d26cd9fe477398c0 (patch)
tree104c3e3474be8e308d05e22d79715c833c6cf837 /servconf.c
parent1a07ebd4d8d39c6814bbd84c1aec4ebf2bd005a2 (diff)
- OpenBSD CVS updates to v1.2.3
[ssh.h atomicio.c] - int atomicio -> ssize_t (for alpha). ok deraadt@ [auth-rsa.c] - delay MD5 computation until client sends response, free() early, cleanup. [cipher.c] - void* -> unsigned char*, ok niels@ [hostfile.c] - remove unused variable 'len'. fix comments. - remove unused variable [log-client.c log-server.c] - rename a cpp symbol, to avoid param.h collision [packet.c] - missing xfree() - getsockname() requires initialized tolen; andy@guildsoftware.com - use getpeername() in packet_connection_is_on_socket(), fixes sshd -i; from Holger.Trapp@Informatik.TU-Chemnitz.DE [pty.c pty.h] - register cleanup for pty earlier. move code for pty-owner handling to pty.c ok provos@, dugsong@ [readconf.c] - turn off x11-fwd for the client, too. [rsa.c] - PKCS#1 padding [scp.c] - allow '.' in usernames; from jedgar@fxp.org [servconf.c] - typo: ignore_user_known_hosts int->flag; naddy@mips.rhein-neckar.de - sync with sshd_config [ssh-keygen.c] - enable ssh-keygen -l -f ~/.ssh/known_hosts, ok deraadt@ [ssh.1] - Change invalid 'CHAT' loglevel to 'VERBOSE' [ssh.c] - suppress AAAA query host when '-4' is used; from shin@nd.net.fujitsu.co.jp - turn off x11-fwd for the client, too. [sshconnect.c] - missing xfree() - retry rresvport_af(), too. from sumikawa@ebina.hitachi.co.jp. - read error vs. "Connection closed by remote host" [sshd.8] - ie. -> i.e., - do not link to a commercial page.. - sync with sshd_config [sshd.c] - no need for poll.h; from bright@wintelcom.net - log with level log() not fatal() if peer behaves badly. - don't panic if client behaves strange. ok deraadt@ - make no-port-forwarding for RSA keys deny both -L and -R style fwding - delay close() of pty until the pty has been chowned back to root - oops, fix comment, too. - missing xfree() - move XAUTHORITY to subdir. ok dugsong@. fixes debian bug #57907, too. (http://cgi.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=57907) - register cleanup for pty earlier. move code for pty-owner handling to pty.c ok provos@, dugsong@ - create x11 cookie file - fix pr 1113, fclose() -> pclose(), todo: remote popen() - version 1.2.3 - Cleaned up
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/servconf.c b/servconf.c
index 3425fe0ee..b08ac671f 100644
--- a/servconf.c
+++ b/servconf.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$Id: servconf.c,v 1.8 2000/01/14 04:45:51 damien Exp $"); 15RCSID("$Id: servconf.c,v 1.9 2000/03/09 10:27:51 damien Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "servconf.h" 18#include "servconf.h"
@@ -87,7 +87,7 @@ fill_default_server_options(ServerOptions *options)
87 if (options->permit_root_login == -1) 87 if (options->permit_root_login == -1)
88 options->permit_root_login = 1; /* yes */ 88 options->permit_root_login = 1; /* yes */
89 if (options->ignore_rhosts == -1) 89 if (options->ignore_rhosts == -1)
90 options->ignore_rhosts = 0; 90 options->ignore_rhosts = 1;
91 if (options->ignore_user_known_hosts == -1) 91 if (options->ignore_user_known_hosts == -1)
92 options->ignore_user_known_hosts = 0; 92 options->ignore_user_known_hosts = 0;
93 if (options->check_mail == -1) 93 if (options->check_mail == -1)
@@ -95,9 +95,9 @@ fill_default_server_options(ServerOptions *options)
95 if (options->print_motd == -1) 95 if (options->print_motd == -1)
96 options->print_motd = 1; 96 options->print_motd = 1;
97 if (options->x11_forwarding == -1) 97 if (options->x11_forwarding == -1)
98 options->x11_forwarding = 1; 98 options->x11_forwarding = 0;
99 if (options->x11_display_offset == -1) 99 if (options->x11_display_offset == -1)
100 options->x11_display_offset = 1; 100 options->x11_display_offset = 10;
101 if (options->strict_modes == -1) 101 if (options->strict_modes == -1)
102 options->strict_modes = 1; 102 options->strict_modes = 1;
103 if (options->keepalives == -1) 103 if (options->keepalives == -1)
@@ -109,7 +109,7 @@ fill_default_server_options(ServerOptions *options)
109 if (options->rhosts_authentication == -1) 109 if (options->rhosts_authentication == -1)
110 options->rhosts_authentication = 0; 110 options->rhosts_authentication = 0;
111 if (options->rhosts_rsa_authentication == -1) 111 if (options->rhosts_rsa_authentication == -1)
112 options->rhosts_rsa_authentication = 1; 112 options->rhosts_rsa_authentication = 0;
113 if (options->rsa_authentication == -1) 113 if (options->rsa_authentication == -1)
114 options->rsa_authentication = 1; 114 options->rsa_authentication = 1;
115#ifdef KRB4 115#ifdef KRB4
@@ -133,7 +133,7 @@ fill_default_server_options(ServerOptions *options)
133 options->skey_authentication = 1; 133 options->skey_authentication = 1;
134#endif 134#endif
135 if (options->permit_empty_passwd == -1) 135 if (options->permit_empty_passwd == -1)
136 options->permit_empty_passwd = 1; 136 options->permit_empty_passwd = 0;
137 if (options->use_login == -1) 137 if (options->use_login == -1)
138 options->use_login = 0; 138 options->use_login = 0;
139} 139}
@@ -402,7 +402,7 @@ parse_flag:
402 402
403 case sIgnoreUserKnownHosts: 403 case sIgnoreUserKnownHosts:
404 intptr = &options->ignore_user_known_hosts; 404 intptr = &options->ignore_user_known_hosts;
405 goto parse_int; 405 goto parse_flag;
406 406
407 case sRhostsAuthentication: 407 case sRhostsAuthentication:
408 intptr = &options->rhosts_authentication; 408 intptr = &options->rhosts_authentication;