|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Install the publickey-authorization callback (nullptr → all fail). More...
#include <auth.h>
Public Attributes | |
| const uint8_t * | payload |
| the message body | |
| size_t | len |
| how many bytes it has | |
Install the publickey-authorization callback (nullptr → all fail).
Parse an SSH_MSG_USERAUTH_REQUEST into req.
Build SSH_MSG_USERAUTH_FAILURE advertising "password".
Build SSH_MSG_USERAUTH_SUCCESS.
Handle a USERAUTH_REQUEST end-to-end for slot i.
Parses the request, checks "password" credentials via the installed callback, and writes either USERAUTH_SUCCESS or USERAUTH_FAILURE to out. On success the session is marked authenticated and advanced to the connection phase.
Dispatch messages 50 to 79; 80 and above need authentication (RFC 4252 sec 6).
Send the reply a finished password change (RFC 4252 sec 8) deferred on slot i.
RFC 4252 sec 5: the body of one userauth message.