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 > On Sep 27, 2022, at 2:20 PM, Reid Thompson via libssh2-devel > <libssh2-devel@lists.haxx.se> wrote: > > Hi, > > If I use the following, the authentication succeeds. > > if (libssh2_userauth_publickey_fromfile(session, "rthompso", > > "/home/rthompso/.ssh/id_rsa.pub", > > "/home/rthompso/.ssh/id_rsa", > > NULL)) { > > fprintf(stderr, "\tAuthentication by public key failed\n"); > > It fails if I set the public key to NULL. > > The documentation states that if libssh2 is built against openssl that > the public key can be NULL. Is there a way to determine if my distro built > libssh2 against openssl? > > > Thanks, > reid > > -- > libssh2-devel mailing list > libssh2-devel@lists.haxx.se > https://lists.haxx.se/listinfo/libssh2-devel -- libssh2-devel mailing list libssh2-devel@lists.haxx.se https://lists.haxx.se/listinfo/libssh2-devel