readconf.c (a95c1225217bbe7f06e4d44479c401d86b926f63) | readconf.c (fe5fd0173b1983e53ba8dbafb3229b37444e7986) |
---|---|
1/* 2 * 3 * readconf.c 4 * 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 6 * 7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 8 * All rights reserved --- 79 unchanged lines hidden (view full) --- 88/* Keyword tokens. */ 89 90typedef enum { 91 oBadOption, 92 oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication, 93 oPasswordAuthentication, oRSAAuthentication, oFallBackToRsh, oUseRsh, 94 oSkeyAuthentication, 95#ifdef KRB4 | 1/* 2 * 3 * readconf.c 4 * 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 6 * 7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 8 * All rights reserved --- 79 unchanged lines hidden (view full) --- 88/* Keyword tokens. */ 89 90typedef enum { 91 oBadOption, 92 oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication, 93 oPasswordAuthentication, oRSAAuthentication, oFallBackToRsh, oUseRsh, 94 oSkeyAuthentication, 95#ifdef KRB4 |
96 oKerberosAuthentication, | 96 oKrb4Authentication, |
97#endif /* KRB4 */ | 97#endif /* KRB4 */ |
98#ifdef KRB5 99 oKrb5Authentication, oKrb5TgtPassing, 100#endif /* KRB5 */ |
|
98#ifdef AFS | 101#ifdef AFS |
99 oKerberosTgtPassing, oAFSTokenPassing, | 102 oKrb4TgtPassing, oAFSTokenPassing, |
100#endif 101 oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, 102 oUser, oHost, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, 103 oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, 104 oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression, 105 oCompressionLevel, oKeepAlives, oNumberOfPasswordPrompts, oTISAuthentication, 106 oUsePrivilegedPort, oLogLevel 107} OpCodes; --- 8 unchanged lines hidden (view full) --- 116 { "forwardx11", oForwardX11 }, 117 { "gatewayports", oGatewayPorts }, 118 { "useprivilegedport", oUsePrivilegedPort }, 119 { "rhostsauthentication", oRhostsAuthentication }, 120 { "passwordauthentication", oPasswordAuthentication }, 121 { "rsaauthentication", oRSAAuthentication }, 122 { "skeyauthentication", oSkeyAuthentication }, 123#ifdef KRB4 | 103#endif 104 oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, 105 oUser, oHost, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, 106 oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, 107 oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression, 108 oCompressionLevel, oKeepAlives, oNumberOfPasswordPrompts, oTISAuthentication, 109 oUsePrivilegedPort, oLogLevel 110} OpCodes; --- 8 unchanged lines hidden (view full) --- 119 { "forwardx11", oForwardX11 }, 120 { "gatewayports", oGatewayPorts }, 121 { "useprivilegedport", oUsePrivilegedPort }, 122 { "rhostsauthentication", oRhostsAuthentication }, 123 { "passwordauthentication", oPasswordAuthentication }, 124 { "rsaauthentication", oRSAAuthentication }, 125 { "skeyauthentication", oSkeyAuthentication }, 126#ifdef KRB4 |
124 { "kerberosauthentication", oKerberosAuthentication }, | 127 { "kerberos4authentication", oKrb4Authentication }, |
125#endif /* KRB4 */ | 128#endif /* KRB4 */ |
129#ifdef KRB5 130 { "kerberos5authentication", oKrb5Authentication }, 131 { "kerberos5tgtpassing", oKrb5TgtPassing }, 132#endif /* KRB5 */ |
|
126#ifdef AFS | 133#ifdef AFS |
127 { "kerberostgtpassing", oKerberosTgtPassing }, | 134 { "kerberos4tgtpassing", oKrb4TgtPassing }, |
128 { "afstokenpassing", oAFSTokenPassing }, 129#endif 130 { "fallbacktorsh", oFallBackToRsh }, 131 { "usersh", oUseRsh }, 132 { "identityfile", oIdentityFile }, 133 { "hostname", oHostName }, 134 { "proxycommand", oProxyCommand }, 135 { "port", oPort }, --- 157 unchanged lines hidden (view full) --- 293 294 case oTISAuthentication: 295 /* fallthrough, there is no difference on the client side */ 296 case oSkeyAuthentication: 297 intptr = &options->skey_authentication; 298 goto parse_flag; 299 300#ifdef KRB4 | 135 { "afstokenpassing", oAFSTokenPassing }, 136#endif 137 { "fallbacktorsh", oFallBackToRsh }, 138 { "usersh", oUseRsh }, 139 { "identityfile", oIdentityFile }, 140 { "hostname", oHostName }, 141 { "proxycommand", oProxyCommand }, 142 { "port", oPort }, --- 157 unchanged lines hidden (view full) --- 300 301 case oTISAuthentication: 302 /* fallthrough, there is no difference on the client side */ 303 case oSkeyAuthentication: 304 intptr = &options->skey_authentication; 305 goto parse_flag; 306 307#ifdef KRB4 |
301 case oKerberosAuthentication: 302 intptr = &options->kerberos_authentication; | 308 case oKrb4Authentication: 309 intptr = &options->krb4_authentication; |
303 goto parse_flag; 304#endif /* KRB4 */ 305 | 310 goto parse_flag; 311#endif /* KRB4 */ 312 |
313#ifdef KRB5 314 case oKrb5Authentication: 315 intptr = &options->krb5_authentication; 316 goto parse_flag; 317 318 case oKrb5TgtPassing: 319 intptr = &options->krb5_tgt_passing; 320 goto parse_flag; 321#endif /* KRB5 */ 322 |
|
306#ifdef AFS | 323#ifdef AFS |
307 case oKerberosTgtPassing: 308 intptr = &options->kerberos_tgt_passing; | 324 case oKrb4TgtPassing: 325 intptr = &options->krb4_tgt_passing; |
309 goto parse_flag; 310 311 case oAFSTokenPassing: 312 intptr = &options->afs_token_passing; 313 goto parse_flag; 314#endif 315 316 case oFallBackToRsh: --- 274 unchanged lines hidden (view full) --- 591 options->forward_agent = -1; 592 options->forward_x11 = -1; 593 options->gateway_ports = -1; 594 options->use_privileged_port = -1; 595 options->rhosts_authentication = -1; 596 options->rsa_authentication = -1; 597 options->skey_authentication = -1; 598#ifdef KRB4 | 326 goto parse_flag; 327 328 case oAFSTokenPassing: 329 intptr = &options->afs_token_passing; 330 goto parse_flag; 331#endif 332 333 case oFallBackToRsh: --- 274 unchanged lines hidden (view full) --- 608 options->forward_agent = -1; 609 options->forward_x11 = -1; 610 options->gateway_ports = -1; 611 options->use_privileged_port = -1; 612 options->rhosts_authentication = -1; 613 options->rsa_authentication = -1; 614 options->skey_authentication = -1; 615#ifdef KRB4 |
599 options->kerberos_authentication = -1; | 616 options->krb4_authentication = -1; |
600#endif | 617#endif |
618#ifdef KRB5 619 options->krb5_authentication = -1; 620 options->krb5_tgt_passing = -1; 621#endif /* KRB5 */ |
|
601#ifdef AFS | 622#ifdef AFS |
602 options->kerberos_tgt_passing = -1; | 623 options->krb4_tgt_passing = -1; |
603 options->afs_token_passing = -1; 604#endif 605 options->password_authentication = -1; 606 options->rhosts_rsa_authentication = -1; 607 options->fallback_to_rsh = -1; 608 options->use_rsh = -1; 609 options->batch_mode = -1; 610 options->check_host_ip = -1; --- 35 unchanged lines hidden (view full) --- 646 options->use_privileged_port = 1; 647 if (options->rhosts_authentication == -1) 648 options->rhosts_authentication = 1; 649 if (options->rsa_authentication == -1) 650 options->rsa_authentication = 1; 651 if (options->skey_authentication == -1) 652 options->skey_authentication = 0; 653#ifdef KRB4 | 624 options->afs_token_passing = -1; 625#endif 626 options->password_authentication = -1; 627 options->rhosts_rsa_authentication = -1; 628 options->fallback_to_rsh = -1; 629 options->use_rsh = -1; 630 options->batch_mode = -1; 631 options->check_host_ip = -1; --- 35 unchanged lines hidden (view full) --- 667 options->use_privileged_port = 1; 668 if (options->rhosts_authentication == -1) 669 options->rhosts_authentication = 1; 670 if (options->rsa_authentication == -1) 671 options->rsa_authentication = 1; 672 if (options->skey_authentication == -1) 673 options->skey_authentication = 0; 674#ifdef KRB4 |
654 if (options->kerberos_authentication == -1) 655 options->kerberos_authentication = 1; | 675 if (options->krb4_authentication == -1) 676 options->krb4_authentication = 1; |
656#endif /* KRB4 */ | 677#endif /* KRB4 */ |
678#ifdef KRB5 679 if (options->krb5_authentication == -1) 680 options->krb5_authentication = 1; 681 if (options->krb5_tgt_passing == -1) 682 options->krb5_tgt_passing = 1; 683#endif /* KRB5 */ |
|
657#ifdef AFS | 684#ifdef AFS |
658 if (options->kerberos_tgt_passing == -1) 659 options->kerberos_tgt_passing = 1; | 685 if (options->krb4_tgt_passing == -1) 686 options->krb4_tgt_passing = 1; |
660 if (options->afs_token_passing == -1) 661 options->afs_token_passing = 1; 662#endif /* AFS */ 663 if (options->password_authentication == -1) 664 options->password_authentication = 1; 665 if (options->rhosts_rsa_authentication == -1) 666 options->rhosts_rsa_authentication = 1; 667 if (options->fallback_to_rsh == -1) --- 42 unchanged lines hidden --- | 687 if (options->afs_token_passing == -1) 688 options->afs_token_passing = 1; 689#endif /* AFS */ 690 if (options->password_authentication == -1) 691 options->password_authentication = 1; 692 if (options->rhosts_rsa_authentication == -1) 693 options->rhosts_rsa_authentication = 1; 694 if (options->fallback_to_rsh == -1) --- 42 unchanged lines hidden --- |