crypto engine

Bastien Durel bastien.durel at data.fr
Mon Nov 22 10:08:30 CET 2021


Hello,

Where does these macros should be defined ? Grepping LIBSSH2_OPENSSL on
/usr/include/libssh2* yields no result, despite /usr/lib/libssh2.so
beeing linked to libssl.so.1.1 & libcrypto.so.1.1 (on arch)
On Debian, grepping LIBSSH2_LIBGCRYPT does not either

Le vendredi 19 novembre 2021 à 09:08 -0800, Will Cosgrove a écrit :
> You can test if backend defines are set, like so:
> 
> #ifdef LIBSSH2_OPENSSL
>         //enabled
> #endif
> 
> #ifdef LIBSSH2_LIBGCRYPT
>         //enabled
> #endif
> 
> 
> Will
> 
> > On Nov 19, 2021, at 7:41 AM, Bastien Durel via libssh2-devel
> > <libssh2-devel at lists.haxx.se> wrote:
> > 
> > Hello,
> > 
> > Is there a way to say during runtime (or maybe at compile time)
> > which
> > crypto engine is backing libssh2 ?
> > 
> > The code I wrote uses libssh2_userauth_publickey_frommemory, which
> > fails with LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED / "Callback returned
> > error" when the crypto engine is not OpenSSL.
> > I'd like to know if I have to write key material to temporary files
> > 
> > Debian version of libssh2 is built against libgcrypt20 but arch's
> > version is built against openssl, which confused me a lot :/
> > 
> > Thanks,
> > 
> > -- 
> > 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
> > 
> > -- 
> > libssh2-devel mailing list
> > libssh2-devel at lists.haxx.se
> > https://lists.haxx.se/listinfo/libssh2-devel
> 

-- 
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