libssh2: sync version check with INTERNALS.md

Follow-up to cf3b9657bc

Closes #21868
This commit is contained in:
Viktor Szakats 2026-06-05 05:09:45 +02:00
parent 5c9ac36e58
commit cb307544ad
No known key found for this signature in database

View file

@ -229,9 +229,9 @@ struct ssh_conn {
/* Feature detection based on version numbers to better work with
non-configure platforms */
#if !defined(LIBSSH2_VERSION_NUM) || (LIBSSH2_VERSION_NUM < 0x010208)
#error "SCP/SFTP protocols require libssh2 1.2.8 or later"
/* 1.2.8 was released on April 5 2011 */
#if !defined(LIBSSH2_VERSION_NUM) || (LIBSSH2_VERSION_NUM < 0x010900)
#error "SCP/SFTP protocols require libssh2 1.9.0 or greater"
/* 1.9.0 was released on June 20 2019 */
#endif
#endif /* USE_LIBSSH2 */