wolfSSL / wolfssh

wolfSSH is a small, fast, portable SSH implementation, including support for SCP and SFTP.
https://www.wolfssl.com
367 stars 88 forks source link

Fix state in DoUserAuthRequestPublicKey #683

Closed embhorn closed 4 months ago

embhorn commented 4 months ago

In DoUserAuthRequestPublicKey function there is a case in which partialSuccess is returned by the auth callback. When a public key passes the signature test and the auth result callback, the state of the authentication state machine gets set to CLIENT_USERAUTH_DONE even in case partialSuccess were to be true.

Fixes zd17917