diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-16 16:16:33 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-17 16:57:55 +0200 |
commit | d6dea75af7c00e396cffa2e74350352703312180 (patch) | |
tree | bd1f2dd454929bf9aa6e62b3d286b631ed75f208 /lib/vssh/libssh.c | |
parent | 5b2d703fe5900fcda846e41d67c62f62dd755839 (diff) | |
download | curl-d6dea75af7c00e396cffa2e74350352703312180.tar.gz |
vssh: move ssh init/cleanup functions into backend code
Diffstat (limited to 'lib/vssh/libssh.c')
-rw-r--r-- | lib/vssh/libssh.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 4b34b0212..d8186e0b2 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -2725,5 +2725,18 @@ static void sftp_quote_stat(struct connectdata *conn) return; } +CURLcode Curl_ssh_init(void) +{ + if(ssh_init()) { + DEBUGF(fprintf(stderr, "Error: libssh_init failed\n")); + return CURLE_FAILED_INIT; + } + return CURLE_OK; +} + +void Curl_ssh_cleanup(void) +{ + (void)ssh_finalize(); +} #endif /* USE_LIBSSH */ |