From 460f125e6a1278136768e18cf654c141b4274d71 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Tue, 28 Sep 2021 13:29:34 +0300
Subject: [PATCH 1/1] DocumentWidget: Showing error page on untrusted certs
src/ui/documentwidget.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 975a5568..589b9e56 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1876,6 +1876,11 @@ static void checkResponse_DocumentWidget_(iDocumentWidget *d) {
if (d->state == fetching_RequestState) {
d->state = receivedPartialResponse_RequestState;
updateTrust_DocumentWidget_(d, resp);
if (~d->certFlags & trusted_GmCertFlag &&
isSuccess_GmStatusCode(statusCode) &&
equalCase_Rangecc(urlScheme_String(d->mod.url), "gemini")) {
statusCode = tlsServerCertificateNotVerified_GmStatusCode;
}
init_Anim(&d->sideOpacity, 0);
init_Anim(&d->altTextOpacity, 0);
format_String(&d->sourceHeader,
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).