diff options
-rw-r--r-- | plugins/groupwise-features/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/groupwise-features/proxy-login.c | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog index dac3bc7820..b622fb31f9 100644 --- a/plugins/groupwise-features/ChangeLog +++ b/plugins/groupwise-features/ChangeLog @@ -1,3 +1,10 @@ +2006-03-01 Sankar P <psankar@novell.com> + + * proxy-login.c: (proxy_get_password) + (proxy_login_get_cnc): + Takes care of non SSL accounts too. + Fixes #332948 + 2006-02-21 Shreyas Srinivasan <sshreyas@novell.com> * proxy.c: Fix more brokenness. doh check if its the proxy diff --git a/plugins/groupwise-features/proxy-login.c b/plugins/groupwise-features/proxy-login.c index 416ce86e04..3d39c3bc18 100644 --- a/plugins/groupwise-features/proxy-login.c +++ b/plugins/groupwise-features/proxy-login.c @@ -193,7 +193,7 @@ proxy_get_password (EAccount *account, char **user_name, char **password) { char *uri, *failed_auth, *key, *prompt; CamelURL *url; - const char *poa_address, *use_ssl, *soap_port; + const char *poa_address, *use_ssl = NULL, *soap_port; url = camel_url_new (account->source->url, NULL); if (url == NULL) @@ -210,7 +210,7 @@ proxy_get_password (EAccount *account, char **user_name, char **password) key = g_strdup_printf ("groupwise://%s@%s/", url->user, poa_address); - if (!g_str_equal (use_ssl, "never")) + if (use_ssl && !g_str_equal (use_ssl, "never")) uri = g_strdup_printf ("https://%s:%s/soap", poa_address, soap_port); else uri = g_strdup_printf ("http://%s:%s/soap", poa_address, soap_port); @@ -237,7 +237,7 @@ proxy_login_get_cnc (EAccount *account) CamelURL *url; url = camel_url_new (account->source->url, NULL); char *uri = NULL, *failed_auth = NULL, *key = NULL, *prompt = NULL, *password = NULL; - const char *use_ssl, *soap_port; + const char *use_ssl = NULL, *soap_port; gboolean remember; url = camel_url_new (account->source->url, NULL); @@ -252,7 +252,7 @@ proxy_login_get_cnc (EAccount *account) use_ssl = camel_url_get_param (url, "use_ssl"); key = g_strdup_printf ("groupwise://%s@%s/", url->user, url->host); - if (!g_str_equal (use_ssl, "never")) + if (use_ssl && !g_str_equal (use_ssl, "never")) uri = g_strdup_printf ("https://%s:%s/soap", url->host, soap_port); else uri = g_strdup_printf ("http://%s:%s/soap", url->host, soap_port); |