Skip to content

Conversation

@JDepooter
Copy link
Contributor

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 being used at runtime. 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.

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.
@jay jay added the SCP/SFTP label Sep 24, 2021
@jay jay closed this in 739de69 Sep 24, 2021
@jay
Copy link
Member

jay commented Sep 24, 2021

Thanks

@JDepooter JDepooter deleted the runtime_libssh2_version branch September 24, 2021 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants