From ea28a6cb2f168ce0b4e01c0f05e3675687dbd497 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 16 Aug 2019 15:32:05 +0200 Subject: ssh: add a generic Curl_ssh_version function for SSH backends Closes #4235 --- lib/vssh/libssh2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/vssh/libssh2.c') diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 011f1ecf3..2b25a514f 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -3338,5 +3338,9 @@ void Curl_ssh_cleanup(void) #endif } +size_t Curl_ssh_version(char *buffer, size_t buflen) +{ + return msnprintf(buffer, buflen, "libssh2/%s", LIBSSH2_VERSION); +} #endif /* USE_LIBSSH2 */ -- cgit v1.2.3