pub enum Method<'b> {
None,
Publickey {
algorithm: Bytes<'b>,
blob: Bytes<'b>,
signature: Option<Bytes<'b>>,
},
Password {
password: Utf8<'b>,
new: Option<Utf8<'b>>,
},
Hostbased {
algorithm: Bytes<'b>,
host_key: Bytes<'b>,
client_fqdn: Ascii<'b>,
username: Utf8<'b>,
signature: Bytes<'b>,
},
KeyboardInteractive {
language: Ascii<'b>,
submethods: Utf8<'b>,
},
}Expand description
The authentication method in the SSH_MSG_USERAUTH_REQUEST message.
Variants§
None
Authenticate using the none method,
as defined in RFC4252 section 5.2.
Publickey
Authenticate using the publickey method,
as defined in RFC4252 section 7.
Fields
Password
Authenticate using the password method,
as defined in RFC4252 section 8.
Fields
§
new: Option<Utf8<'b>>In the case of a the receival of a PasswdChangereq,
the new password to be set in place of the old one.
Hostbased
Authenticate using the hostbased method,
as defined in RFC4252 section 9.
Fields
KeyboardInteractive
Authenticate using the keyboard-interactive method,
as defined in RFC4256 section 3.1.
Implementations§
Trait Implementations§
Source§impl<'b> BinRead for Method<'b>
impl<'b> BinRead for Method<'b>
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl<'b> BinWrite for Method<'b>
impl<'b> BinWrite for Method<'b>
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreAuto Trait Implementations§
impl<'b> Freeze for Method<'b>
impl<'b> RefUnwindSafe for Method<'b>
impl<'b> Send for Method<'b>
impl<'b> Sync for Method<'b>
impl<'b> Unpin for Method<'b>
impl<'b> UnwindSafe for Method<'b>
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