|
Lines 1733-1738
initialize_options(Options * options)
Link Here
|
| 1733 |
options->forward_x11 = -1; |
1733 |
options->forward_x11 = -1; |
| 1734 |
options->forward_x11_trusted = -1; |
1734 |
options->forward_x11_trusted = -1; |
| 1735 |
options->forward_x11_timeout = -1; |
1735 |
options->forward_x11_timeout = -1; |
|
|
1736 |
options->clear_forwardings = -1; |
| 1737 |
options->stdio_forward_host = NULL; |
| 1738 |
options->stdio_forward_port = 0; |
| 1736 |
options->exit_on_forward_failure = -1; |
1739 |
options->exit_on_forward_failure = -1; |
| 1737 |
options->xauth_location = NULL; |
1740 |
options->xauth_location = NULL; |
| 1738 |
options->fwd_opts.gateway_ports = -1; |
1741 |
options->fwd_opts.gateway_ports = -1; |
|
Lines 1779-1785
initialize_options(Options * options)
Link Here
|
| 1779 |
options->num_local_forwards = 0; |
1782 |
options->num_local_forwards = 0; |
| 1780 |
options->remote_forwards = NULL; |
1783 |
options->remote_forwards = NULL; |
| 1781 |
options->num_remote_forwards = 0; |
1784 |
options->num_remote_forwards = 0; |
| 1782 |
options->clear_forwardings = -1; |
|
|
| 1783 |
options->log_level = SYSLOG_LEVEL_NOT_SET; |
1785 |
options->log_level = SYSLOG_LEVEL_NOT_SET; |
| 1784 |
options->preferred_authentications = NULL; |
1786 |
options->preferred_authentications = NULL; |
| 1785 |
options->bind_address = NULL; |
1787 |
options->bind_address = NULL; |
|
Lines 1853-1860
fill_default_options(Options * options)
Link Here
|
| 1853 |
options->forward_x11_trusted = 0; |
1855 |
options->forward_x11_trusted = 0; |
| 1854 |
if (options->forward_x11_timeout == -1) |
1856 |
if (options->forward_x11_timeout == -1) |
| 1855 |
options->forward_x11_timeout = 1200; |
1857 |
options->forward_x11_timeout = 1200; |
|
|
1858 |
/* |
| 1859 |
* stdio forwarding (-W) changes the default for these but we defer |
| 1860 |
* setting the values so they can be overridden. |
| 1861 |
*/ |
| 1856 |
if (options->exit_on_forward_failure == -1) |
1862 |
if (options->exit_on_forward_failure == -1) |
| 1857 |
options->exit_on_forward_failure = 0; |
1863 |
options->exit_on_forward_failure = |
|
|
1864 |
options->stdio_forward_host != NULL ? 1 : 0; |
| 1865 |
if (options->clear_forwardings == -1) |
| 1866 |
options->clear_forwardings = |
| 1867 |
options->stdio_forward_host != NULL ? 1 : 0; |
| 1868 |
if (options->clear_forwardings == 1) |
| 1869 |
clear_forwardings(options); |
| 1858 |
if (options->xauth_location == NULL) |
1870 |
if (options->xauth_location == NULL) |
| 1859 |
options->xauth_location = _PATH_XAUTH; |
1871 |
options->xauth_location = _PATH_XAUTH; |
| 1860 |
if (options->fwd_opts.gateway_ports == -1) |
1872 |
if (options->fwd_opts.gateway_ports == -1) |
|
Lines 1943-1950
fill_default_options(Options * options)
Link Here
|
| 1943 |
} |
1955 |
} |
| 1944 |
if (options->log_level == SYSLOG_LEVEL_NOT_SET) |
1956 |
if (options->log_level == SYSLOG_LEVEL_NOT_SET) |
| 1945 |
options->log_level = SYSLOG_LEVEL_INFO; |
1957 |
options->log_level = SYSLOG_LEVEL_INFO; |
| 1946 |
if (options->clear_forwardings == 1) |
|
|
| 1947 |
clear_forwardings(options); |
| 1948 |
if (options->no_host_authentication_for_localhost == - 1) |
1958 |
if (options->no_host_authentication_for_localhost == - 1) |
| 1949 |
options->no_host_authentication_for_localhost = 0; |
1959 |
options->no_host_authentication_for_localhost = 0; |
| 1950 |
if (options->identities_only == -1) |
1960 |
if (options->identities_only == -1) |
|
Lines 2405-2410
dump_client_config(Options *o, const cha
Link Here
|
| 2405 |
dump_cfg_fmtint(oCompression, o->compression); |
2415 |
dump_cfg_fmtint(oCompression, o->compression); |
| 2406 |
dump_cfg_fmtint(oControlMaster, o->control_master); |
2416 |
dump_cfg_fmtint(oControlMaster, o->control_master); |
| 2407 |
dump_cfg_fmtint(oEnableSSHKeysign, o->enable_ssh_keysign); |
2417 |
dump_cfg_fmtint(oEnableSSHKeysign, o->enable_ssh_keysign); |
|
|
2418 |
dump_cfg_fmtint(oClearAllForwardings, o->clear_forwardings); |
| 2408 |
dump_cfg_fmtint(oExitOnForwardFailure, o->exit_on_forward_failure); |
2419 |
dump_cfg_fmtint(oExitOnForwardFailure, o->exit_on_forward_failure); |
| 2409 |
dump_cfg_fmtint(oFingerprintHash, o->fingerprint_hash); |
2420 |
dump_cfg_fmtint(oFingerprintHash, o->fingerprint_hash); |
| 2410 |
dump_cfg_fmtint(oForwardAgent, o->forward_agent); |
2421 |
dump_cfg_fmtint(oForwardAgent, o->forward_agent); |