aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-23 12:38:45 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-23 12:38:45 +0100
commitdab8f847e6581e567879c8b5ca7724d849049498 (patch)
tree22556388a7380f70d9e0abeb9fadbf173792458a
parent8d3823127c808f5f73e8f81ce4381d221b501516 (diff)
downloadlibssh-dab8f847e6581e567879c8b5ca7724d849049498.tar.gz
libssh-dab8f847e6581e567879c8b5ca7724d849049498.tar.xz
libssh-dab8f847e6581e567879c8b5ca7724d849049498.zip
legacy: Added missing channel_write_stderr.
-rw-r--r--include/libssh/server.h2
-rw-r--r--src/legacy.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h
index 8f67d26..d107f7e 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 8360a34..75e1363 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 */