mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
draft manual certificate validation
This commit is contained in:
parent
35ccbd8714
commit
090e39b976
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue