Skip to main content

connect_pinned

Function connect_pinned 

Source
pub async fn connect_pinned(
    addr: SocketAddr,
    cert_der: &[u8],
) -> Result<Session>
Expand description

Convenience: pin by the full server cert DER (hashes it for you). Used by tests and callers that hold the cert rather than its fingerprint.