diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 40 |
1 files changed, 6 insertions, 34 deletions
diff --git a/readconf.c b/readconf.c index c9c463b29..4c5d44859 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: readconf.c,v 1.107 2003/05/14 18:16:20 jakob Exp $"); | 15 | RCSID("$OpenBSD: readconf.c,v 1.108 2003/05/15 01:48:10 jakob Exp $"); |
16 | 16 | ||
17 | #include "ssh.h" | 17 | #include "ssh.h" |
18 | #include "xmalloc.h" | 18 | #include "xmalloc.h" |
@@ -94,15 +94,7 @@ typedef enum { | |||
94 | oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication, | 94 | oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication, |
95 | oPasswordAuthentication, oRSAAuthentication, | 95 | oPasswordAuthentication, oRSAAuthentication, |
96 | oChallengeResponseAuthentication, oXAuthLocation, | 96 | oChallengeResponseAuthentication, oXAuthLocation, |
97 | #if defined(KRB4) || defined(KRB5) | 97 | oKerberosAuthentication, oKerberosTgtPassing, oAFSTokenPassing, |
98 | oKerberosAuthentication, | ||
99 | #endif | ||
100 | #if defined(AFS) || defined(KRB5) | ||
101 | oKerberosTgtPassing, | ||
102 | #endif | ||
103 | #ifdef AFS | ||
104 | oAFSTokenPassing, | ||
105 | #endif | ||
106 | oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, | 98 | oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, |
107 | oUser, oHost, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, | 99 | oUser, oHost, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, |
108 | oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, | 100 | oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, |
@@ -141,15 +133,9 @@ static struct { | |||
141 | { "challengeresponseauthentication", oChallengeResponseAuthentication }, | 133 | { "challengeresponseauthentication", oChallengeResponseAuthentication }, |
142 | { "skeyauthentication", oChallengeResponseAuthentication }, /* alias */ | 134 | { "skeyauthentication", oChallengeResponseAuthentication }, /* alias */ |
143 | { "tisauthentication", oChallengeResponseAuthentication }, /* alias */ | 135 | { "tisauthentication", oChallengeResponseAuthentication }, /* alias */ |
144 | #if defined(KRB4) || defined(KRB5) | ||
145 | { "kerberosauthentication", oKerberosAuthentication }, | 136 | { "kerberosauthentication", oKerberosAuthentication }, |
146 | #endif | ||
147 | #if defined(AFS) || defined(KRB5) | ||
148 | { "kerberostgtpassing", oKerberosTgtPassing }, | 137 | { "kerberostgtpassing", oKerberosTgtPassing }, |
149 | #endif | ||
150 | #ifdef AFS | ||
151 | { "afstokenpassing", oAFSTokenPassing }, | 138 | { "afstokenpassing", oAFSTokenPassing }, |
152 | #endif | ||
153 | { "fallbacktorsh", oDeprecated }, | 139 | { "fallbacktorsh", oDeprecated }, |
154 | { "usersh", oDeprecated }, | 140 | { "usersh", oDeprecated }, |
155 | { "identityfile", oIdentityFile }, | 141 | { "identityfile", oIdentityFile }, |
@@ -370,21 +356,19 @@ parse_flag: | |||
370 | case oChallengeResponseAuthentication: | 356 | case oChallengeResponseAuthentication: |
371 | intptr = &options->challenge_response_authentication; | 357 | intptr = &options->challenge_response_authentication; |
372 | goto parse_flag; | 358 | goto parse_flag; |
373 | #if defined(KRB4) || defined(KRB5) | 359 | |
374 | case oKerberosAuthentication: | 360 | case oKerberosAuthentication: |
375 | intptr = &options->kerberos_authentication; | 361 | intptr = &options->kerberos_authentication; |
376 | goto parse_flag; | 362 | goto parse_flag; |
377 | #endif | 363 | |
378 | #if defined(AFS) || defined(KRB5) | ||
379 | case oKerberosTgtPassing: | 364 | case oKerberosTgtPassing: |
380 | intptr = &options->kerberos_tgt_passing; | 365 | intptr = &options->kerberos_tgt_passing; |
381 | goto parse_flag; | 366 | goto parse_flag; |
382 | #endif | 367 | |
383 | #ifdef AFS | ||
384 | case oAFSTokenPassing: | 368 | case oAFSTokenPassing: |
385 | intptr = &options->afs_token_passing; | 369 | intptr = &options->afs_token_passing; |
386 | goto parse_flag; | 370 | goto parse_flag; |
387 | #endif | 371 | |
388 | case oBatchMode: | 372 | case oBatchMode: |
389 | intptr = &options->batch_mode; | 373 | intptr = &options->batch_mode; |
390 | goto parse_flag; | 374 | goto parse_flag; |
@@ -786,15 +770,9 @@ initialize_options(Options * options) | |||
786 | options->rsa_authentication = -1; | 770 | options->rsa_authentication = -1; |
787 | options->pubkey_authentication = -1; | 771 | options->pubkey_authentication = -1; |
788 | options->challenge_response_authentication = -1; | 772 | options->challenge_response_authentication = -1; |
789 | #if defined(KRB4) || defined(KRB5) | ||
790 | options->kerberos_authentication = -1; | 773 | options->kerberos_authentication = -1; |
791 | #endif | ||
792 | #if defined(AFS) || defined(KRB5) | ||
793 | options->kerberos_tgt_passing = -1; | 774 | options->kerberos_tgt_passing = -1; |
794 | #endif | ||
795 | #ifdef AFS | ||
796 | options->afs_token_passing = -1; | 775 | options->afs_token_passing = -1; |
797 | #endif | ||
798 | options->password_authentication = -1; | 776 | options->password_authentication = -1; |
799 | options->kbd_interactive_authentication = -1; | 777 | options->kbd_interactive_authentication = -1; |
800 | options->kbd_interactive_devices = NULL; | 778 | options->kbd_interactive_devices = NULL; |
@@ -865,18 +843,12 @@ fill_default_options(Options * options) | |||
865 | options->pubkey_authentication = 1; | 843 | options->pubkey_authentication = 1; |
866 | if (options->challenge_response_authentication == -1) | 844 | if (options->challenge_response_authentication == -1) |
867 | options->challenge_response_authentication = 1; | 845 | options->challenge_response_authentication = 1; |
868 | #if defined(KRB4) || defined(KRB5) | ||
869 | if (options->kerberos_authentication == -1) | 846 | if (options->kerberos_authentication == -1) |
870 | options->kerberos_authentication = 1; | 847 | options->kerberos_authentication = 1; |
871 | #endif | ||
872 | #if defined(AFS) || defined(KRB5) | ||
873 | if (options->kerberos_tgt_passing == -1) | 848 | if (options->kerberos_tgt_passing == -1) |
874 | options->kerberos_tgt_passing = 1; | 849 | options->kerberos_tgt_passing = 1; |
875 | #endif | ||
876 | #ifdef AFS | ||
877 | if (options->afs_token_passing == -1) | 850 | if (options->afs_token_passing == -1) |
878 | options->afs_token_passing = 1; | 851 | options->afs_token_passing = 1; |
879 | #endif | ||
880 | if (options->password_authentication == -1) | 852 | if (options->password_authentication == -1) |
881 | options->password_authentication = 1; | 853 | options->password_authentication = 1; |
882 | if (options->kbd_interactive_authentication == -1) | 854 | if (options->kbd_interactive_authentication == -1) |