Skip to main content

establish_verified

Function establish_verified 

Source
pub fn establish_verified<H: Handshake>(
    handshake: &mut H,
    role: Role,
    peer_fingerprint: Option<&Fingerprint>,
) -> Result<VerifiedKeys, Error>
Expand description

Handshake, verify and return key material carrying proof that verification ran.

This has the same protocol behavior and errors as establish. Its distinct return type is for composition boundaries that must make skipping fingerprint verification unrepresentable.