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

Parsed SSH_MSG_USERAUTH_REQUEST. More...

#include <auth.h>

Public Attributes

char user [SSH_AUTH_USER_MAX]
 User name, null-terminated.
 
char service [32]
 Requested service ("ssh-connection").
 
char method [24]
 Method name ("none", "password", "publickey", "keyboard-interactive").
 
char password [SSH_AUTH_PASS_MAX]
 Password (method == "password"); the old one on a change.
 
char new_password [SSH_AUTH_PASS_MAX]
 New password when is_pw_change (RFC 4252 sec 8).
 
proto_bool is_password
 True if a password method-request was parsed.
 
proto_bool is_pw_change
 True if the request set the change-password flag.
 
proto_bool is_kbdint
 True if a keyboard-interactive method-request was parsed (RFC 4256).
 
proto_bool is_pubkey
 True if a publickey method-request was parsed.
 
proto_bool has_signature
 True if the request carried a signature.
 
char pk_algo [SSH_AUTH_ALGO_MAX]
 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 22 of file auth.h.

Member Data Documentation

◆ user

char SshAuthReq::user[SSH_AUTH_USER_MAX]

User name, null-terminated.

Definition at line 24 of file auth.h.

◆ service

char SshAuthReq::service[32]

Requested service ("ssh-connection").

Definition at line 25 of file auth.h.

◆ method

char SshAuthReq::method[24]

Method name ("none", "password", "publickey", "keyboard-interactive").

Definition at line 26 of file auth.h.

◆ password

char SshAuthReq::password[SSH_AUTH_PASS_MAX]

Password (method == "password"); the old one on a change.

Definition at line 27 of file auth.h.

◆ new_password

char SshAuthReq::new_password[SSH_AUTH_PASS_MAX]

New password when is_pw_change (RFC 4252 sec 8).

Definition at line 28 of file auth.h.

◆ is_password

proto_bool SshAuthReq::is_password

True if a password method-request was parsed.

Definition at line 29 of file auth.h.

◆ is_pw_change

proto_bool SshAuthReq::is_pw_change

True if the request set the change-password flag.

Definition at line 30 of file auth.h.

◆ is_kbdint

proto_bool SshAuthReq::is_kbdint

True if a keyboard-interactive method-request was parsed (RFC 4256).

Definition at line 31 of file auth.h.

◆ is_pubkey

proto_bool SshAuthReq::is_pubkey

True if a publickey method-request was parsed.

Definition at line 34 of file auth.h.

◆ has_signature

proto_bool SshAuthReq::has_signature

True if the request carried a signature.

Definition at line 35 of file auth.h.

◆ pk_algo

char SshAuthReq::pk_algo[SSH_AUTH_ALGO_MAX]

Public-key algorithm name.

Definition at line 36 of file auth.h.

◆ pk_blob

const uint8_t* SshAuthReq::pk_blob

Public-key blob (points into the payload).

Definition at line 37 of file auth.h.

◆ pk_blob_len

uint32_t SshAuthReq::pk_blob_len

Length of pk_blob.

Definition at line 38 of file auth.h.

◆ signature

const uint8_t* SshAuthReq::signature

Raw signature bytes (points into the payload).

Definition at line 39 of file auth.h.

◆ signature_len

uint32_t SshAuthReq::signature_len

Length of signature.

Definition at line 40 of file auth.h.

◆ signed_prefix

const uint8_t* SshAuthReq::signed_prefix

Bytes of the request that the signature covers.

Definition at line 41 of file auth.h.

◆ signed_prefix_len

size_t SshAuthReq::signed_prefix_len

Length of signed_prefix (payload up to the signature).

Definition at line 42 of file auth.h.


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