sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Fix NoHostnameTlsVerifier for rustls 0.23.24 and above

Open elichai opened this issue 9 months ago • 0 comments

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

elichai avatar May 15 '25 15:05 elichai