From: Jose Dapena Paz Date: Mon, 6 Apr 2009 20:58:13 +0000 (+0000) Subject: Added support for presets server security parameters as 1 and 2, X-Git-Tag: git_migration_finished~121 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=2243a61e9cb5c45ac9f282c524acfd9f9dab7446 Added support for presets server security parameters as 1 and 2, in addition to the currently supported boolean, and strings "ssl" and "tls" pmo-trunk-r8643 --- diff --git a/src/hildon2/modest-presets.c b/src/hildon2/modest-presets.c index c41c9d6..8649208 100644 --- a/src/hildon2/modest-presets.c +++ b/src/hildon2/modest-presets.c @@ -278,8 +278,12 @@ modest_presets_get_info_server_security (ModestPresets *self, const gchar *provi protocol_type = MODEST_PROTOCOLS_CONNECTION_SSL; else if (val && strcmp (val, "ssl") == 0) protocol_type = MODEST_PROTOCOLS_CONNECTION_SSL; + else if (val && strcmp (val, "2") == 0) + protocol_type = MODEST_PROTOCOLS_CONNECTION_SSL; else if (val && strcmp (val, "tls") == 0) protocol_type = MODEST_PROTOCOLS_CONNECTION_TLS; + else if (val && strcmp (val, "1") == 0) + protocol_type = MODEST_PROTOCOLS_CONNECTION_TLS; g_free(val); } }