aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libssh/server.h9
-rw-r--r--libssh/server.c2
2 files changed, 7 insertions, 4 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h
index a235ffa6..9bfade62 100644
--- a/include/libssh/server.h
+++ b/include/libssh/server.h
@@ -59,11 +59,14 @@ typedef struct ssh_bind_struct* ssh_bind;
LIBSSH_API ssh_bind ssh_bind_new(void);
/**
- * @brief Set the opitons for the current SSH server bind.
+ * @brief Set the options for the current SSH server bind.
*
- * @param ssh_bind The ssh server bind to use.
+ * @param sshbind The ssh server bind to configure.
*
- * @param options The option structure to set.
+ * @param type Option to set up.
+ * @param value Value to set.
+ * @returns SSH_OK No error.
+ * @returns SSH_ERROR Invalid option or parameter.
*/
LIBSSH_API int ssh_bind_options_set(ssh_bind sshbind,
enum ssh_bind_options_e type, const void *value);
diff --git a/libssh/server.c b/libssh/server.c
index ee00f7c1..d42d5b1a 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -858,7 +858,7 @@ char *ssh_message_channel_request_subsystem(ssh_message msg){
/** @brief defines the SSH_MESSAGE callback
* @param session the current ssh session
- * @param ssh_message_callback a function pointer to a callback taking the
+ * @param ssh_message_callback_ a function pointer to a callback taking the
* current ssh session and received message as parameters. the function returns
* 0 if the message has been parsed and treated sucessfuly, 1 otherwise (libssh
* must take care of the response).