wolfssh icon indicating copy to clipboard operation
wolfssh copied to clipboard

Asynchronous user authentication.

Open falemagn opened this issue 2 years ago • 3 comments

This patch makes it possible to do asynchronous user authentication, by returning WOLFSSH_USERAUTH_WOULD_BLOCK from the authentication callback.

falemagn avatar Jul 21 '23 07:07 falemagn

Can one of the admins verify this patch?

wolfSSL-Bot avatar Jul 21 '23 07:07 wolfSSL-Bot

ok to test

JacobBarthelmeh avatar Jul 27 '23 22:07 JacobBarthelmeh

@JacobBarthelmeh the functionality has only been tested server-side. To make use of it, one needs to return WOLFSSH_USERAUTH_WOULD_BLOCK and then at a later time trigger a new read from the socket. Since the auth request doesn't get discarded when returning WOLFSH_USERAUTH_WOULD_BLOCK, the auth callback gets then invoked with the same request again.

falemagn avatar Aug 21 '23 11:08 falemagn

Superseded by PR #695.

ejohnstown avatar Jun 05 '24 22:06 ejohnstown