Skip to content

libssh has deprecated lots of function calls #9382

@bagder

Description

@bagder

Starting in libssh 0.10.0, release date Aug 27, 2022. They have marked all SCP related functions as "deprecated" in their header files and this move now causes build errors and head aches for us.

I strongly dislike this kind of behavior and their breaking the API.

A sample of the errors:

vssh/libssh.c:1833:11: error: 'ssh_scp_new' is deprecated [-Werror,-Wdeprecated-declarations]
          ssh_scp_new(sshc->ssh_session, SSH_SCP_WRITE, protop->path);
          ^
/usr/local/include/libssh/libssh.h:568:1: note: 'ssh_scp_new' has been explicitly marked deprecated here
SSH_DEPRECATED LIBSSH_API ssh_scp ssh_scp_new(ssh_session session, int mode, const char *location);
^
/usr/local/include/libssh/libssh.h:86:40: note: expanded from macro 'SSH_DEPRECATED'
#define SSH_DEPRECATED __attribute__ ((deprecated))
                                       ^
vssh/libssh.c:1838:11: error: 'ssh_scp_new' is deprecated [-Werror,-Wdeprecated-declarations]
          ssh_scp_new(sshc->ssh_session, SSH_SCP_READ, protop->path);
          ^
/usr/local/include/libssh/libssh.h:568:1: note: 'ssh_scp_new' has been explicitly marked deprecated here
SSH_DEPRECATED LIBSSH_API ssh_scp ssh_scp_new(ssh_session session, int mode, const char *location);
^
/usr/local/include/libssh/libssh.h:86:40: note: expanded from macro 'SSH_DEPRECATED'
#define SSH_DEPRECATED __attribute__ ((deprecated))
                                       ^
vssh/libssh.c:1852:12: error: 'ssh_scp_init' is deprecated [-Werror,-Wdeprecated-declarations]
      rc = ssh_scp_init(sshc->scp_session);
           ^
/usr/local/include/libssh/libssh.h:566:1: note: 'ssh_scp_init' has been explicitly marked deprecated here
SSH_DEPRECATED LIBSSH_API int ssh_scp_init(ssh_scp scp);
^
/usr/local/include/libssh/libssh.h:86:40: note: expanded from macro 'SSH_DEPRECATED'
#define SSH_DEPRECATED __attribute__ ((deprecated))
                                       ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions