mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Deprecate untested function sftp_server_init
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
@@ -883,7 +883,7 @@ LIBSSH_API sftp_session sftp_server_new(ssh_session session, ssh_channel chan);
|
|||||||
*
|
*
|
||||||
* @return 0 on success, < 0 on error.
|
* @return 0 on success, < 0 on error.
|
||||||
*/
|
*/
|
||||||
LIBSSH_API int sftp_server_init(sftp_session sftp);
|
SSH_DEPRECATED LIBSSH_API int sftp_server_init(sftp_session sftp);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Close and deallocate a sftp server session.
|
* @brief Close and deallocate a sftp server session.
|
||||||
|
|||||||
@@ -266,13 +266,14 @@ error:
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME Untested. To be @deprecated */
|
/* @deprecated in favor of sftp_server_new() and callbacks based sftp server */
|
||||||
int sftp_server_init(sftp_session sftp)
|
int sftp_server_init(sftp_session sftp)
|
||||||
{
|
{
|
||||||
ssh_session session = sftp->session;
|
ssh_session session = sftp->session;
|
||||||
sftp_client_message msg = NULL;
|
sftp_client_message msg = NULL;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
/* handles setting the sftp->client_version */
|
||||||
msg = sftp_get_client_message(sftp);
|
msg = sftp_get_client_message(sftp);
|
||||||
if (msg == NULL) {
|
if (msg == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user