add comments

This commit is contained in:
yggverse 2024-11-24 19:40:33 +02:00
parent c08225b007
commit cbd31d1ccc

View File

@ -482,7 +482,7 @@ impl Page {
Err(reason) => todo!("{reason}"),
},
None => {
// Use unauthorized TLS connection
// Use unauthorized (random) TLS connection
client.set_tls(true);
None
}
@ -501,6 +501,8 @@ impl Page {
SocketClientEvent::Connected => Status::Connected,
SocketClientEvent::ProxyNegotiating => Status::ProxyNegotiating,
SocketClientEvent::ProxyNegotiated => Status::ProxyNegotiated,
// This case have effect only for unauthorized (random) TLS connection
// * see `fn auth` above to handle custom certificates
SocketClientEvent::TlsHandshaking => {
// Handle certificate errors @TODO
// https://geminiprotocol.net/docs/protocol-specification.gmi#tls-server-certificate-validation