[evolution-data-server] [ETrustPrompt] Ensure needed extensions for GOA/UOA sources
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [ETrustPrompt] Ensure needed extensions for GOA/UOA sources
- Date: Fri, 19 Jun 2015 10:16:47 +0000 (UTC)
commit 9dcfdfd934b4fd87cb98f55d425d26daa4abf924
Author: Milan Crha <mcrha redhat com>
Date: Fri Jun 19 12:13:54 2015 +0200
[ETrustPrompt] Ensure needed extensions for GOA/UOA sources
These are collection sources, thus not necessarily also WebDAV or
with an Authentication extensions, but at least the WebDAV extension
is used for auto-discovery and SSL Trust result reading, thus make
sure the extension is there, thus the prompt result is saved as well.
libedataserverui/e-trust-prompt.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libedataserverui/e-trust-prompt.c b/libedataserverui/e-trust-prompt.c
index abb0299..d582ddd 100644
--- a/libedataserverui/e-trust-prompt.c
+++ b/libedataserverui/e-trust-prompt.c
@@ -560,6 +560,13 @@ e_trust_prompt_run_for_source (GtkWindow *parent,
g_return_if_fail (E_IS_SOURCE (source));
g_return_if_fail (certificate_pem != NULL);
+ if (e_source_has_extension (source, E_SOURCE_EXTENSION_GOA) ||
+ e_source_has_extension (source, E_SOURCE_EXTENSION_UOA)) {
+ /* Make sure that GOA/UOA collection sources contain these extensions too */
+ g_warn_if_fail (e_source_get_extension (source, E_SOURCE_EXTENSION_AUTHENTICATION));
+ g_warn_if_fail (e_source_get_extension (source, E_SOURCE_EXTENSION_WEBDAV_BACKEND));
+ }
+
if (e_source_has_extension (source, E_SOURCE_EXTENSION_AUTHENTICATION))
extension_authentication = e_source_get_extension (source, E_SOURCE_EXTENSION_AUTHENTICATION);
if (e_source_has_extension (source, E_SOURCE_EXTENSION_WEBDAV_BACKEND))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]