Eduardo Otubo <[email protected]> writes: > Hello friends, > > My question is about the function > libssh2_userauth_publickey_fromfile() talking to some folks on the IRC > I figured out that the "passphrase" parameter is not working well. It > seems that we may pass a ramdom passphrase or even a NULL one and the > function authenticate pretty well - at least I have this behaviour on > my driver at libvirt - > https://www.redhat.com/archives/libvir-list/2009-November/msg00322.html. > > Is that right? Am I doing something wrong?
When libssh2 is built with libgcrypt, encrypted private keys are not supported. Encrypted private keys involves more of X.509 so it will be some work to implement native support for it. Potentially it would be simpler to link to GnuTLS and use its private key reading functions instead. The current ASN.1 decoding done in libgcrypt.c is code duplication that would go away too. /Simon _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
