pub enum PasswordNotification {
NeedAuth {
auth_type: AuthType,
},
NeedPassword {
auth_type: AuthType,
},
VerificationFailed {
auth_type: AuthType,
},
StaticChallenge {
echo: bool,
response_concat: bool,
challenge: String,
},
AuthToken {
token: Redacted,
},
DynamicChallenge {
flags: String,
state_id: String,
username_b64: String,
challenge: String,
},
}Expand description
Sub-types of >PASSWORD: notifications. The password notification
has several distinct forms with completely different structures.
Variants§
NeedAuth
>PASSWORD:Need 'Auth' username/password
NeedPassword
>PASSWORD:Need 'Private Key' password
VerificationFailed
>PASSWORD:Verification Failed: 'Auth'
StaticChallenge
Static challenge: >PASSWORD:Need 'Auth' username/password SC:{flag},{challenge}
The flag is a multi-bit integer: bit 0 = ECHO, bit 1 = FORMAT.
Fields
AuthToken
>PASSWORD:Auth-Token:{token}
Pushed by the server when --auth-token is active. The client should
store this token and use it in place of the original password on
subsequent re-authentications.
Source: OpenVPN manage.c — management_auth_token().
DynamicChallenge
Dynamic challenge (CRV1):
>PASSWORD:Verification Failed: 'Auth' ['CRV1:{flags}:{state_id}:{username_b64}:{challenge}']
Trait Implementations§
Source§impl Clone for PasswordNotification
impl Clone for PasswordNotification
Source§fn clone(&self) -> PasswordNotification
fn clone(&self) -> PasswordNotification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PasswordNotification
impl Debug for PasswordNotification
Source§impl PartialEq for PasswordNotification
impl PartialEq for PasswordNotification
impl Eq for PasswordNotification
impl StructuralPartialEq for PasswordNotification
Auto Trait Implementations§
impl Freeze for PasswordNotification
impl RefUnwindSafe for PasswordNotification
impl Send for PasswordNotification
impl Sync for PasswordNotification
impl Unpin for PasswordNotification
impl UnsafeUnpin for PasswordNotification
impl UnwindSafe for PasswordNotification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more