|
Lines 115-121
Link Here
|
| 115 |
oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, |
115 |
oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, |
| 116 |
oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, |
116 |
oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, |
| 117 |
oHostKeyAlgorithms, oBindAddress, oSmartcardDevice, |
117 |
oHostKeyAlgorithms, oBindAddress, oSmartcardDevice, |
| 118 |
oClearAllForwardings, oNoHostAuthenticationForLocalhost |
118 |
oClearAllForwardings, oNoHostAuthenticationForLocalhost, |
|
|
119 |
oConnectTimeout |
| 119 |
} OpCodes; |
120 |
} OpCodes; |
| 120 |
|
121 |
|
| 121 |
/* Textual representations of the tokens. */ |
122 |
/* Textual representations of the tokens. */ |
|
Lines 187-192
Link Here
|
| 187 |
{ "smartcarddevice", oSmartcardDevice }, |
188 |
{ "smartcarddevice", oSmartcardDevice }, |
| 188 |
{ "clearallforwardings", oClearAllForwardings }, |
189 |
{ "clearallforwardings", oClearAllForwardings }, |
| 189 |
{ "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost }, |
190 |
{ "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost }, |
|
|
191 |
{ "connecttimeout", oConnectTimeout }, |
| 190 |
{ NULL, oBadOption } |
192 |
{ NULL, oBadOption } |
| 191 |
}; |
193 |
}; |
| 192 |
|
194 |
|
|
Lines 294-299
Link Here
|
| 294 |
/* don't panic, but count bad options */ |
296 |
/* don't panic, but count bad options */ |
| 295 |
return -1; |
297 |
return -1; |
| 296 |
/* NOTREACHED */ |
298 |
/* NOTREACHED */ |
|
|
299 |
|
| 300 |
case oConnectTimeout: |
| 301 |
intptr = &options->connection_timeout; |
| 302 |
parse_time: |
| 303 |
arg = strdelim(&s); |
| 304 |
if (!arg || *arg == '\0') |
| 305 |
fatal("%.200s line %d: Missing time argument.", filename, linenum); |
| 306 |
if ((value = convtime(arg)) == -1) |
| 307 |
fatal("%.200s line %d: Invalid time argument.", filename, linenum); |
| 308 |
if (*intptr == -1) |
| 309 |
*intptr = value; |
| 310 |
break; |
| 311 |
|
| 297 |
case oForwardAgent: |
312 |
case oForwardAgent: |
| 298 |
intptr = &options->forward_agent; |
313 |
intptr = &options->forward_agent; |
| 299 |
parse_flag: |
314 |
parse_flag: |
|
Lines 775-780
Link Here
|
| 775 |
options->compression_level = -1; |
790 |
options->compression_level = -1; |
| 776 |
options->port = -1; |
791 |
options->port = -1; |
| 777 |
options->connection_attempts = -1; |
792 |
options->connection_attempts = -1; |
|
|
793 |
options->connection_timeout = -1; |
| 778 |
options->number_of_password_prompts = -1; |
794 |
options->number_of_password_prompts = -1; |
| 779 |
options->cipher = -1; |
795 |
options->cipher = -1; |
| 780 |
options->ciphers = NULL; |
796 |
options->ciphers = NULL; |