pub struct Cert<'a> { /* private fields */ }
Expand description
A certificate for a remote connection, viewable as one of CertHostkey
or
CertX509
currently.
Implementations§
source§impl<'a> Cert<'a>
impl<'a> Cert<'a>
sourcepub fn as_hostkey(&self) -> Option<&CertHostkey<'a>>
pub fn as_hostkey(&self) -> Option<&CertHostkey<'a>>
Attempt to view this certificate as an SSH hostkey.
Returns None
if this is not actually an SSH hostkey.