aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/options.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index f8055780..46dc0b4b 100644
--- a/src/options.c
+++ b/src/options.c
@@ -856,6 +856,11 @@ int ssh_options_get_port(ssh_session session, unsigned int* port_target) {
* It may include "%s" which will be replaced by the
* user home directory.
*
+ * - SSH_OPTIONS_PROXYCOMMAND:
+ * Get the proxycommand necessary to log into the
+ * remote host. When not explicitly set, it will be read
+ * from the ~/.ssh/config file.
+ *
* @param value The value to get into. As a char**, space will be
* allocated by the function for the value, it is
* your responsibility to free the memory using
@@ -894,6 +899,10 @@ int ssh_options_get(ssh_session session, enum ssh_options_e type, char** value)
src = ssh_iterator_value(char *, it);
break;
}
+ case SSH_OPTIONS_PROXYCOMMAND: {
+ src = session->opts.ProxyCommand;
+ break;
+ }
default:
ssh_set_error(session, SSH_REQUEST_DENIED, "Unknown ssh option %d", type);
return SSH_ERROR;