diff options
Diffstat (limited to 'libssh/server.c')
-rw-r--r-- | libssh/server.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c index 8df0a1b..8e7a26a 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -510,6 +510,23 @@ int ssh_accept(SSH_SESSION *session) { return 0; } +/** + * @brief Blocking write on channel for stderr. + * + * @param channel The channel to write to. + * + * @param data A pointer to the data to write. + * + * @param len The length of the buffer to write to. + * + * @return The number of bytes written, SSH_ERROR on error. + * + * @see channel_read() + */ +int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len) { + return channel_write_common(channel, data, len, 1); +} + /** @} */ /* vim: set ts=2 sw=2 et cindent: */ |