Question about using NULL for public key and determining whether my distro built libssh2 against openssl

Bastien Durel bastien.durel at data.fr
Wed Sep 28 09:55:00 CEST 2022


Le mardi 27 septembre 2022 à 15:52 -0700, Will Cosgrove via libssh2-
devel a écrit :
> There isn't currently a runtime check to get what backend libssh2 was
> built against. 
> 
> This has come up from time to time but never been implemented.
> 
> Cheers,
> Will
> 

Actually, master has it : https://github.com/libssh2/libssh2/pull/643


As a workaround, I'm using this cmake checks to detect engine at
compile-time :

# Try to detect libssh2 crypto variant
list(FIND Libssh2_STATIC_LIBRARIES "ssl" CRYPTO_LIBSSH2_OPENSSL)
list(FIND Libssh2_STATIC_LIBRARIES "gpg-error" CRYPTO_LIBSSH2_GCRYPT)
list(FIND Libssh2_STATIC_LIBRARIES "mbed" CRYPTO_LIBSSH2_MBEDTLS)
list(FIND Libssh2_STATIC_LIBRARIES "wincng" CRYPTO_LIBSSH2_WINCNG)

Regards,

-- 
Bastien Durel
DATA
Intégration des données de l'entreprise,
Systèmes d'information décisionnels.

bastien.durel at data.fr
tel : +33 (0) 1 57 19 59 28
fax : +33 (0) 1 57 19 59 73
45 avenue Carnot, 94230 CACHAN France
www.data.fr



More information about the libssh2-devel mailing list