DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
SshAuthReq Struct Reference

Parsed SSH_MSG_USERAUTH_REQUEST. More...

#include <ssh_auth.h>

Public Attributes

char user [SSH_AUTH_USER_MAX]
 User name, null-terminated.
 
char service [32]
 Requested service ("ssh-connection").
 
char method [16]
 Method name ("none", "password", "publickey").
 
char password [SSH_AUTH_PASS_MAX]
 Password (method == "password").
 
bool is_password
 True if a password method-request was parsed.
 
bool is_pubkey
 True if a publickey method-request was parsed.
 
bool has_signature
 True if the request carried a signature.
 
char pk_algo [20]
 Public-key algorithm name.
 
const uint8_t * pk_blob
 Public-key blob (points into the payload).
 
uint32_t pk_blob_len
 Length of pk_blob.
 
const uint8_t * signature
 Raw signature bytes (points into the payload).
 
uint32_t signature_len
 Length of signature.
 
const uint8_t * signed_prefix
 Bytes of the request that the signature covers.
 
size_t signed_prefix_len
 Length of signed_prefix (payload up to the signature).
 

Detailed Description

Parsed SSH_MSG_USERAUTH_REQUEST.

Definition at line 30 of file ssh_auth.h.

Member Data Documentation

◆ user

char SshAuthReq::user[SSH_AUTH_USER_MAX]

User name, null-terminated.

Definition at line 32 of file ssh_auth.h.

Referenced by ssh_auth_handle_request(), and ssh_auth_parse_request().

◆ service

char SshAuthReq::service[32]

Requested service ("ssh-connection").

Definition at line 33 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ method

char SshAuthReq::method[16]

Method name ("none", "password", "publickey").

Definition at line 34 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ password

char SshAuthReq::password[SSH_AUTH_PASS_MAX]

Password (method == "password").

Definition at line 35 of file ssh_auth.h.

Referenced by ssh_auth_handle_request(), and ssh_auth_parse_request().

◆ is_password

bool SshAuthReq::is_password

True if a password method-request was parsed.

Definition at line 36 of file ssh_auth.h.

Referenced by ssh_auth_handle_request(), and ssh_auth_parse_request().

◆ is_pubkey

bool SshAuthReq::is_pubkey

True if a publickey method-request was parsed.

Definition at line 39 of file ssh_auth.h.

Referenced by ssh_auth_handle_request(), and ssh_auth_parse_request().

◆ has_signature

bool SshAuthReq::has_signature

True if the request carried a signature.

Definition at line 40 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ pk_algo

char SshAuthReq::pk_algo[20]

Public-key algorithm name.

Definition at line 41 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ pk_blob

const uint8_t* SshAuthReq::pk_blob

Public-key blob (points into the payload).

Definition at line 42 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ pk_blob_len

uint32_t SshAuthReq::pk_blob_len

Length of pk_blob.

Definition at line 43 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ signature

const uint8_t* SshAuthReq::signature

Raw signature bytes (points into the payload).

Definition at line 44 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ signature_len

uint32_t SshAuthReq::signature_len

Length of signature.

Definition at line 45 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ signed_prefix

const uint8_t* SshAuthReq::signed_prefix

Bytes of the request that the signature covers.

Definition at line 46 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().

◆ signed_prefix_len

size_t SshAuthReq::signed_prefix_len

Length of signed_prefix (payload up to the signature).

Definition at line 47 of file ssh_auth.h.

Referenced by ssh_auth_parse_request().


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