Type Alias sshpuffin::libssh::ssh::AuthState

source ·
pub type AuthState = ssh_auth_state_e;

Aliased Type§

enum AuthState {
Show 15 variants SSH_AUTH_STATE_NONE = 0, SSH_AUTH_STATE_PARTIAL = 1, SSH_AUTH_STATE_SUCCESS = 2, SSH_AUTH_STATE_FAILED = 3, SSH_AUTH_STATE_ERROR = 4, SSH_AUTH_STATE_INFO = 5, SSH_AUTH_STATE_PK_OK = 6, SSH_AUTH_STATE_KBDINT_SENT = 7, SSH_AUTH_STATE_GSSAPI_REQUEST_SENT = 8, SSH_AUTH_STATE_GSSAPI_TOKEN = 9, SSH_AUTH_STATE_GSSAPI_MIC_SENT = 10, SSH_AUTH_STATE_PUBKEY_OFFER_SENT = 11, SSH_AUTH_STATE_PUBKEY_AUTH_SENT = 12, SSH_AUTH_STATE_PASSWORD_AUTH_SENT = 13, SSH_AUTH_STATE_AUTH_NONE_SENT = 14,
}

Variants§

§

SSH_AUTH_STATE_NONE = 0

No authentication asked

§

SSH_AUTH_STATE_PARTIAL = 1

Last authentication response was a partial success

§

SSH_AUTH_STATE_SUCCESS = 2

Last authentication response was a success

§

SSH_AUTH_STATE_FAILED = 3

Last authentication response was failed

§

SSH_AUTH_STATE_ERROR = 4

Last authentication was erroneous

§

SSH_AUTH_STATE_INFO = 5

Last state was a keyboard-interactive ask for info

§

SSH_AUTH_STATE_PK_OK = 6

Last state was a public key accepted for authentication

§

SSH_AUTH_STATE_KBDINT_SENT = 7

We asked for a keyboard-interactive authentication

§

SSH_AUTH_STATE_GSSAPI_REQUEST_SENT = 8

We have sent an userauth request with gssapi-with-mic

§

SSH_AUTH_STATE_GSSAPI_TOKEN = 9

We are exchanging tokens until authentication

§

SSH_AUTH_STATE_GSSAPI_MIC_SENT = 10

We have sent the MIC and expecting to be authenticated

§

SSH_AUTH_STATE_PUBKEY_OFFER_SENT = 11

We have offered a pubkey to check if it is supported

§

SSH_AUTH_STATE_PUBKEY_AUTH_SENT = 12

We have sent pubkey and signature expecting to be authenticated

§

SSH_AUTH_STATE_PASSWORD_AUTH_SENT = 13

We have sent a password expecting to be authenticated

§

SSH_AUTH_STATE_AUTH_NONE_SENT = 14

We have sent a request without auth information (method ‘none’)

Trait Implementations

§

impl Clone for ssh_auth_state_e

§

fn clone(&self) -> ssh_auth_state_e

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ssh_auth_state_e

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Hash for ssh_auth_state_e

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq for ssh_auth_state_e

§

fn eq(&self, other: &ssh_auth_state_e) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for ssh_auth_state_e

§

impl Eq for ssh_auth_state_e

§

impl StructuralPartialEq for ssh_auth_state_e