File midori-use-system-ca-certificates.patch of Package midori.openSUSE_12.1_Update

Index: midori-0.4.1/midori/main.c
===================================================================
--- midori-0.4.1.orig/midori/main.c
+++ midori-0.4.1/midori/main.c
@@ -993,30 +993,7 @@ midori_load_soup_session (gpointer setti
 {
     SoupSession* session = webkit_get_default_session ();
 
-    #if defined (HAVE_LIBSOUP_2_29_91)
-    const gchar* certificate_files[] =
-    {
-        "/etc/pki/tls/certs/ca-bundle.crt",
-        "/etc/ssl/certs/ca-certificates.crt",
-        "/etc/ssl/certs/ca-bundle.crt",
-        "/usr/local/share/certs/ca-root-nss.crt",
-        NULL
-    };
-    guint i;
-
-    for (i = 0; i < G_N_ELEMENTS (certificate_files); i++)
-        if (g_access (certificate_files[i], F_OK) == 0)
-        {
-            g_object_set (session,
-                "ssl-ca-file", certificate_files[i],
-                "ssl-strict", FALSE,
-                NULL);
-            break;
-        }
-    if (i == G_N_ELEMENTS (certificate_files))
-        g_warning (_("No root certificate file is available. "
-                     "SSL certificates cannot be verified."));
-    #endif
+    g_object_set (session, "ssl-strict", FALSE, NULL);
 
     #if !WEBKIT_CHECK_VERSION (1, 3, 5)
     /* See http://stevesouders.com/ua/index.php */
openSUSE Build Service is sponsored by