mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 18:52:00 +00:00
Turn start_send_channel_request()'s type argument into char *
This commit is contained in:
parent
c239baf801
commit
50b14f696c
@ -135,7 +135,7 @@ int send_msg_channel_open_init(int fd, const struct ChanType *type);
|
|||||||
void recv_msg_channel_open_confirmation();
|
void recv_msg_channel_open_confirmation();
|
||||||
void recv_msg_channel_open_failure();
|
void recv_msg_channel_open_failure();
|
||||||
#endif
|
#endif
|
||||||
void start_send_channel_request(struct Channel *channel, unsigned char *type);
|
void start_send_channel_request(struct Channel *channel, char *type);
|
||||||
|
|
||||||
void send_msg_request_success();
|
void send_msg_request_success();
|
||||||
void send_msg_request_failure();
|
void send_msg_request_failure();
|
||||||
|
@ -305,7 +305,7 @@ static void send_chansess_pty_req(struct Channel *channel) {
|
|||||||
|
|
||||||
static void send_chansess_shell_req(struct Channel *channel) {
|
static void send_chansess_shell_req(struct Channel *channel) {
|
||||||
|
|
||||||
unsigned char* reqtype = NULL;
|
char* reqtype = NULL;
|
||||||
|
|
||||||
TRACE(("enter send_chansess_shell_req"))
|
TRACE(("enter send_chansess_shell_req"))
|
||||||
|
|
||||||
|
@ -1244,12 +1244,12 @@ struct Channel* get_any_ready_channel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void start_send_channel_request(struct Channel *channel,
|
void start_send_channel_request(struct Channel *channel,
|
||||||
unsigned char *type) {
|
char *type) {
|
||||||
|
|
||||||
CHECKCLEARTOWRITE();
|
CHECKCLEARTOWRITE();
|
||||||
buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_REQUEST);
|
buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_REQUEST);
|
||||||
buf_putint(ses.writepayload, channel->remotechan);
|
buf_putint(ses.writepayload, channel->remotechan);
|
||||||
|
|
||||||
buf_putstring(ses.writepayload, type, strlen(type));
|
buf_putstring(ses.writepayload, (const unsigned char *) type, strlen(type));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user