1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-31 00:03:08 +03:00

libssh2_scp_send, libssh2_scp_send_ex: add deprecation warning

Also:
- switch to non-deprecated alternative in examples.
- add pointers and deprecation warning to libssh2_scp_send man page.

Cherry-picked from #1484
This commit is contained in:
Viktor Szakats
2024-11-27 00:36:24 +01:00
parent 4fbd592314
commit 7027604505
10 changed files with 25 additions and 15 deletions

View File

@ -152,8 +152,8 @@ int main(int argc, char *argv[])
}
/* Send a file via scp. The mode parameter must only have permissions! */
channel = libssh2_scp_send(session, scppath, fileinfo.st_mode & 0777,
(size_t)fileinfo.st_size);
channel = libssh2_scp_send64(session, scppath, fileinfo.st_mode & 0777,
fileinfo.st_size, 0, 0);
if(!channel) {
char *errmsg;