Function sslhash::connect [] [src]

pub fn connect<S: Read + Write>(
    connector: &SslConnector,
    stream: S,
    cmp_hash: String
) -> Result<SslStream<S>, HandshakeError<S>>

As a client, connect to the server and compare the public key hash with cmp_hash