Akshay Joshi | 10 Jul 2012 13:42
Favicon

Any other way to authenticate using only private key

Hi 


I am using "libssh2_userauth_publickey_fromfile()" function to authenticate using public-private key pair. As it is mentioned in the documentation is If libssh2 is built against OpenSSL, publickey parameter can be set to NULL. 

Why do we required to set publickey parameter if libssh2 is built against any other SSL library. Do we have any other API so that I'll authentication using only private key.

Do we have any other solution to this problem. Please let me know

--
Akshay Joshi
Senior Software Engineer 
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91 20-3058-9522
Mobile: +91 976-788-8246

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Daniel Stenberg | 10 Jul 2012 14:07
Picon
Favicon
Gravatar

Re: Any other way to authenticate using only private key

On Tue, 10 Jul 2012, Akshay Joshi wrote:

> I am using "*libssh2_userauth_publickey_fromfile()*" function to 
> authenticate using public-private key pair. As it is mentioned in the 
> documentation is If libssh2 is built against OpenSSL, publickey parameter 
> can be set to NULL.
>
> Why do we required to set publickey parameter if libssh2 is built against 
> any other SSL library. Do we have any other API so that I'll authentication 
> using only private key.

"Any other SSL library" would be another crypto library to be strict, as we 
don't use SSL... That only other crypto library we support in libssh2 is 
gcrypt. It just happens that nobody has written the necessary code in libssh2 
to allow this operation with that backend. Feel free to step forward and help 
us remove this annoying difference in functionality depending on backend 
crypto lib!

--

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel


Gmane