aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-03-17 19:16:35 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-03-17 19:16:35 +0800
commitf316821f46181b2c5a9a9902b49a1c519828a6e2 (patch)
tree5d4127566a9ba4ccb8344010346ddd90366b1b9d
parent70d082e4d8d58f7bbf114653184ba8fcfbd5f5eb (diff)
downloadgsoc2013-evolution-f316821f46181b2c5a9a9902b49a1c519828a6e2.tar.gz
gsoc2013-evolution-f316821f46181b2c5a9a9902b49a1c519828a6e2.tar.zst
gsoc2013-evolution-f316821f46181b2c5a9a9902b49a1c519828a6e2.zip
Setting the authentication mechanism on the the transport url along with
source url. svn path=/trunk/; revision=29051
-rw-r--r--plugins/exchange-account-setup/ChangeLog5
-rw-r--r--plugins/exchange-account-setup/exchange-account-setup.c37
2 files changed, 30 insertions, 12 deletions
diff --git a/plugins/exchange-account-setup/ChangeLog b/plugins/exchange-account-setup/ChangeLog
index a4b3694bc2..a3b6de03b6 100644
--- a/plugins/exchange-account-setup/ChangeLog
+++ b/plugins/exchange-account-setup/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-17 Sushma Rai <rsushma@novell.com>
+
+ * exchange-account-setup.c (exchange_authtype_changed): Setting the
+ authentication mechanism to both transport and source urls.
+
2005-03-05 Sushma Rai <rsushma@novell.com>
* org-gnome-exchange-account-setup.eplug.in: Added the commit function
diff --git a/plugins/exchange-account-setup/exchange-account-setup.c b/plugins/exchange-account-setup/exchange-account-setup.c
index 78f5eb3147..f01f721d49 100644
--- a/plugins/exchange-account-setup/exchange-account-setup.c
+++ b/plugins/exchange-account-setup/exchange-account-setup.c
@@ -602,29 +602,42 @@ exchange_authtype_changed (GtkComboBox *dropdown, EConfig *config)
GtkTreeModel *model;
GtkTreeIter iter;
CamelServiceAuthType *authtype;
- CamelURL *url;
- const char *source_url;
- char *url_string;
+ CamelURL *url_source, *url_transport;
+ const char *source_url, *transport_url;
+ char *source_url_string, *transport_url_string;
source_url = e_account_get_string (target->account,
E_ACCOUNT_SOURCE_URL);
if (id == -1)
return;
- url = camel_url_new (source_url, NULL);
+ url_source = camel_url_new (source_url, NULL);
+
+ transport_url = e_account_get_string (target->account,
+ E_ACCOUNT_TRANSPORT_URL);
+ url_transport = camel_url_new (transport_url, NULL);
+
model = gtk_combo_box_get_model(dropdown);
if (gtk_tree_model_iter_nth_child(model, &iter, NULL, id)) {
gtk_tree_model_get(model, &iter, 1, &authtype, -1);
- if (authtype)
- camel_url_set_authmech(url, authtype->authproto);
- else
- camel_url_set_authmech(url, NULL);
+ if (authtype) {
+ camel_url_set_authmech(url_source, authtype->authproto);
+ camel_url_set_authmech(url_transport, authtype->authproto);
+ }
+ else {
+ camel_url_set_authmech(url_source, NULL);
+ camel_url_set_authmech(url_transport, NULL);
+ }
- url_string = camel_url_to_string(url, 0);
- e_account_set_string(target->account, E_ACCOUNT_SOURCE_URL, url_string);
- g_free(url_string);
+ source_url_string = camel_url_to_string(url_source, 0);
+ transport_url_string = camel_url_to_string(url_transport, 0);
+ e_account_set_string(target->account, E_ACCOUNT_SOURCE_URL, source_url_string);
+ e_account_set_string(target->account, E_ACCOUNT_TRANSPORT_URL, transport_url_string);
+ g_free(source_url_string);
+ g_free(transport_url_string);
}
- camel_url_free(url);
+ camel_url_free(url_source);
+ camel_url_free(url_transport);
}
l/electron6/files/ini-1.3.8&id=cd8de842af4a622d2da46a7dea47a07be4b4d486'>emulators/ppsspp-devel: update to 1.0.1.757jbeich2015-07-153-14/+13 * Fix pre-build target to properly set environment variables. Note there isjkim2015-07-142-9/+4 * - Fix fetchamdmi32015-07-141-1/+2 * Update to Wine 1.7.47. This includes the following changes:gerald2015-07-133-5/+12 * emulators/i386-wine-devel update to 1.7.46.dbn2015-07-133-17/+29 * Update to 4.3.30.jkim2015-07-116-12/+11 * Catch up with github tree - changelog:nox2015-07-112-6/+6 * Catch up with github tree - changelog:nox2015-07-102-6/+6 * Catch up with github tree - changelog:nox2015-07-092-6/+6 * - Remove blank line between NO_ARCH and USE_RUBYsunpoet2015-07-071-1/+0 * Fix build with ffmpeg 2.7riggs2015-07-042-11/+18 * - Update multimdedia/ffmpeg to latest upstrem version 2.7.1riggs2015-07-031-0/+2 * Set NO_ARCH for remaining rubygem-* ports with no arch dependent filespgollucci2015-07-031-0/+2 * Catch up with github tree - changelog:nox2015-07-022-6/+6 * Update to Wine 1.7.46. This includes the following changes:gerald2015-06-293-5/+13 * Catch up with github tree, fixing bug caused by struct kinfo_proc typo -nox2015-06-282-7/+6 * - Mark BROKEN on 9.x:amdmi32015-06-281-0/+2 * - Fix mupen64plus-rsp-cxd4 on 9.x by requiring newer compiler, as old gcc seg...amdmi32015-06-272-2/+3 * - Apply fixes for pcnet guest to host escape vulnerability - CVE-2015-3209.nox2015-06-276-2/+175 * - Fix build on 9.x by using more recent compileramdmi32015-06-271-1/+4 * - Switch to gmake to fix build on headak2015-06-271-1/+1 * - Fix buildamdmi32015-06-241-0/+13 * - Strip librariesamdmi32015-06-231-1/+3 * Convert to USES=jpegantoine2015-06-238-15/+9 * Convert to USES=autoreconfbapt2015-06-221-5/+1 * Convert to USES=autoreconfbapt2015-06-211-4/+2 * Update to Wine 1.7.45. This includes the following changes:gerald2015-06-213-5/+9 * emulators/ppsspp-devel: update to 1.0.1.600jbeich2015-06-203-11/+12 * Catch up with github tree, adding bsd-user aarch64 fixes - changelog:nox2015-06-202-6/+6 * xen: add two symtab/strtab loading fixes from upstreamroyger2015-06-192-2/+39 * - Fix build failure due to gpg error (gpg: failed to create temporary file)amdmi32015-06-192-2/+22 * Catch up with github tree, adding setsockopt handling for IPV6 - changelog:nox2015-06-182-7/+7 * - Use sdl2 instead of sdlacm2015-06-171-1/+1 * - Fix buildacm2015-06-172-45/+4 * - Switch to USES=autoreconfamdmi32015-06-171-2/+2 * - Mark BROKEN on < 10.x amd64:amdmi32015-06-171-1/+5 * Add upstream commit to find X11 directly.rakuco2015-06-161-0/+20 * - Fix distinfo path fileacm2015-06-156-1/+5 * - Commit missing filesacm2015-06-156-1/+23 * - Update to 2.5acm2015-06-1520-128/+53 * - New ports : emulators/mupen64plus-rsp-cxd4acm2015-06-152-0/+28 * - Catch up with github tree, adding IP_OPTIONS support sockopt syscalls -nox2015-06-142-6/+6 * - Catch up with github tree, adding more bsd-user ppc fixes - changelog:nox2015-06-133-6/+17 * Sort entries.olgeni2015-06-131-2/+2 * Catch up with github tree - changelog:nox2015-06-132-6/+6 * emulators/ppsspp-devel: update to 1.0.1.568jbeich2015-06-122-7/+7 * Fix plenty of security issuesbapt2015-06-1212-2/+730 * emulators/i386-wine-devel: update to 1.7.44.dbn2015-06-123-35/+23