mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
Turn send_msg_channel_open_failure()'s text and lang into const char *
This commit is contained in:
parent
50b14f696c
commit
1601a657d4
@ -38,7 +38,7 @@
|
|||||||
#include "netio.h"
|
#include "netio.h"
|
||||||
|
|
||||||
static void send_msg_channel_open_failure(unsigned int remotechan, int reason,
|
static void send_msg_channel_open_failure(unsigned int remotechan, int reason,
|
||||||
const unsigned char *text, const unsigned char *lang);
|
const char *text, const char *lang);
|
||||||
static void send_msg_channel_open_confirmation(struct Channel* channel,
|
static void send_msg_channel_open_confirmation(struct Channel* channel,
|
||||||
unsigned int recvwindow,
|
unsigned int recvwindow,
|
||||||
unsigned int recvmaxpacket);
|
unsigned int recvmaxpacket);
|
||||||
@ -1039,7 +1039,7 @@ void send_msg_channel_success(struct Channel *channel) {
|
|||||||
/* Send a channel open failure message, with a corresponding reason
|
/* Send a channel open failure message, with a corresponding reason
|
||||||
* code (usually resource shortage or unknown chan type) */
|
* code (usually resource shortage or unknown chan type) */
|
||||||
static void send_msg_channel_open_failure(unsigned int remotechan,
|
static void send_msg_channel_open_failure(unsigned int remotechan,
|
||||||
int reason, const unsigned char *text, const unsigned char *lang) {
|
int reason, const char *text, const char *lang) {
|
||||||
|
|
||||||
TRACE(("enter send_msg_channel_open_failure"))
|
TRACE(("enter send_msg_channel_open_failure"))
|
||||||
CHECKCLEARTOWRITE();
|
CHECKCLEARTOWRITE();
|
||||||
@ -1047,8 +1047,8 @@ static void send_msg_channel_open_failure(unsigned int remotechan,
|
|||||||
buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_OPEN_FAILURE);
|
buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_OPEN_FAILURE);
|
||||||
buf_putint(ses.writepayload, remotechan);
|
buf_putint(ses.writepayload, remotechan);
|
||||||
buf_putint(ses.writepayload, reason);
|
buf_putint(ses.writepayload, reason);
|
||||||
buf_putstring(ses.writepayload, text, strlen((char*)text));
|
buf_putstring(ses.writepayload, (const unsigned char *) text, strlen(text));
|
||||||
buf_putstring(ses.writepayload, lang, strlen((char*)lang));
|
buf_putstring(ses.writepayload, (const unsigned char *) lang, strlen(lang));
|
||||||
|
|
||||||
encrypt_packet();
|
encrypt_packet();
|
||||||
TRACE(("leave send_msg_channel_open_failure"))
|
TRACE(("leave send_msg_channel_open_failure"))
|
||||||
|
Loading…
Reference in New Issue
Block a user