You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
^
The text was updated successfully, but these errors were encountered:
libssh 0.10.0 marks all SCP functions as "deprecated" which causes
compiler warnings and errors in our CI jobs and elsewhere. Ignore
deprecation warnings if 0.10.0 or later is found in the build.
If they actually remove the functions at a later point, then someone can
deal with that pain and functionality break then.
Fixes#9382
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:
The text was updated successfully, but these errors were encountered: