From f05571841b051fa8bdb5e03bc82f34abaac53bd9 Mon Sep 17 00:00:00 2001 From: pmorris67 Date: Thu, 27 Dec 2018 07:07:31 +0000 Subject: channels: Added function to create channel to UNIX socket [asn: Reformatting and added openssh version check] Signed-off-by: Philip Morris Reviewed-by: Andreas Schneider --- include/libssh/libssh.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.2.1