1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-23 01:22:37 +03:00

libssh2_banner_set => libssh2_session_banner_get

Marked the old function as deprecated. Added the new name in the correct
name space with the same arguments and functionality.
This commit is contained in:
Daniel Stenberg
2011-09-09 23:11:42 +02:00
parent f2c21f6f84
commit 7229d989e7
6 changed files with 54 additions and 7 deletions

View File

@@ -411,11 +411,11 @@ get_socket_nonblocking(int sockfd)
#endif
}
/* libssh2_banner_set
* Set the local banner
/* libssh2_session_banner_set
* Set the local banner to use in the server handshake.
*/
LIBSSH2_API int
libssh2_banner_set(LIBSSH2_SESSION * session, const char *banner)
libssh2_session_banner_set(LIBSSH2_SESSION * session, const char *banner)
{
size_t banner_len = banner ? strlen(banner) : 0;
@@ -446,6 +446,15 @@ libssh2_banner_set(LIBSSH2_SESSION * session, const char *banner)
return 0;
}
/* libssh2_banner_set
* Set the local banner. DEPRECATED VERSION
*/
LIBSSH2_API int
libssh2_banner_set(LIBSSH2_SESSION * session, const char *banner)
{
return libssh2_session_banner_set(session, banner);
}
/*
* libssh2_session_init_ex
*