mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
Prefix message_new with ssh_
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
#include "libssh/dh.h"
|
#include "libssh/dh.h"
|
||||||
#include "libssh/messages.h"
|
#include "libssh/messages.h"
|
||||||
|
|
||||||
static ssh_message message_new(ssh_session session){
|
static ssh_message ssh_message_new(ssh_session session){
|
||||||
ssh_message msg = malloc(sizeof(struct ssh_message_struct));
|
ssh_message msg = malloc(sizeof(struct ssh_message_struct));
|
||||||
if (msg == NULL) {
|
if (msg == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -81,7 +81,7 @@ SSH_PACKET_CALLBACK(ssh_packet_service_request){
|
|||||||
}
|
}
|
||||||
ssh_log(session, SSH_LOG_PACKET,
|
ssh_log(session, SSH_LOG_PACKET,
|
||||||
"Received a SERVICE_REQUEST for service %s", service_c);
|
"Received a SERVICE_REQUEST for service %s", service_c);
|
||||||
msg=message_new(session);
|
msg=ssh_message_new(session);
|
||||||
if(!msg){
|
if(!msg){
|
||||||
SAFE_FREE(service_c);
|
SAFE_FREE(service_c);
|
||||||
goto error;
|
goto error;
|
||||||
@@ -113,7 +113,7 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_request){
|
|||||||
|
|
||||||
(void)user;
|
(void)user;
|
||||||
(void)type;
|
(void)type;
|
||||||
msg = message_new(session);
|
msg = ssh_message_new(session);
|
||||||
if (msg == NULL) {
|
if (msg == NULL) {
|
||||||
ssh_set_error_oom(session);
|
ssh_set_error_oom(session);
|
||||||
goto error;
|
goto error;
|
||||||
@@ -295,7 +295,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open){
|
|||||||
enter_function();
|
enter_function();
|
||||||
(void)type;
|
(void)type;
|
||||||
(void)user;
|
(void)user;
|
||||||
msg = message_new(session);
|
msg = ssh_message_new(session);
|
||||||
if (msg == NULL) {
|
if (msg == NULL) {
|
||||||
ssh_set_error_oom(session);
|
ssh_set_error_oom(session);
|
||||||
goto error;
|
goto error;
|
||||||
@@ -515,7 +515,7 @@ int ssh_message_handle_channel_request(ssh_session session, ssh_channel channel,
|
|||||||
const char *request, uint8_t want_reply) {
|
const char *request, uint8_t want_reply) {
|
||||||
ssh_message msg = NULL;
|
ssh_message msg = NULL;
|
||||||
enter_function();
|
enter_function();
|
||||||
msg = message_new(session);
|
msg = ssh_message_new(session);
|
||||||
if (msg == NULL) {
|
if (msg == NULL) {
|
||||||
ssh_set_error_oom(session);
|
ssh_set_error_oom(session);
|
||||||
goto error;
|
goto error;
|
||||||
|
|||||||
Reference in New Issue
Block a user