diff options
author | pmorris67 <philip.morris67@ntlworld.com> | 2018-12-27 07:07:31 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-03-29 08:10:43 +0100 |
commit | f05571841b051fa8bdb5e03bc82f34abaac53bd9 (patch) | |
tree | c52c6d977e69dee4bc59208d209c3a245c2065b1 /include/libssh/libssh.h | |
parent | 55bcefbc5673c2327c9efbd3ad78d31811acb5be (diff) | |
download | libssh-f05571841b051fa8bdb5e03bc82f34abaac53bd9.tar.gz libssh-f05571841b051fa8bdb5e03bc82f34abaac53bd9.tar.xz libssh-f05571841b051fa8bdb5e03bc82f34abaac53bd9.zip |
channels: Added function to create channel to UNIX socket
[asn: Reformatting and added openssh version check]
Signed-off-by: Philip Morris <philip.morris67@ntlworld.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 2aef726c..b42ace86 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -454,6 +454,8 @@ LIBSSH_API ssh_channel ssh_channel_new(ssh_session session); LIBSSH_API int ssh_channel_open_auth_agent(ssh_channel channel); LIBSSH_API int ssh_channel_open_forward(ssh_channel channel, const char *remotehost, int remoteport, const char *sourcehost, int localport); +LIBSSH_API int ssh_channel_open_forward_unix(ssh_channel channel, const char *remotepath, + const char *sourcehost, int localport); LIBSSH_API int ssh_channel_open_session(ssh_channel channel); LIBSSH_API int ssh_channel_open_x11(ssh_channel channel, const char *orig_addr, int orig_port); LIBSSH_API int ssh_channel_poll(ssh_channel channel, int is_stderr); |