pub struct HostKeyTrust {
pub fingerprints: Vec<String>,
pub cert_authorities: Vec<CertAuthority>,
pub revoked: Vec<RevokedEntry>,
}Expand description
Combined view of every known_hosts entry that bears on the
connection target.
Returned by host_key_trust. A connection target’s effective
trust is the union of:
fingerprints— direct SHA-256 pins (embedded + custom-file). Identical to whatfingerprints_for_hostreturns.cert_authorities—@cert-authorityentries whose host pattern matches the target. Live cert verification (FR-61, FR-62, FR-63) is deferred until russh exposes the server’s certificate; the field is populated today sogitway config show --jsonand audit tooling can surface CA identities.revoked—@revokedentries whose host pattern matches. Enforced first incrate::session::AnvilSession::connect’s host-key check: any presented key whose fingerprint hits one of these is rejected regardless ofStrictHostKeyCheckingpolicy.
Fields§
§fingerprints: Vec<String>§revoked: Vec<RevokedEntry>Trait Implementations§
Source§impl Clone for HostKeyTrust
impl Clone for HostKeyTrust
Source§fn clone(&self) -> HostKeyTrust
fn clone(&self) -> HostKeyTrust
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 HostKeyTrust
impl Debug for HostKeyTrust
Source§impl Default for HostKeyTrust
impl Default for HostKeyTrust
Source§fn default() -> HostKeyTrust
fn default() -> HostKeyTrust
Returns the “default value” for a type. Read more
Source§impl PartialEq for HostKeyTrust
impl PartialEq for HostKeyTrust
impl Eq for HostKeyTrust
impl StructuralPartialEq for HostKeyTrust
Auto Trait Implementations§
impl Freeze for HostKeyTrust
impl RefUnwindSafe for HostKeyTrust
impl Send for HostKeyTrust
impl Sync for HostKeyTrust
impl Unpin for HostKeyTrust
impl UnsafeUnpin for HostKeyTrust
impl UnwindSafe for HostKeyTrust
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