Hi,

The scenario is like the follows,

I have a key which has passphrase as NULL(no passphrase).
Now I give it as parameter to libssh2_userauth_publickey_fromfile along with 
NOT-NULL(anything) passphrase.
The pubkey auth succeeds in this case,as there is nowhere check for this 
scenario.

I understand that default ssh client doesn't ask for passphrase for such 
key,which was the requirement for such case,I think.

Anyway,my application asks user to configure these values (pubkey 
path,passphrase).Now if user has given SOME passphrase for a key which doesn't 
require passphrase, all the operations such as login and command execution 
succeeds contrary to wrong configuration.
There is no way to detect this and notify user.

I am trying to find a way around this,but could anybody please suggest where is 
the appropriate place to put such check and transmit that error back?

I have also raised a ticket http://libssh2.stuge.se/ticket/169 for a fix 
similar to this problem.

Regards
Suyog



      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to