mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
draft manual certificate validation
This commit is contained in:
parent
35ccbd8714
commit
090e39b976
@ -434,6 +434,7 @@ impl Page {
|
||||
let tls_connection =
|
||||
TlsClientConnection::new(&connection, None::<&SocketConnectable>).unwrap(); // @TODO handle
|
||||
tls_connection.set_certificate(&certificate);
|
||||
tls_connection.connect_accept_certificate(move |_, _, _| true); // @TODO manual validation
|
||||
tls_connection.upcast::<IOStream>()
|
||||
} else {
|
||||
connection.upcast::<IOStream>()
|
||||
|
Loading…
x
Reference in New Issue
Block a user