diff options
author | milo <milo@r0ot.me> | 2010-09-29 23:33:25 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-10-02 22:51:49 +0200 |
commit | 26170241363b6b1911b5515f23fc38ff081296cf (patch) | |
tree | 15c88554da41a13e975784ecc07cc91500a9c9c1 /include/libssh | |
parent | 26d40b5354d6760472127f2c16045fbbb2f12fee (diff) | |
download | libssh-26170241363b6b1911b5515f23fc38ff081296cf.tar.gz libssh-26170241363b6b1911b5515f23fc38ff081296cf.tar.xz libssh-26170241363b6b1911b5515f23fc38ff081296cf.zip |
Added channel features on the server
- ssh_channel_request_send_exit_status()
- ssh_channel_request_send_exit_signal()
- enhanced these features client-side
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/server.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h index b4116dc2..1a7fd4e6 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -192,6 +192,14 @@ LIBSSH_API int ssh_message_global_request_port(ssh_message msg); LIBSSH_API int ssh_channel_open_reverse_forward(ssh_channel channel, const char *remotehost, int remoteport, const char *sourcehost, int localport); +LIBSSH_API int ssh_channel_request_send_exit_status(ssh_channel channel, + int exit_status); +LIBSSH_API int ssh_channel_request_send_exit_signal(ssh_channel channel, + const char *signum, + int core, + const char *errmsg, + const char *lang); + /* deprecated functions */ SSH_DEPRECATED LIBSSH_API int ssh_accept(ssh_session session); |