aboutsummaryrefslogtreecommitdiff
path: root/src/messages.c
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 /src/messages.c
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 'src/messages.c')
-rw-r--r--src/messages.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/messages.c b/src/messages.c
index f0c6d781..fdd355cb 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -1218,6 +1218,17 @@ end:
return SSH_PACKET_USED;
}
+/**
+ * @internal
+ *
+ * @brief This function accepts a channel open request for the specified channel.
+ *
+ * @param[in] msg The message.
+ *
+ * @param[in] chan The channel the request is made on.
+ *
+ * @returns SSH_OK on success, SSH_ERROR if an error occured.
+ */
int ssh_message_channel_request_open_reply_accept_channel(ssh_message msg, ssh_channel chan) {
ssh_session session;
int rc;
@@ -1258,7 +1269,17 @@ int ssh_message_channel_request_open_reply_accept_channel(ssh_message msg, ssh_c
return rc;
}
-
+/**
+ * @internal
+ *
+ * @brief This function accepts a channel open request.
+ *
+ * @param[in] msg The message.
+ *
+ * @returns a valid ssh_channel handle if the request is to be allowed
+ *
+ * @returns NULL in case of error
+ */
ssh_channel ssh_message_channel_request_open_reply_accept(ssh_message msg) {
ssh_channel chan;
int rc;