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))
^
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: