sqlx
sqlx copied to clipboard
Fix NoHostnameTlsVerifier for rustls 0.23.24 and above
From Rustls 0.23.24 release:
New feature: More detailed and helpful error reporting for common certificate errors, such as name mismatches and certificate expiry. Users who std::fmt::Display the rustls Error type will take advantage of this automatically. Users handling CertificateError variants individually should note the new variants, such as CertificateError::NotValidForNameContext (compare CertificateError::NotValidForName).
This fixes the NoHostnameTlsVerifier by also matching on this new variant.
Fixes #3793