Convert error message to rustls::Error with InvalidCertificate wrapper
(msg: impl Into<String>)
| 119 | |
| 120 | /// Convert error message to rustls::Error with InvalidCertificate wrapper |
| 121 | pub fn to_rustls_invalid_cert(msg: impl Into<String>) -> rustls::Error { |
| 122 | rustls::Error::InvalidCertificate(rustls::CertificateError::Other(rustls::OtherError( |
| 123 | Arc::new(invalid_data(msg)), |
| 124 | ))) |
| 125 | } |
| 126 | |
| 127 | /// Convert error message to rustls::Error with InvalidCertificate wrapper and custom ErrorKind |
| 128 | pub fn to_rustls_cert_error(kind: io::ErrorKind, msg: impl Into<String>) -> rustls::Error { |
no test coverage detected