Re: [evolution-patches] patches for ssl enabling gw cal and addressbook backends
- From: Sivaiah N <snallagatla novell com>
- To: Rodrigo Moya <rodrigo novell com>
- Cc: Evolution Patches <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] patches for ssl enabling gw cal and addressbook backends
- Date: Fri, 09 Jul 2004 20:50:29 +0530
On Fri, 2004-07-09 at 20:53, Rodrigo Moya wrote:
> On Fri, 2004-07-09 at 20:23 +0530, Sivaiah N wrote:
> > Hi,
> > Attached are small patches for ssl enabling of the groupwise
> > cal/contacts backends. Both backends read the use_ssl property from
> > e-source and uses the http or https prefixes in uri depending upon
> > whether ssl is there or not. When use_ssl value is "when_possible" both
> > try first with https and then wiht http if that fails.
> >
>
> > + if (!E_IS_GW_CONNECTION(priv->cnc) && use_ssl &&
> > g_str_equal (use_ssl, "when-possible")) {
> > + http_uri = g_strconcat ("http://", real_uri +
> > 8, NULL);
> > + priv->cnc = e_gw_connection_new (http_uri,
> > priv->username, priv->password);
> > + g_free (http_uri);
> > + }
> >
> I don't understand this very well, if use_ssl is TRUE, why do you use
> http?
>
use_ssl can have either "always" or "when-possible". It is not boolean
variable. Hwn use_ssl is "when_possible" we try with https first and
then fall back to http if https fails
Thanks,
Siva
> cheers
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]