1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

channels: Move ssh_channel_write_stderr out of server-only

Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Aris Adamantiadis
2015-07-07 21:06:47 +02:00
committed by Andreas Schneider
parent bbe437dbb1
commit 0701745cbc
3 changed files with 5 additions and 4 deletions

View File

@@ -414,6 +414,9 @@ LIBSSH_API void ssh_channel_set_blocking(ssh_channel channel, int blocking);
LIBSSH_API void ssh_channel_set_counter(ssh_channel channel, LIBSSH_API void ssh_channel_set_counter(ssh_channel channel,
ssh_counter counter); ssh_counter counter);
LIBSSH_API int ssh_channel_write(ssh_channel channel, const void *data, uint32_t len); LIBSSH_API int ssh_channel_write(ssh_channel channel, const void *data, uint32_t len);
LIBSSH_API int ssh_channel_write_stderr(ssh_channel channel,
const void *data,
uint32_t len);
LIBSSH_API uint32_t ssh_channel_window_size(ssh_channel channel); LIBSSH_API uint32_t ssh_channel_window_size(ssh_channel channel);
LIBSSH_API char *ssh_basename (const char *path); LIBSSH_API char *ssh_basename (const char *path);

View File

@@ -316,9 +316,6 @@ LIBSSH_API int ssh_channel_request_send_exit_signal(ssh_channel channel,
int core, int core,
const char *errmsg, const char *errmsg,
const char *lang); const char *lang);
LIBSSH_API int ssh_channel_write_stderr(ssh_channel channel,
const void *data,
uint32_t len);
LIBSSH_API int ssh_send_keepalive(ssh_session session); LIBSSH_API int ssh_send_keepalive(ssh_session session);

View File

@@ -3192,7 +3192,6 @@ void ssh_channel_set_counter(ssh_channel channel,
} }
} }
#if WITH_SERVER
/** /**
* @brief Blocking write on a channel stderr. * @brief Blocking write on a channel stderr.
* *
@@ -3210,6 +3209,8 @@ int ssh_channel_write_stderr(ssh_channel channel, const void *data, uint32_t len
return channel_write_common(channel, data, len, 1); return channel_write_common(channel, data, len, 1);
} }
#if WITH_SERVER
/** /**
* @brief Open a TCP/IP reverse forwarding channel. * @brief Open a TCP/IP reverse forwarding channel.
* *