|
Lines 107-114
Link Here
|
| 107 |
|
107 |
|
| 108 |
typedef enum { |
108 |
typedef enum { |
| 109 |
oBadOption, |
109 |
oBadOption, |
| 110 |
oForwardAgent, oForwardX11, oForwardX11Trusted, oGatewayPorts, |
110 |
oForwardAgent, oForwardX11, oForwardX11Trusted, oForwardX11Timeout, |
| 111 |
oExitOnForwardFailure, |
111 |
oGatewayPorts, oExitOnForwardFailure, |
| 112 |
oPasswordAuthentication, oRSAAuthentication, |
112 |
oPasswordAuthentication, oRSAAuthentication, |
| 113 |
oChallengeResponseAuthentication, oXAuthLocation, |
113 |
oChallengeResponseAuthentication, oXAuthLocation, |
| 114 |
oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, |
114 |
oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, |
|
Lines 140-145
static struct {
Link Here
|
| 140 |
{ "forwardagent", oForwardAgent }, |
140 |
{ "forwardagent", oForwardAgent }, |
| 141 |
{ "forwardx11", oForwardX11 }, |
141 |
{ "forwardx11", oForwardX11 }, |
| 142 |
{ "forwardx11trusted", oForwardX11Trusted }, |
142 |
{ "forwardx11trusted", oForwardX11Trusted }, |
|
|
143 |
{ "forwardx11timeout", oForwardX11Timeout }, |
| 143 |
{ "exitonforwardfailure", oExitOnForwardFailure }, |
144 |
{ "exitonforwardfailure", oExitOnForwardFailure }, |
| 144 |
{ "xauthlocation", oXAuthLocation }, |
145 |
{ "xauthlocation", oXAuthLocation }, |
| 145 |
{ "gatewayports", oGatewayPorts }, |
146 |
{ "gatewayports", oGatewayPorts }, |
|
Lines 399-404
parse_flag:
Link Here
|
| 399 |
case oForwardX11Trusted: |
400 |
case oForwardX11Trusted: |
| 400 |
intptr = &options->forward_x11_trusted; |
401 |
intptr = &options->forward_x11_trusted; |
| 401 |
goto parse_flag; |
402 |
goto parse_flag; |
|
|
403 |
|
| 404 |
case oForwardX11Timeout: |
| 405 |
intptr = &options->forward_x11_timeout; |
| 406 |
goto parse_time; |
| 402 |
|
407 |
|
| 403 |
case oGatewayPorts: |
408 |
case oGatewayPorts: |
| 404 |
intptr = &options->gateway_ports; |
409 |
intptr = &options->gateway_ports; |
|
Lines 1003-1008
initialize_options(Options * options)
Link Here
|
| 1003 |
options->forward_agent = -1; |
1008 |
options->forward_agent = -1; |
| 1004 |
options->forward_x11 = -1; |
1009 |
options->forward_x11 = -1; |
| 1005 |
options->forward_x11_trusted = -1; |
1010 |
options->forward_x11_trusted = -1; |
|
|
1011 |
options->forward_x11_timeout = -1; |
| 1006 |
options->exit_on_forward_failure = -1; |
1012 |
options->exit_on_forward_failure = -1; |
| 1007 |
options->xauth_location = NULL; |
1013 |
options->xauth_location = NULL; |
| 1008 |
options->gateway_ports = -1; |
1014 |
options->gateway_ports = -1; |
|
Lines 1087-1092
fill_default_options(Options * options)
Link Here
|
| 1087 |
options->forward_x11 = 0; |
1093 |
options->forward_x11 = 0; |
| 1088 |
if (options->forward_x11_trusted == -1) |
1094 |
if (options->forward_x11_trusted == -1) |
| 1089 |
options->forward_x11_trusted = 0; |
1095 |
options->forward_x11_trusted = 0; |
|
|
1096 |
if (options->forward_x11_timeout == -1) |
| 1097 |
options->forward_x11_timeout = 1200; |
| 1090 |
if (options->exit_on_forward_failure == -1) |
1098 |
if (options->exit_on_forward_failure == -1) |
| 1091 |
options->exit_on_forward_failure = 0; |
1099 |
options->exit_on_forward_failure = 0; |
| 1092 |
if (options->xauth_location == NULL) |
1100 |
if (options->xauth_location == NULL) |