Page MenuHomePhabricator

sftp_server_free()
Closed, ResolvedPublic

Description

Implementation of sftp_server_free() as counterpart to sftp_server_new().

Event Timeline

davidwed created this task.Apr 20 2019, 2:50 PM
davidwed added a comment.EditedApr 20 2019, 2:54 PM

davidwed added a project: Restricted Project.Apr 20 2019, 3:06 PM
Jakuje added a subscriber: Jakuje.Apr 25 2019, 4:56 PM

The sftp server is using normal sftp_session. Why the sftp_free() function can not be used, since it is almost the same as your proposal?

The sftp_free() function calls ssh_channel_free(), not sftp_server_free().

I use the libssh as SFTP server. So I have to use the sftp_server_new() function, which does not create a channel in the opposite to sftp_new().

Also, it is less confusing if the new() function is named like the free() function.