1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-02 22:02:25 +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:
Daniel Stenberg
2011-09-09 23:17:04 +02:00
parent 7229d989e7
commit 7ed53e21fd
26 changed files with 29 additions and 28 deletions

View File

@ -142,7 +142,7 @@ int main(int argc, char *argv[])
/* ... start it up. This will trade welcome banners, exchange keys,
* and setup crypto, compression, and MAC layers
*/
while ((rc = libssh2_session_startup(session, sock)) ==
while ((rc = libssh2_session_handshake(session, sock)) ==
LIBSSH2_ERROR_EAGAIN);
if (rc) {
fprintf(stderr, "Failure establishing SSH session: %d\n", rc);