summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-08-02 22:24:49 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-08-02 22:24:49 +1000
commit6aaa58c4709c43ffb9f3f2be299cd5c4044f24a3 (patch)
treeecaaf1b076e187ff9e338c844547dec1be09e006 /servconf.c
parent4c29dd9f4438d2ab6ac8d2df361fd48360b208ab (diff)
- (dtucker) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2003/07/22 13:35:22 [auth1.c auth.h auth-passwd.c monitor.c monitor.h monitor_wrap.c monitor_wrap.h readconf.c readconf.h servconf.c servconf.h session.c ssh.1 ssh.c ssh_config.5 sshconnect1.c sshd.c sshd_config.5 ssh.h] remove (already disabled) KRB4/AFS support, re-enable -k in ssh(1); test+ok henning@ - (dtucker) [Makefile.in acconfig.h configure.ac] Remove KRB4/AFS support. - (dtucker) [auth-krb4.c radix.c radix.h] Remove KRB4/AFS specific files. I hope I got this right....
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/servconf.c b/servconf.c
index 6df2a255b..c4b2bb284 100644
--- a/servconf.c
+++ b/servconf.c
@@ -10,15 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: servconf.c,v 1.122 2003/06/02 09:17:34 markus Exp $"); 13RCSID("$OpenBSD: servconf.c,v 1.123 2003/07/22 13:35:22 markus Exp $");
14
15#if defined(KRB4)
16#include <krb.h>
17#endif
18
19#ifdef AFS
20#include <kafs.h>
21#endif
22 14
23#include "ssh.h" 15#include "ssh.h"
24#include "log.h" 16#include "log.h"
@@ -82,7 +74,6 @@ initialize_server_options(ServerOptions *options)
82 options->kerberos_or_local_passwd = -1; 74 options->kerberos_or_local_passwd = -1;
83 options->kerberos_ticket_cleanup = -1; 75 options->kerberos_ticket_cleanup = -1;
84 options->kerberos_tgt_passing = -1; 76 options->kerberos_tgt_passing = -1;
85 options->afs_token_passing = -1;
86 options->password_authentication = -1; 77 options->password_authentication = -1;
87 options->kbd_interactive_authentication = -1; 78 options->kbd_interactive_authentication = -1;
88 options->challenge_response_authentication = -1; 79 options->challenge_response_authentication = -1;
@@ -194,8 +185,6 @@ fill_default_server_options(ServerOptions *options)
194 options->kerberos_ticket_cleanup = 1; 185 options->kerberos_ticket_cleanup = 1;
195 if (options->kerberos_tgt_passing == -1) 186 if (options->kerberos_tgt_passing == -1)
196 options->kerberos_tgt_passing = 0; 187 options->kerberos_tgt_passing = 0;
197 if (options->afs_token_passing == -1)
198 options->afs_token_passing = 0;
199 if (options->password_authentication == -1) 188 if (options->password_authentication == -1)
200 options->password_authentication = 1; 189 options->password_authentication = 1;
201 if (options->kbd_interactive_authentication == -1) 190 if (options->kbd_interactive_authentication == -1)
@@ -261,7 +250,7 @@ typedef enum {
261 sPermitRootLogin, sLogFacility, sLogLevel, 250 sPermitRootLogin, sLogFacility, sLogLevel,
262 sRhostsAuthentication, sRhostsRSAAuthentication, sRSAAuthentication, 251 sRhostsAuthentication, sRhostsRSAAuthentication, sRSAAuthentication,
263 sKerberosAuthentication, sKerberosOrLocalPasswd, sKerberosTicketCleanup, 252 sKerberosAuthentication, sKerberosOrLocalPasswd, sKerberosTicketCleanup,
264 sKerberosTgtPassing, sAFSTokenPassing, sChallengeResponseAuthentication, 253 sKerberosTgtPassing, sChallengeResponseAuthentication,
265 sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress, 254 sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress,
266 sPrintMotd, sPrintLastLog, sIgnoreRhosts, 255 sPrintMotd, sPrintLastLog, sIgnoreRhosts,
267 sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, 256 sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost,
@@ -306,7 +295,7 @@ static struct {
306 { "rsaauthentication", sRSAAuthentication }, 295 { "rsaauthentication", sRSAAuthentication },
307 { "pubkeyauthentication", sPubkeyAuthentication }, 296 { "pubkeyauthentication", sPubkeyAuthentication },
308 { "dsaauthentication", sPubkeyAuthentication }, /* alias */ 297 { "dsaauthentication", sPubkeyAuthentication }, /* alias */
309#if defined(KRB4) || defined(KRB5) 298#ifdef KRB5
310 { "kerberosauthentication", sKerberosAuthentication }, 299 { "kerberosauthentication", sKerberosAuthentication },
311 { "kerberosorlocalpasswd", sKerberosOrLocalPasswd }, 300 { "kerberosorlocalpasswd", sKerberosOrLocalPasswd },
312 { "kerberosticketcleanup", sKerberosTicketCleanup }, 301 { "kerberosticketcleanup", sKerberosTicketCleanup },
@@ -317,11 +306,7 @@ static struct {
317 { "kerberosticketcleanup", sUnsupported }, 306 { "kerberosticketcleanup", sUnsupported },
318 { "kerberostgtpassing", sUnsupported }, 307 { "kerberostgtpassing", sUnsupported },
319#endif 308#endif
320#if defined(AFS)
321 { "afstokenpassing", sAFSTokenPassing },
322#else
323 { "afstokenpassing", sUnsupported }, 309 { "afstokenpassing", sUnsupported },
324#endif
325 { "passwordauthentication", sPasswordAuthentication }, 310 { "passwordauthentication", sPasswordAuthentication },
326 { "kbdinteractiveauthentication", sKbdInteractiveAuthentication }, 311 { "kbdinteractiveauthentication", sKbdInteractiveAuthentication },
327 { "challengeresponseauthentication", sChallengeResponseAuthentication }, 312 { "challengeresponseauthentication", sChallengeResponseAuthentication },
@@ -644,10 +629,6 @@ parse_flag:
644 intptr = &options->kerberos_tgt_passing; 629 intptr = &options->kerberos_tgt_passing;
645 goto parse_flag; 630 goto parse_flag;
646 631
647 case sAFSTokenPassing:
648 intptr = &options->afs_token_passing;
649 goto parse_flag;
650
651 case sPasswordAuthentication: 632 case sPasswordAuthentication:
652 intptr = &options->password_authentication; 633 intptr = &options->password_authentication;
653 goto parse_flag; 634 goto parse_flag;