Added support for presets server security parameters as 1 and 2,
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 6 Apr 2009 20:58:13 +0000 (20:58 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 6 Apr 2009 20:58:13 +0000 (20:58 +0000)
in addition to the currently supported boolean, and strings "ssl"
and "tls"

pmo-trunk-r8643

src/hildon2/modest-presets.c

index c41c9d6..8649208 100644 (file)
@@ -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);
                }
        }