aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Wedderwille <davidwe@posteo.de>2019-04-30 00:39:27 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-06-13 16:49:20 +0200
commit658a15099173de1a44d7a4b3c98678eaa5969f74 (patch)
tree27ca5f1ad35ea290f6f90e873575328da270deb9 /include
parent32eec7b418874462326fed7f10b9602bf92405f1 (diff)
downloadlibssh-658a15099173de1a44d7a4b3c98678eaa5969f74.tar.gz
libssh-658a15099173de1a44d7a4b3c98678eaa5969f74.tar.xz
libssh-658a15099173de1a44d7a4b3c98678eaa5969f74.zip
channels: Make ssh_message_channel_request_open_reply_accept_channel public
This also adds documentation for it. Fixes T144 Signed-off-by: David Wedderwille <davidwe@posteo.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h1
-rw-r--r--include/libssh/messages.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index e7eb6e04..b2156d77 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -608,6 +608,7 @@ SSH_DEPRECATED LIBSSH_API void ssh_log(ssh_session session,
const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
LIBSSH_API ssh_channel ssh_message_channel_request_open_reply_accept(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_open_reply_accept_channel(ssh_message msg, ssh_channel chan);
LIBSSH_API int ssh_message_channel_request_reply_success(ssh_message msg);
#define SSH_MESSAGE_FREE(x) \
do { if ((x) != NULL) { ssh_message_free(x); (x) = NULL; } } while(0)
diff --git a/include/libssh/messages.h b/include/libssh/messages.h
index 07caa1ee..fd40b9f7 100644
--- a/include/libssh/messages.h
+++ b/include/libssh/messages.h
@@ -102,6 +102,5 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_request);
int ssh_message_handle_channel_request(ssh_session session, ssh_channel channel, ssh_buffer packet,
const char *request, uint8_t want_reply);
ssh_message ssh_message_pop_head(ssh_session session);
-int ssh_message_channel_request_open_reply_accept_channel(ssh_message msg, ssh_channel chan);
#endif /* MESSAGES_H_ */