return;
}
+ if (!methods) {
+ g_warning ("%s: %s", G_STRFUNC, "NULL methods");
+ return;
+ }
+
gchar **pmethods = methods;
g_print("Available authentication methods:\n");
g_print("\t%s\n", *pmethods);
pmethods++;
}
- if (methods) g_strfreev (methods);
+ g_strfreev (methods);
g_main_loop_quit (user_data);
}
return;
}
+ if (!mechanisms) {
+ g_warning("%s: %s", G_STRFUNC, "NULL mechanisms");
+ return;
+ }
+
gchar **pmechanisms = mechanisms;
g_print("Available authentication mechanisms for method %s:\n", method);
g_print("\t%s\n", *pmechanisms);
pmechanisms++;
}
- if (mechanisms) g_strfreev (mechanisms);
+ g_strfreev (mechanisms);
g_main_loop_quit (user_data);
}
while (iter)
{
SignonIdentityInfo *info = (SignonIdentityInfo *) iter->data;
- const gchar *caption = signon_identity_info_get_caption (info);
g_print ("\tid=%d caption='%s' ACL:",
signon_identity_info_get_id (info),