diff options
author | William Orr <will@worrbase.com> | 2013-08-12 12:22:20 -0700 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-11-02 21:02:56 +0100 |
commit | ce1d73e0f08587e90ccf31aa59ef26202b7bd483 (patch) | |
tree | d926f0b39af1da0ee741aebfe2ef1a934f763b2e /src/options.c | |
parent | 20caa68b8458471212f16a86890546eac3a71fdd (diff) | |
download | libssh-ce1d73e0f08587e90ccf31aa59ef26202b7bd483.tar.gz libssh-ce1d73e0f08587e90ccf31aa59ef26202b7bd483.tar.xz libssh-ce1d73e0f08587e90ccf31aa59ef26202b7bd483.zip |
ssh_options_get can now return ProxyCommand
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 9 |
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; |