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 {
|
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,
|
||||||
|
|
Loading…
Reference in New Issue