cleanup err convert for ssl
This commit is contained in:
parent
7723d1223a
commit
58ee6d87ec
|
@ -131,12 +131,12 @@ impl From<rustls::Error> for StreamError {
|
|||
fn from(value: rustls::Error) -> Self {
|
||||
match value {
|
||||
rustls::Error::InappropriateMessage {
|
||||
expect_types,
|
||||
got_type,
|
||||
expect_types: _,
|
||||
got_type: _,
|
||||
} => Self::BadFormat,
|
||||
rustls::Error::InappropriateHandshakeMessage {
|
||||
expect_types,
|
||||
got_type,
|
||||
expect_types: _,
|
||||
got_type: _,
|
||||
} => Self::BadFormat,
|
||||
rustls::Error::InvalidMessage(_) => Self::BadFormat,
|
||||
rustls::Error::NoCertificatesPresented => Self::InternalServerError,
|
||||
|
|
Loading…
Reference in New Issue