version 1.2, 1999/09/28 04:45:36 |
version 1.3, 1999/09/29 00:10:16 |
|
|
|
|
typedef enum |
typedef enum |
{ |
{ |
oForwardAgent, oForwardX11, oRhostsAuthentication, |
oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication, |
oPasswordAuthentication, oRSAAuthentication, oFallBackToRsh, oUseRsh, |
oPasswordAuthentication, oRSAAuthentication, oFallBackToRsh, oUseRsh, |
#ifdef KRB4 |
#ifdef KRB4 |
oKerberosAuthentication, |
oKerberosAuthentication, |
|
|
{ |
{ |
{ "forwardagent", oForwardAgent }, |
{ "forwardagent", oForwardAgent }, |
{ "forwardx11", oForwardX11 }, |
{ "forwardx11", oForwardX11 }, |
|
{ "gatewayports", oGatewayPorts }, |
{ "rhostsauthentication", oRhostsAuthentication }, |
{ "rhostsauthentication", oRhostsAuthentication }, |
{ "passwordauthentication", oPasswordAuthentication }, |
{ "passwordauthentication", oPasswordAuthentication }, |
{ "rsaauthentication", oRSAAuthentication }, |
{ "rsaauthentication", oRSAAuthentication }, |
|
|
case oForwardX11: |
case oForwardX11: |
intptr = &options->forward_x11; |
intptr = &options->forward_x11; |
goto parse_flag; |
goto parse_flag; |
|
|
|
case oGatewayPorts: |
|
intptr = &options->gateway_ports; |
|
goto parse_flag; |
|
|
case oRhostsAuthentication: |
case oRhostsAuthentication: |
intptr = &options->rhosts_authentication; |
intptr = &options->rhosts_authentication; |
|
|
memset(options, 'X', sizeof(*options)); |
memset(options, 'X', sizeof(*options)); |
options->forward_agent = -1; |
options->forward_agent = -1; |
options->forward_x11 = -1; |
options->forward_x11 = -1; |
|
options->gateway_ports = -1; |
options->rhosts_authentication = -1; |
options->rhosts_authentication = -1; |
options->rsa_authentication = -1; |
options->rsa_authentication = -1; |
#ifdef KRB4 |
#ifdef KRB4 |
|
|
options->forward_agent = 1; |
options->forward_agent = 1; |
if (options->forward_x11 == -1) |
if (options->forward_x11 == -1) |
options->forward_x11 = 1; |
options->forward_x11 = 1; |
|
if (options->gateway_ports == -1) |
|
options->gateway_ports = 0; |
if (options->rhosts_authentication == -1) |
if (options->rhosts_authentication == -1) |
options->rhosts_authentication = 1; |
options->rhosts_authentication = 1; |
if (options->rsa_authentication == -1) |
if (options->rsa_authentication == -1) |