Struct git2::cert::Cert
[−]
[src]
pub struct Cert<'a> { // some fields omitted }
A certificate for a remote connection, viewable as one of CertHostkey
or
CertX509
currently.
Methods
impl<'a> Cert<'a>
[src]
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.
fn as_x509(&self) -> Option<&CertX509<'a>>
Attempt to view this certificate as an X.509 certificate.
Returns None
if this is not actually an X.509 certificate.