pub fn verification_name(
uri_host: &str,
) -> Result<ServerName<'static>, TlsError>Expand description
The name a certificate is checked against.
The host from the URI sipx set out to reach, not the name resolution produced. If the resolved name were used, anyone who can influence DNS would choose which certificate is acceptable — the handshake would still succeed, the check would still appear to run, and it would mean nothing.