summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-18 15:14:28 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-20 00:23:59 +0100
commit94f2f2eacef96aa3f34124352232aac3a17c995f (patch)
treec52e9846ced1f7b31160db766a1d98872f568309 /surf.c
parente39b7e623cb19dc5e7e294d2e1a137a95dfd6945 (diff)
downloadsurf-94f2f2eacef96aa3f34124352232aac3a17c995f.tar.gz
surf-94f2f2eacef96aa3f34124352232aac3a17c995f.tar.bz2
surf-94f2f2eacef96aa3f34124352232aac3a17c995f.zip
SSL policy is now handled through WebKit
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/surf.c b/surf.c
index f17292b..b298030 100644
--- a/surf.c
+++ b/surf.c
@@ -1259,15 +1259,9 @@ setup(void)
WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
/* ssl */
- tlsdb = g_tls_file_database_new(cafile, &error);
-
- if (error) {
- g_warning("Error loading SSL database %s: %s", cafile,
- error->message);
- g_error_free(error);
- }
- g_object_set(G_OBJECT(s), "tls-database", tlsdb, NULL);
- g_object_set(G_OBJECT(s), "ssl-strict", strictssl, NULL);
+ webkit_web_context_set_tls_errors_policy(context, strictssl ?
+ WEBKIT_TLS_ERRORS_POLICY_FAIL :
+ WEBKIT_TLS_ERRORS_POLICY_IGNORE);
}
void