mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
legacy: Added missing channel_write_stderr.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user