ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
SshAuthMsgArgs Struct Reference

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
 

Detailed Description

Install the publickey-authorization callback (nullptr → all fail).

Parse an SSH_MSG_USERAUTH_REQUEST into req.

Returns
0 on success, -1 if malformed.

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.

Returns
0 if a response was produced (check the message type), -1 on parse error.

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.

Definition at line 188 of file auth.h.

Member Data Documentation

◆ payload

const uint8_t* SshAuthMsgArgs::payload

the message body

Definition at line 190 of file auth.h.

◆ len

size_t SshAuthMsgArgs::len

how many bytes it has

Definition at line 191 of file auth.h.


The documentation for this struct was generated from the following file: