draft manual certificate validation

This commit is contained in:
yggverse 2024-11-19 18:57:28 +02:00
parent 35ccbd8714
commit 090e39b976

View File

@ -434,6 +434,7 @@ impl Page {
let tls_connection = let tls_connection =
TlsClientConnection::new(&connection, None::<&SocketConnectable>).unwrap(); // @TODO handle TlsClientConnection::new(&connection, None::<&SocketConnectable>).unwrap(); // @TODO handle
tls_connection.set_certificate(&certificate); tls_connection.set_certificate(&certificate);
tls_connection.connect_accept_certificate(move |_, _, _| true); // @TODO manual validation
tls_connection.upcast::<IOStream>() tls_connection.upcast::<IOStream>()
} else { } else {
connection.upcast::<IOStream>() connection.upcast::<IOStream>()