Skip to content

Warning Report: Multiple deprecated function warnings in libssh usage #4227

@ghost

Description

During compilation of the project, a significant number of warnings are generated due to the usage of deprecated functions from the libssh library. 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:

  • 3rd-party/libssh/libssh/src/legacy.c
  • 3rd-party/libssh/libssh/src/scp.c
  • src/sshfs_mount/sftp_server.cpp
  • src/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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuelowLow priority. Combine with "medium" to signal intermediate low-medium priority.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions