diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-28 13:29:34 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-28 13:29:34 +0300 |
commit | 460f125e6a1278136768e18cf654c141b4274d71 (patch) | |
tree | a059c3d16aab785df3f9aede4c8f230aad77aa3a /src | |
parent | 85bcda3182131cb8dffd3698d725fc6e852f2734 (diff) |
DocumentWidget: Showing error page on untrusted certs
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/documentwidget.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { | |||
1876 | if (d->state == fetching_RequestState) { | 1876 | if (d->state == fetching_RequestState) { |
1877 | d->state = receivedPartialResponse_RequestState; | 1877 | d->state = receivedPartialResponse_RequestState; |
1878 | updateTrust_DocumentWidget_(d, resp); | 1878 | updateTrust_DocumentWidget_(d, resp); |
1879 | if (~d->certFlags & trusted_GmCertFlag && | ||
1880 | isSuccess_GmStatusCode(statusCode) && | ||
1881 | equalCase_Rangecc(urlScheme_String(d->mod.url), "gemini")) { | ||
1882 | statusCode = tlsServerCertificateNotVerified_GmStatusCode; | ||
1883 | } | ||
1879 | init_Anim(&d->sideOpacity, 0); | 1884 | init_Anim(&d->sideOpacity, 0); |
1880 | init_Anim(&d->altTextOpacity, 0); | 1885 | init_Anim(&d->altTextOpacity, 0); |
1881 | format_String(&d->sourceHeader, | 1886 | format_String(&d->sourceHeader, |