[PATCH 8/9] webkit: Ignore TLS errors.
[email protected] Fri, 7 Feb 2020 01:10:16 -0800
Newsgroups
gmane.linux.drivers.hostap
Message-ID
<[email protected] >
From: Ben Greear <[email protected] >
Hopefully this helps with self-signed certs.
Signed-off-by: Ben Greear <[email protected] >
---
src/utils/browser.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/utils/browser.c b/src/utils/browser.c
index a9247092f..4f39c4186 100644
--- a/src/utils/browser.c
+++ b/src/utils/browser.c
@@ -211,6 +211,7 @@ int hs20_web_browser(const char *url)
SoupSession *s;
#endif
struct browser_context ctx;
+ WebKitWebContext *wkctx;
memset(&ctx, 0, sizeof(ctx));
if (!gtk_init_check(NULL, NULL))
@@ -278,6 +279,9 @@ int hs20_web_browser(const char *url)
"hs20-client/1.0", NULL);
g_object_set(G_OBJECT(settings), "auto-load-images", TRUE, NULL);
+ wkctx = webkit_web_context_get_default();
+ webkit_web_context_set_tls_errors_policy(wkctx, WEBKIT_TLS_ERRORS_POLICY_IGNORE);
+
webkit_web_view_load_uri(view, url);
gtk_main();
--
2.20.1