aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-10-27 18:09:59 +0800
committerXavier Claessens <xclaesse@gmail.com>2011-11-04 17:10:19 +0800
commitd3e575fd305487eb8a15a66941651325904ba90b (patch)
tree2aa27a2f1142ba3f9a34bc04263172ccc4494a39 /libempathy/empathy-utils.c
parentbaeff8af237dd7c4a18d578ed71b3ee87ceb278d (diff)
downloadgsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.gz
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.bz2
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.lz
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.xz
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.zst
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.zip
Import Facebook and windows Live GOA accounts
Implement their auth mechanisms Fixes bug #661068 and #652544
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r--libempathy/empathy-utils.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index c4c2780ac..83fe4ce7e 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -1148,3 +1148,18 @@ while_finish:
if (can_video_call != NULL)
*can_video_call = can_video;
}
+
+gboolean
+empathy_sasl_channel_supports_mechanism (TpChannel *channel,
+ const gchar *mechanism)
+{
+ GHashTable *props;
+ const gchar * const *available_mechanisms;
+
+ props = tp_channel_borrow_immutable_properties (channel);
+ available_mechanisms = tp_asv_get_boxed (props,
+ TP_PROP_CHANNEL_INTERFACE_SASL_AUTHENTICATION_AVAILABLE_MECHANISMS,
+ G_TYPE_STRV);
+
+ return tp_strv_contains (available_mechanisms, mechanism);
+}