blackbeam / mysql_async

Asyncronous Rust Mysql driver based on Tokio.
Apache License 2.0
372 stars 113 forks source link

skip_domain_validation not working when using rustls #283

Closed alekitto closed 6 months ago

alekitto commented 6 months ago

TLS skip_domain_validation is not respected when using rustls.

This line checks for "CertNotValidForName" string, but since rustls 0.21 the error is simply called NotValidForName, so the check fails and the connection cannot be completed.

Simply adjusting the checked string is sufficient to fix the issue.