SSL policy is now handled through WebKit
This commit is contained in:
parent
e39b7e623c
commit
94f2f2eace
1 changed files with 3 additions and 9 deletions
12
surf.c
12
surf.c
|
@ -1259,15 +1259,9 @@ setup(void)
|
||||||
WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
|
WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
|
||||||
|
|
||||||
/* ssl */
|
/* ssl */
|
||||||
tlsdb = g_tls_file_database_new(cafile, &error);
|
webkit_web_context_set_tls_errors_policy(context, strictssl ?
|
||||||
|
WEBKIT_TLS_ERRORS_POLICY_FAIL :
|
||||||
if (error) {
|
WEBKIT_TLS_ERRORS_POLICY_IGNORE);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue