File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ async fn main() -> Result<(), Error> {
60
60
println ! ( "connecting {server}.." ) ;
61
61
62
62
let certificate = hub:: utilities:: load_key_and_certificate (
63
- "examples/certificates/client.pem.private_key.pem" . into ( ) ,
64
- "examples/certificates/client.pub.pem" . into ( ) ,
63
+ "dtls/ examples/certificates/client.pem.private_key.pem" . into ( ) ,
64
+ "dtls/ examples/certificates/client.pub.pem" . into ( ) ,
65
65
) ?;
66
66
67
67
let mut cert_pool = rustls:: RootCertStore :: empty ( ) ;
68
- let f = File :: open ( "examples/certificates/server.pub.pem" ) ?;
68
+ let f = File :: open ( "dtls/ examples/certificates/server.pub.pem" ) ?;
69
69
let mut reader = BufReader :: new ( f) ;
70
70
if cert_pool. add_pem_file ( & mut reader) . is_err ( ) {
71
71
return Err ( Error :: Other ( "cert_pool add_pem_file failed" . to_owned ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ async fn main() -> Result<(), Error> {
56
56
let host = matches. value_of ( "host" ) . unwrap ( ) . to_owned ( ) ;
57
57
58
58
let certificate = hub:: utilities:: load_key_and_certificate (
59
- "examples/certificates/server.pem.private_key.pem" . into ( ) ,
60
- "examples/certificates/server.pub.pem" . into ( ) ,
59
+ "dtls/ examples/certificates/server.pem.private_key.pem" . into ( ) ,
60
+ "dtls/ examples/certificates/server.pub.pem" . into ( ) ,
61
61
) ?;
62
62
63
63
let mut cert_pool = rustls:: RootCertStore :: empty ( ) ;
64
- let f = File :: open ( "examples/certificates/server.pub.pem" ) ?;
64
+ let f = File :: open ( "dtls/ examples/certificates/server.pub.pem" ) ?;
65
65
let mut reader = BufReader :: new ( f) ;
66
66
if cert_pool. add_pem_file ( & mut reader) . is_err ( ) {
67
67
return Err ( Error :: Other ( "cert_pool add_pem_file failed" . to_owned ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments