diff options
author | Milan Crha <mcrha@redhat.com> | 2013-01-18 18:57:01 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-01-18 18:57:01 +0800 |
commit | dff703a1ad37b8c77f404304462992e3baf91795 (patch) | |
tree | 306a81ddac0b3a1040798f652638b2458ede9fd3 | |
parent | 37699de983b6085e5be6a92eafbee07bdcc70854 (diff) | |
download | gsoc2013-evolution-dff703a1ad37b8c77f404304462992e3baf91795.tar.gz gsoc2013-evolution-dff703a1ad37b8c77f404304462992e3baf91795.tar.zst gsoc2013-evolution-dff703a1ad37b8c77f404304462992e3baf91795.zip |
Bump libsoup dependency to 2.40.3
This removes workarounds for below libsoup bugs and makes trust-prompt
for WebDAV based backends work better, by checking also server certificates.
* soup_message_get_https_status() now returns the certificate
and flags for unsuccessful https connections as well as
successful ones. [bug #690176]
* Fixed a deadlock when calling soup_session_abort() on
a SoupSessionSync in some cases. [bug #691399]
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | modules/cal-config-caldav/e-caldav-chooser.c | 41 |
2 files changed, 2 insertions, 43 deletions
diff --git a/configure.ac b/configure.ac index 8e5d89b43c..1ce2b75b91 100644 --- a/configure.ac +++ b/configure.ac @@ -41,8 +41,8 @@ m4_define([gdk_minimum_version], [3.4.0]) m4_define([gdk_encoded_version], [GDK_VERSION_3_4]) dnl Keep these two definitions in agreement. -m4_define([soup_minimum_version], [2.38.1]) -m4_define([soup_encoded_version], [SOUP_VERSION_2_38]) +m4_define([soup_minimum_version], [2.40.3]) +m4_define([soup_encoded_version], [SOUP_VERSION_2_40]) m4_define([eds_minimum_version], [evo_version]) m4_define([gtkhtml_minimum_version], [4.5.2]) diff --git a/modules/cal-config-caldav/e-caldav-chooser.c b/modules/cal-config-caldav/e-caldav-chooser.c index f7de1129be..fefbc9829a 100644 --- a/modules/cal-config-caldav/e-caldav-chooser.c +++ b/modules/cal-config-caldav/e-caldav-chooser.c @@ -188,54 +188,13 @@ trust_prompt_sync (const ENamedParameters *parameters, { EUserPrompter *prompter; gint response; - gboolean asked = FALSE; g_return_val_if_fail (parameters != NULL, E_TRUST_PROMPT_RESPONSE_UNKNOWN); prompter = e_user_prompter_new (); g_return_val_if_fail (prompter != NULL, E_TRUST_PROMPT_RESPONSE_UNKNOWN); - /* before libsoup 2.41.3 the certificate was not set on failed requests, - thus do a simple prompt only in such case - */ - #ifdef SOUP_CHECK_VERSION - #if SOUP_CHECK_VERSION(2, 41, 3) - asked = TRUE; response = e_user_prompter_extension_prompt_sync (prompter, "ETrustPrompt::trust-prompt", parameters, NULL, cancellable, error); - #endif - #endif - - if (!asked) { - GList *button_captions = NULL; - const gchar *markup; - gchar *tmp = NULL; - - button_captions = g_list_append (button_captions, _("_Reject")); - button_captions = g_list_append (button_captions, _("Accept _Temporarily")); - button_captions = g_list_append (button_captions, _("_Accept Permanently")); - - markup = e_named_parameters_get (parameters, "markup"); - if (!markup) { - gchar *bhost; - - bhost = g_strconcat ("<b>", e_named_parameters_get (parameters, "host"), "</b>", NULL); - tmp = g_strdup_printf (_("SSL certificate for '%s' is not trusted. Do you wish to accept it?"), bhost); - g_free (bhost); - - markup = tmp; - } - - response = e_user_prompter_prompt_sync (prompter, "question", _("Certificate trust..."), - markup, NULL, TRUE, button_captions, cancellable, NULL); - - if (response == 1) - response = 2; - else if (response == 2) - response = 1; - - g_list_free (button_captions); - g_free (tmp); - } g_object_unref (prompter); |