mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +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:
@@ -266,13 +266,14 @@ error:
|
||||
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)
|
||||
{
|
||||
ssh_session session = sftp->session;
|
||||
sftp_client_message msg = NULL;
|
||||
int rc;
|
||||
|
||||
/* handles setting the sftp->client_version */
|
||||
msg = sftp_get_client_message(sftp);
|
||||
if (msg == NULL) {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user