1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

options: Document that the caller needs to close the socket

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2022-04-19 16:22:41 +02:00
committed by Jakub Jelen
parent 4b20d7ad18
commit ca51565056
2 changed files with 9 additions and 3 deletions

View File

@@ -265,9 +265,10 @@ int ssh_options_set_algo(ssh_session session,
* The file descriptor to use (socket_t).\n
* \n
* If you wish to open the socket yourself for a reason
* or another, set the file descriptor. Don't forget to
* set the hostname as the hostname is used as a key in
* the known_host mechanism.
* or another, set the file descriptor and take care of closing
* it (this is new behavior in libssh 0.10).
* Don't forget to set the hostname as the hostname is used
* as a key in the known_host mechanism.
*
* - SSH_OPTIONS_BINDADDR:
* The address to bind the client to (const char *).