Mark Riordan wrote:
> How should an application determine whether both public key
> and password authentication methods are required?
libssh2 currently does not support that. It takes any insufficient
authentication to mean complete failure. Ie. libssh2 ignores the
"partial success" field in SSH_MSG_USERAUTH_FAILURE responses.
> I'm not sure how to determine the difference between a server
> that requires both, or will take either one.
>
> I was kind of expecting functions like
> libssh2_userauth_publickey_fromfile and libssh2_userauth_password
> to have a return code that says "successful so far, but more
> authentication is required".
That sounds good. Can you make a patch?
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-12-23