diff options
-rw-r--r-- | include/libssh/server.h | 2 | ||||
-rw-r--r-- | src/legacy.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h index 8f67d26d..d107f7e9 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -235,6 +235,8 @@ LIBSSH_API int ssh_channel_write_stderr(ssh_channel channel, /* deprecated functions */ SSH_DEPRECATED LIBSSH_API int ssh_accept(ssh_session session); +SSH_DEPRECATED LIBSSH_API int channel_write_stderr(ssh_channel channel, + const void *data, uint32_t len); #ifdef __cplusplus } diff --git a/src/legacy.c b/src/legacy.c index 8360a344..75e13630 100644 --- a/src/legacy.c +++ b/src/legacy.c @@ -242,4 +242,9 @@ char *string_to_char(ssh_string str){ int ssh_accept(ssh_session session) { return ssh_handle_key_exchange(session); } + +int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len) { + return ssh_channel_write(channel, data, len); +} + #endif /* WITH_SERVER */ |