Previously this code used a compile time constant, meaning that libcurl always reported the libssh2 version that libcurl was built with. This could differ from the libssh2 version actually being used. The new code uses the CURL_LIBSSH2_VERSION macro, which is defined in ssh.h. The macro calls the libssh2_version function if it is available, otherwise it falls back to the compile time version. Closes https://github.com/curl/curl/pull/7768 |
||
|---|---|---|
| .. | ||
| libssh2.c | ||
| libssh.c | ||
| ssh.h | ||
| wolfssh.c | ||
| wolfssh.h | ||