pub trait VerifyHostNameCallback:
'static
+ Send
+ Sync {
// Required method
fn verify_host_name(&self, host_name: &str) -> bool;
}
Expand description
A trait for the callback used to verify host name(s) during X509 verification.
The implementation should verify the certificate host name and return true
if the name is valid, false
otherwise.