server: Remove channel_write_stderr.
Этот коммит содержится в:
родитель
3ea33f9ab6
Коммит
038c764055
@ -545,7 +545,7 @@ public:
|
||||
int write(const void *data, size_t len, bool is_stderr=false){
|
||||
int ret;
|
||||
if(is_stderr){
|
||||
ret=channel_write_stderr(channel,data,len);
|
||||
ret=ssh_channel_write_stderr(channel,data,len);
|
||||
} else {
|
||||
ret=ssh_channel_write(channel,data,len);
|
||||
}
|
||||
|
@ -167,8 +167,6 @@ LIBSSH_API int ssh_handle_key_exchange(ssh_session session);
|
||||
*/
|
||||
LIBSSH_API void ssh_bind_free(ssh_bind ssh_bind_o);
|
||||
|
||||
LIBSSH_API int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len);
|
||||
|
||||
/* messages.c */
|
||||
LIBSSH_API int ssh_message_reply_default(ssh_message msg);
|
||||
|
||||
|
18
src/server.c
18
src/server.c
@ -37,7 +37,6 @@
|
||||
#include "libssh/buffer.h"
|
||||
#include "libssh/packet.h"
|
||||
#include "libssh/socket.h"
|
||||
#include "libssh/channels.h"
|
||||
#include "libssh/session.h"
|
||||
#include "libssh/misc.h"
|
||||
#include "libssh/keys.h"
|
||||
@ -478,23 +477,6 @@ int ssh_handle_key_exchange(ssh_session session) {
|
||||
return SSH_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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);
|
||||
}
|
||||
|
||||
/* messages */
|
||||
|
||||
static int ssh_message_auth_reply_default(ssh_message msg,int partial) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user