Fixes after feedback

This commit is contained in:
Martin Algesten
2022-05-01 08:33:47 +02:00
parent 65371c966c
commit 049b5a5acd
6 changed files with 35 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ impl TlsConnector for PassThrough {
fn connect(
&self,
_dns_name: &str,
io: Box<dyn ReadWrite>,
io: Box<dyn ReadWrite + Sync>,
) -> Result<Box<dyn ReadWrite>, Error> {
if self.handshake_fail {
let io_err = io::Error::new(io::ErrorKind::InvalidData, PassThroughError);
@@ -45,6 +45,7 @@ impl TlsConnector for PassThrough {
}
}
#[derive(Debug)]
struct CustomTlsStream(Box<dyn ReadWrite>);
impl ReadWrite for CustomTlsStream {