SSL policy is now handled through WebKit
authorQuentin Rameau <quinq@fifth.space>
Wed, 18 Nov 2015 14:14:28 +0000 (15:14 +0100)
committerQuentin Rameau <quinq@fifth.space>
Thu, 19 Nov 2015 23:23:59 +0000 (00:23 +0100)
surf.c

diff --git a/surf.c b/surf.c
index f17292b..b298030 100644 (file)
--- 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