mirror of
https://github.com/curl/curl.git
synced 2026-07-24 01:47:20 +03:00
ssh: add a generic Curl_ssh_version function for SSH backends
Closes #4235
This commit is contained in:
parent
1a7634e484
commit
ea28a6cb2f
4 changed files with 27 additions and 30 deletions
|
|
@ -2739,4 +2739,9 @@ void Curl_ssh_cleanup(void)
|
|||
(void)ssh_finalize();
|
||||
}
|
||||
|
||||
size_t Curl_ssh_version(char *buffer, size_t buflen)
|
||||
{
|
||||
return msnprintf(buffer, buflen, "libssh/%s", CURL_LIBSSH_VERSION);
|
||||
}
|
||||
|
||||
#endif /* USE_LIBSSH */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue