Lines Matching refs:options

62 extern Options options;
244 for (i = 0; i < options.num_send_env; i++)
245 if (match_pattern(name, options.send_env[i]))
427 if (options.control_master == SSHCTL_MASTER_ASK ||
428 options.control_master == SSHCTL_MASTER_AUTO_ASK) {
499 if (options.control_master == SSHCTL_MASTER_ASK ||
500 options.control_master == SSHCTL_MASTER_AUTO_ASK) {
526 (options.fwd_opts.gateway_ports ? "*" : "LOCALHOST") :
534 (options.fwd_opts.gateway_ports ? "*" : "LOCALHOST") :
599 if (fctx->fid >= options.num_remote_forwards ||
600 (options.remote_forwards[fctx->fid].connect_path == NULL &&
601 options.remote_forwards[fctx->fid].connect_host == NULL)) {
605 rfwd = &options.remote_forwards[fctx->fid];
755 for (i = 0; i < options.num_local_forwards; i++) {
757 options.local_forwards + i)) {
766 for (i = 0; i < options.num_remote_forwards; i++) {
767 if (!compare_forward(&fwd, options.remote_forwards + i))
776 options.remote_forwards[i].allocated_port)) != 0)
783 if (options.control_master == SSHCTL_MASTER_ASK ||
784 options.control_master == SSHCTL_MASTER_AUTO_ASK) {
795 &options.fwd_opts)) {
802 add_local_forward(&options, &fwd);
810 add_remote_forward(&options, &fwd);
814 fctx->fid = options.num_remote_forwards - 1;
889 for (i = 0; i < options.num_local_forwards; i++) {
891 options.local_forwards + i)) {
892 found_fwd = options.local_forwards + i;
898 for (i = 0; i < options.num_remote_forwards; i++) {
900 options.remote_forwards + i)) {
901 found_fwd = options.remote_forwards + i;
913 * between options.remote_forwards and permitted_opens.
922 &options.fwd_opts) == -1)
1004 if (options.control_master == SSHCTL_MASTER_ASK ||
1005 options.control_master == SSHCTL_MASTER_AUTO_ASK) {
1095 if (options.control_master == SSHCTL_MASTER_ASK ||
1096 options.control_master == SSHCTL_MASTER_AUTO_ASK) {
1109 free(options.control_path);
1110 options.control_path = NULL;
1262 char *orig_control_path = options.control_path;
1267 if (options.control_path == NULL ||
1268 options.control_master == SSHCTL_MASTER_NO)
1286 options.control_path = NULL;
1287 xasprintf(&options.control_path, "%s.%s", orig_control_path, rbuf);
1288 debug3_f("temporary control path %s", options.control_path);
1291 muxserver_sock = unix_listener(options.control_path, 64, 0);
1297 "disabling multiplexing", options.control_path);
1304 free(options.control_path);
1305 options.control_path = NULL;
1306 options.control_master = SSHCTL_MASTER_NO;
1315 if (link(options.control_path, orig_control_path) != 0) {
1318 options.control_path, orig_control_path,
1323 unlink(options.control_path);
1326 unlink(options.control_path);
1327 free(options.control_path);
1328 options.control_path = orig_control_path;
1335 0, options.control_path, 1);
1369 if (cctx->want_x_fwd && options.forward_x11 && display != NULL) {
1373 if (client_x11_get_proto(ssh, display, options.xauth_location,
1374 options.forward_x11_trusted, options.forward_x11_timeout,
1387 if (cctx->want_agent_fwd && options.forward_agent) {
1846 options.num_local_forwards, options.num_remote_forwards);
1849 for (i = 0; i < options.num_local_forwards; i++) {
1851 options.local_forwards[i].connect_port == 0 ?
1853 options.local_forwards + i) != 0)
1856 for (i = 0; i < options.num_remote_forwards; i++) {
1858 options.remote_forwards + i) != 0)
1883 if (options.stdin_null && stdfd_devnull(1, 0, 0) == -1)
1886 if ((term = lookup_env_in_list("TERM", options.setenv,
1887 options.num_setenv)) == NULL || *term == '\0')
1891 if (options.escape_char != SSH_ESCAPECHAR_NONE)
1892 echar = (u_int)options.escape_char;
1900 (r = sshbuf_put_u32(m, options.forward_x11)) != 0 ||
1901 (r = sshbuf_put_u32(m, options.forward_agent)) != 0 ||
1902 (r = sshbuf_put_u32(m, options.session_type == SESSION_TYPE_SUBSYSTEM)) != 0 ||
1909 if (options.num_send_env > 0 && environ != NULL) {
1917 for (i = 0; i < options.num_setenv; i++) {
1918 if ((r = sshbuf_put_cstring(m, options.setenv[i])) != 0)
1981 if (options.fork_after_authentication)
1987 options.request_tty == REQUEST_TTY_FORCE);
2011 leave_raw_mode(options.request_tty ==
2036 leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
2047 if (tty_flag && options.log_level >= SYSLOG_LEVEL_INFO)
2111 if (options.stdin_null && stdfd_devnull(1, 0, 0) == -1)
2119 (r = sshbuf_put_cstring(m, options.stdio_forward_host)) != 0 ||
2120 (r = sshbuf_put_u32(m, options.stdio_forward_port)) != 0)
2247 int sock, timeout = options.connection_timeout, timeout_ms = -1;
2251 if (options.stdio_forward_host != NULL)
2257 switch (options.control_master) {
2289 options.control_master != SSHCTL_MASTER_NO) {
2321 if (options.log_level != SYSLOG_LEVEL_QUIET)
2340 if (options.log_level != SYSLOG_LEVEL_QUIET)