- if (!auth_types) {
- g_warning ("DEBUG: %s: auth_types is NULL.\n", __FUNCTION__);
- }
- else if (tny_list_get_length(auth_types) == 0)
- g_warning ("DEBUG: %s: auth_types is an empty TnyList.\n", __FUNCTION__);
- else {
- ModestPairList* pairs = modest_protocol_info_get_auth_protocol_pair_list ();
-
- /* Get the enum value for the strings: */
- GList *result = NULL;
- TnyIterator* iter = tny_list_create_iterator(auth_types);
- while (!tny_iterator_is_done(iter)) {
- TnyPair *pair = TNY_PAIR(tny_iterator_get_current(iter));
- const gchar *auth_name = NULL;
- if (pair) {
- auth_name = tny_pair_get_name(pair);
- g_object_unref (pair);
- pair = NULL;
- }
-
- printf("DEBUG: %s: auth_name=%s\n", __FUNCTION__, auth_name);