File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ main(int argc, char *argv[])
115
115
116
116
libssh2_session_set_blocking (session , 1 );
117
117
118
- rc = libssh2_session_startup (session , sock );
118
+ rc = libssh2_session_handshake (session , sock );
119
119
if (rc ) {
120
120
fprintf (stderr , "Failure establishing SSH session: %d\n" , rc );
121
121
return -1 ;
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ main(int argc, char *argv[])
126
126
127
127
libssh2_session_set_blocking (session , 1 );
128
128
129
- rc = libssh2_session_startup (session , sock );
129
+ rc = libssh2_session_handshake (session , sock );
130
130
if (rc ) {
131
131
fprintf (stderr , "Failure establishing SSH session: %d\n" , rc );
132
132
return -1 ;
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ main(int argc, char *argv[])
158
158
return 1 ;
159
159
}
160
160
session = libssh2_session_init ();
161
- if (libssh2_session_startup (session , sock )) {
161
+ if (libssh2_session_handshake (session , sock )) {
162
162
fprintf (stderr , "Failure establishing SSH session\n" );
163
163
return 1 ;
164
164
}
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ main(int argc, char *argv[])
180
180
return 1 ;
181
181
}
182
182
session = libssh2_session_init ();
183
- if (libssh2_session_startup (session , sock )) {
183
+ if (libssh2_session_handshake (session , sock )) {
184
184
fprintf (stderr , "Failure establishing SSH session\n" );
185
185
return 1 ;
186
186
}
You can’t perform that action at this time.
0 commit comments