diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-03-27 15:03:15 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-03-27 15:03:15 +0100 |
| commit | 874ce161ec06a45f97f0846a443a5df09791e104 (patch) | |
| tree | 08dca1776ed08fe6bed057c28d0345172a6cb7d1 /src/transports/ssh.c | |
| parent | 2785cc8eb2f478dc1bd08d8d8d81c8ada687cbb5 (diff) | |
| download | libgit2-874ce161ec06a45f97f0846a443a5df09791e104.tar.gz | |
transports: ssh: replace deprecated function `libssh2_session_startup`
The function `libssh2_session_startup` has been deprecated since libssh2
version 1.2.8 in favor of `libssh2_session_handshake` introduced in the
same version. libssh2 1.2.8 was released in April 2011, so it is already
seven years old. It is available in Debian Wheezy, Ubuntu Trusty and
CentOS 7.4, so the most important and conservative distros already have
it available. As such, it seems safe to just use the new function.
Diffstat (limited to 'src/transports/ssh.c')
| -rw-r--r-- | src/transports/ssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/ssh.c b/src/transports/ssh.c index d92cd1fcc..23c643346 100644 --- a/src/transports/ssh.c +++ b/src/transports/ssh.c @@ -490,7 +490,7 @@ static int _git_ssh_session_create( } do { - rc = libssh2_session_startup(s, socket->s); + rc = libssh2_session_handshake(s, socket->s); } while (LIBSSH2_ERROR_EAGAIN == rc || LIBSSH2_ERROR_TIMEOUT == rc); if (rc != LIBSSH2_ERROR_NONE) { |
