ll...@163.com writes: > Hi Heiner and Alex, > Thanks for your reply. > > Heiner, I am pretty sure that the libssh2 you are using was compiled with > openssl. I took a look at the source codes and I did find out that the > passphrase was implemented in openssl module but NOT in libgcrypt module > (hope I am not crazy, I reviewed the code many times before I say it) > Unfortunately, Debian and Ubuntu all compiled libssh2 with libgcrypt, and I > believe most Linux distros did. > I just wonder no one raised this before, because this is a huge gap for me...
This is right. Decryption of private keys is not trivial (or even standardized, generally, sigh!), and libgcrypt cannot do it. I know that GnuTLS has functionality for this, so to solve it, libssh2 would need to link to libgnutls (and more importantly, someone needs to do the work in libssh2 to implement this). /Simon > Vic > >> Perhaps there is a problem in the way you are using the >> functions? I'm working with both functions and password-protected >> private key files without problems. >> >> Heiner > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H_______________________________________________ > libssh2-devel mailing list > libssh2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libssh2-devel ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel