Warning Report: Multiple deprecated function warnings in libssh usage
During compilation of the project, a significant number of warnings are generated due to the usage of deprecated functions. These deprecated APIs include functions such as publickey_from_file, privatekey_from_file, privatekey_free, ssh_channel_get_exit_status, ssh_channel_select, ssh_scp_free, ssh_scp_close, ssh_scp_push_file64, ssh_scp_accept_request, sftp_server_init, among others.
The warnings appear mostly in the files:
src/legacy.csrc/scp.csrc/sshfs_mount/sftp_server.cppsrc/ssh/ssh_client.cpp
Sample warning messages:
warning: ‘publickey_from_file’ is deprecated [-Wdeprecated-declarations]
warning: ‘privatekey_from_file’ is deprecated [-Wdeprecated-declarations]
warning: ‘privatekey_free’ is deprecated [-Wdeprecated-declarations]
warning: ‘ssh_channel_get_exit_status’ is deprecated [-Wdeprecated-declarations]
warning: ‘ssh_channel_select’ is deprecated [-Wdeprecated-declarations]
warning: ‘ssh_scp_free’ is deprecated [-Wdeprecated-declarations]
warning: ‘ssh_scp_close’ is deprecated [-Wdeprecated-declarations]
warning: ‘ssh_scp_push_file64’ is deprecated [-Wdeprecated-declarations]
warning: ‘ssh_scp_accept_request’ is deprecated [-Wdeprecated-declarations]
warning: ‘sftp_server_init’ is deprecated [-Wdeprecated-declarations]
Edited by Ghost User