File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11use async_std:: io;
2- use async_std:: io:: Write ;
32use async_std:: net:: TcpStream ;
3+ use async_std:: prelude:: * ;
44use async_std:: task;
55use async_tls:: TlsConnector ;
66
Original file line number Diff line number Diff line change 11use async_std:: io;
2- use async_std:: io:: Write ;
32use async_std:: net:: { TcpListener , TcpStream } ;
4- use async_std:: stream :: Stream ;
3+ use async_std:: prelude :: * ;
54use async_std:: task;
65use async_tls:: TlsAcceptor ;
76use rustls:: internal:: pemfile:: { certs, rsa_private_keys} ;
@@ -41,7 +40,7 @@ fn load_keys(path: &Path) -> io::Result<Vec<PrivateKey>> {
4140
4241/// Configure the server using rusttls
4342/// See https://docs.rs/rustls/0.16.0/rustls/struct.ServerConfig.html for details
44- ///
43+ ///
4544/// A TLS server needs a certificate and a fitting private key
4645fn load_config ( options : & Options ) -> io:: Result < ServerConfig > {
4746 let certs = load_certs ( & options. cert ) ?;
You can’t perform that action at this time.
0 commit comments