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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user