File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ async fn test_0rtt_vectored() -> io::Result<()> {
65
65
}
66
66
67
67
async fn test_0rtt_impl ( vectored : bool ) -> io:: Result < ( ) > {
68
- let cert_chain = rustls_pemfile:: certs ( & mut Cursor :: new ( include_bytes ! ( "end.cert" ) ) )
68
+ let cert_chain = rustls_pemfile:: certs ( & mut Cursor :: new ( include_bytes ! ( "certs/ end.cert" ) ) )
69
69
. collect :: < io:: Result < Vec < _ > > > ( ) ?;
70
70
let key_der =
71
- rustls_pemfile:: private_key ( & mut Cursor :: new ( include_bytes ! ( "end.rsa" ) ) ) ?. unwrap ( ) ;
71
+ rustls_pemfile:: private_key ( & mut Cursor :: new ( include_bytes ! ( "certs/ end.rsa" ) ) ) ?. unwrap ( ) ;
72
72
let mut server = ServerConfig :: builder ( )
73
73
. with_no_client_auth ( )
74
74
. with_single_cert ( cert_chain, key_der)
@@ -109,7 +109,7 @@ async fn test_0rtt_impl(vectored: bool) -> io::Result<()> {
109
109
} ) ;
110
110
} ) ;
111
111
112
- let mut chain = BufReader :: new ( Cursor :: new ( include_str ! ( "end.chain" ) ) ) ;
112
+ let mut chain = BufReader :: new ( Cursor :: new ( include_str ! ( "certs/ end.chain" ) ) ) ;
113
113
let mut root_store = RootCertStore :: empty ( ) ;
114
114
for cert in rustls_pemfile:: certs ( & mut chain) {
115
115
root_store. add ( cert. unwrap ( ) ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ use tokio::sync::oneshot;
15
15
use tokio:: { runtime, time} ;
16
16
use tokio_rustls:: { LazyConfigAcceptor , TlsAcceptor , TlsConnector } ;
17
17
18
- const CERT : & str = include_str ! ( "end.cert" ) ;
19
- const CHAIN : & [ u8 ] = include_bytes ! ( "end.chain" ) ;
20
- const RSA : & str = include_str ! ( "end.rsa" ) ;
18
+ const CERT : & str = include_str ! ( "certs/ end.cert" ) ;
19
+ const CHAIN : & [ u8 ] = include_bytes ! ( "certs/ end.chain" ) ;
20
+ const RSA : & str = include_str ! ( "certs/ end.rsa" ) ;
21
21
22
22
lazy_static ! {
23
23
static ref TEST_SERVER : ( SocketAddr , & ' static str , & ' static [ u8 ] ) = {
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ mod utils {
8
8
9
9
#[ allow( dead_code) ]
10
10
pub fn make_configs ( ) -> ( Arc < ServerConfig > , Arc < ClientConfig > ) {
11
- const CERT : & str = include_str ! ( "end.cert" ) ;
12
- const CHAIN : & str = include_str ! ( "end.chain" ) ;
13
- const RSA : & str = include_str ! ( "end.rsa" ) ;
11
+ const CERT : & str = include_str ! ( "certs/ end.cert" ) ;
12
+ const CHAIN : & str = include_str ! ( "certs/ end.chain" ) ;
13
+ const RSA : & str = include_str ! ( "certs/ end.rsa" ) ;
14
14
15
15
let cert = certs ( & mut BufReader :: new ( Cursor :: new ( CERT ) ) )
16
16
. map ( |result| result. unwrap ( ) )
You can’t perform that action at this time.
0 commit comments