cleanup err convert for ssl

This commit is contained in:
emilis 2023-07-01 12:11:12 +01:00
parent 7723d1223a
commit 58ee6d87ec
1 changed files with 4 additions and 4 deletions

View File

@ -131,12 +131,12 @@ impl From<rustls::Error> for StreamError {
fn from(value: rustls::Error) -> Self { fn from(value: rustls::Error) -> Self {
match value { match value {
rustls::Error::InappropriateMessage { rustls::Error::InappropriateMessage {
expect_types, expect_types: _,
got_type, got_type: _,
} => Self::BadFormat, } => Self::BadFormat,
rustls::Error::InappropriateHandshakeMessage { rustls::Error::InappropriateHandshakeMessage {
expect_types, expect_types: _,
got_type, got_type: _,
} => Self::BadFormat, } => Self::BadFormat,
rustls::Error::InvalidMessage(_) => Self::BadFormat, rustls::Error::InvalidMessage(_) => Self::BadFormat,
rustls::Error::NoCertificatesPresented => Self::InternalServerError, rustls::Error::NoCertificatesPresented => Self::InternalServerError,