We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9de49c2 commit dded9a6Copy full SHA for dded9a6
src/lib.rs
@@ -13,14 +13,14 @@ use tokio::net::TcpStream;
13
14
#[tokio::main]
15
async fn main() {
16
- let stream = TcpStream::connect("http.sandbox.drogue.cloud:443")
+ let stream = TcpStream::connect("google.com:443")
17
.await
18
.expect("error creating TCP connection");
19
20
println!("TCP connection opened");
21
let mut read_record_buffer = [0; 16384];
22
let mut write_record_buffer = [0; 16384];
23
- let config = TlsConfig::new().with_server_name("http.sandbox.drogue.cloud");
+ let config = TlsConfig::new().with_server_name("google.com").enable_rsa_signatures();
24
let mut tls = TlsConnection::new(
25
FromTokio::new(stream),
26
&mut read_record_buffer,
0 commit comments