Displaying 2 results from an estimated 2 matches for "send_env".
2006 Feb 10
0
OpenSSH ControlAllowUsers, et al Patch
...ups[options->num_control_deny_groups++] =
+ xstrdup(arg);
+ }
+ break;
+
case oHashKnownHosts:
intptr = &options->hash_known_hosts;
goto parse_flag;
@@ -963,8 +1020,13 @@
options->server_alive_interval = -1;
options->server_alive_count_max = -1;
options->num_send_env = 0;
+ options->control_bind_mask = 0177;
options->control_path = NULL;
options->control_master = -1;
+ options->num_control_allow_users = 0;
+ options->num_control_deny_users = 0;
+ options->num_control_allow_groups = 0;
+ options->num_control_deny_groups = 0;
options-&g...
2010 Jan 14
1
ssh(1) multiplexing rewrite
...zeof(name), "%.*s", (int)(cp - env), env);
+ if (ret <= 0 || (size_t)ret >= sizeof(name)) {
+ error("env_permitted: name '%.100s...' too long", env);
return 0;
}
- /* XXX handle asynchronously */
- unset_nonblock(client_fd);
+ for (i = 0; i < options.num_send_env; i++)
+ if (match_pattern(name, options.send_env[i]))
+ return 1;
- /* Read command */
- buffer_init(&m);
- if (ssh_msg_recv(client_fd, &m) == -1) {
- error("%s: client msg_recv failed", __func__);
- close(client_fd);
- buffer_free(&m);
- return 0;
- }
- if ((ver = bu...