mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:33:32 +03:00
Added support for libssh SSH SCP back-end
libssh is an alternative library to libssh2. https://www.libssh.org/ That patch set also introduces support for ECDSA ed25519 keys, as well as gssapi authentication. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
This commit is contained in:
parent
3973ee6a65
commit
c92d2e14cf
13 changed files with 1626 additions and 198 deletions
11
lib/easy.c
11
lib/easy.c
|
|
@ -253,6 +253,13 @@ static CURLcode global_init(long flags, bool memoryfuncs)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(USE_LIBSSH)
|
||||
if(ssh_init()) {
|
||||
DEBUGF(fprintf(stderr, "Error: libssh_init failed\n"));
|
||||
return CURLE_FAILED_INIT;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(flags & CURL_GLOBAL_ACK_EINTR)
|
||||
Curl_ack_eintr = 1;
|
||||
|
||||
|
|
@ -330,6 +337,10 @@ void curl_global_cleanup(void)
|
|||
(void)libssh2_exit();
|
||||
#endif
|
||||
|
||||
#if defined(USE_LIBSSH)
|
||||
(void)ssh_finalize();
|
||||
#endif
|
||||
|
||||
init_flags = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue