mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-29 13:01:14 +03:00
libssh2_session_startup(3) => libssh2_session_handshake(3)
Propagate for the current function in docs and examples. libssh2_session_startup() is deprecated.
This commit is contained in:
@ -296,8 +296,8 @@ main (int argc, char *argv[])
|
||||
return -1;
|
||||
}
|
||||
/* Open a session */
|
||||
session = libssh2_session_init ();
|
||||
rc = libssh2_session_startup (session, sock);
|
||||
session = libssh2_session_init();
|
||||
rc = libssh2_session_handshake(session, sock);
|
||||
if (rc != 0) {
|
||||
fprintf(stderr, "Failed Start the SSH session\n");
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user