mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-14 04:18:54 +03:00
Document that options set on a bind will be free'd by ssh_bind_free
Signed-off-by: James Wrigley <james@puiterwijk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
8fbb12eddf
commit
804e283c8b
@@ -222,6 +222,9 @@ LIBSSH_API int ssh_server_init_kex(ssh_session session);
|
|||||||
/**
|
/**
|
||||||
* @brief Free a ssh servers bind.
|
* @brief Free a ssh servers bind.
|
||||||
*
|
*
|
||||||
|
* Note that this will also free options that have been set on the bind,
|
||||||
|
* including keys set with SSH_BIND_OPTIONS_IMPORT_KEY.
|
||||||
|
*
|
||||||
* @param ssh_bind_o The ssh server bind to free.
|
* @param ssh_bind_o The ssh server bind to free.
|
||||||
*/
|
*/
|
||||||
LIBSSH_API void ssh_bind_free(ssh_bind ssh_bind_o);
|
LIBSSH_API void ssh_bind_free(ssh_bind ssh_bind_o);
|
||||||
|
|||||||
@@ -1926,7 +1926,8 @@ static int ssh_bind_set_algo(ssh_bind sshbind,
|
|||||||
* This is DEPRECATED, please do not use.
|
* This is DEPRECATED, please do not use.
|
||||||
*
|
*
|
||||||
* - SSH_BIND_OPTIONS_IMPORT_KEY:
|
* - SSH_BIND_OPTIONS_IMPORT_KEY:
|
||||||
* Set the Private Key for the server directly (ssh_key)
|
* Set the Private Key for the server directly
|
||||||
|
* (ssh_key). It will be free'd by ssh_bind_free().
|
||||||
*
|
*
|
||||||
* - SSH_BIND_OPTIONS_CIPHERS_C_S:
|
* - SSH_BIND_OPTIONS_CIPHERS_C_S:
|
||||||
* Set the symmetric cipher client to server (const char *,
|
* Set the symmetric cipher client to server (const char *,
|
||||||
|
|||||||
Reference in New Issue
Block a user