]> spindle.queued.net Git - midori/commitdiff
force-ssl-cert-verification added, set ssl-strict to TRUE so connections are not...
authorYves-Alexis Perez <corsac@debian.org>
Tue, 8 May 2012 13:42:14 +0000 (15:42 +0200)
committerYves-Alexis Perez <corsac@debian.org>
Tue, 8 May 2012 13:42:14 +0000 (15:42 +0200)
debian/changelog
debian/patches/force-ssl-cert-verification.patch [new file with mode: 0644]
debian/patches/series

index 8e1ce44fa97d5fe3d5898d99aa1f46cc30551ab2..e49781ec6bae7be2710420210b7ea4140420cae5 100644 (file)
@@ -10,6 +10,8 @@ midori (0.4.5-1) UNRELEASED; urgency=low
                                                                 closes: #660303
   * debian/patches:
     - fix-libsoup detection added.
+    - force-ssl-cert-verification added, set ssl-strict to TRUE so connections
+      are not done if the ssl certificate can't be trusted.
 
  -- Yves-Alexis Perez <corsac@debian.org>  Sat, 14 Apr 2012 14:47:59 +0200
 
diff --git a/debian/patches/force-ssl-cert-verification.patch b/debian/patches/force-ssl-cert-verification.patch
new file mode 100644 (file)
index 0000000..7f66824
--- /dev/null
@@ -0,0 +1,22 @@
+diff --git a/midori/main.c b/midori/main.c
+index 2ec5599..af3cc71 100644
+--- a/midori/main.c
++++ b/midori/main.c
+@@ -1019,7 +1019,7 @@ midori_load_soup_session (gpointer settings)
+     #if defined (HAVE_LIBSOUP_2_37_1)
+     g_object_set (session,
+                   "ssl-use-system-ca-file", TRUE,
+-                  "ssl-strict", FALSE,
++                  "ssl-strict", TRUE,
+                   NULL);
+     #elif defined (HAVE_LIBSOUP_2_29_91)
+     const gchar* certificate_files[] =
+@@ -1038,7 +1038,7 @@ midori_load_soup_session (gpointer settings)
+         {
+             g_object_set (session,
+                 "ssl-ca-file", certificate_files[i],
+-                "ssl-strict", FALSE,
++                "ssl-strict", TRUE,
+                 NULL);
+             break;
+         }
index 6b5507a5e1532d40fb2addd3442613605c6640f8..1a1ae4a8061564afa18afc3a465813938b1e5143 100644 (file)
@@ -1,2 +1,3 @@
 add-debian-searches
 fix-libsoup-detect.patch
+force-ssl-cert-verification.patch