aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/sasl.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-12-21 11:48:08 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2011-12-21 11:48:08 +0100
commite14b47b826594772e4f3d0dbec1bf17153aa92b1 (patch)
tree24964b04778df558ceaa88e9e241b4fd422299bd /protocols/jabber/sasl.c
parent68286eb08dbb6c2aad555f155da6f16ee6f061e8 (diff)
Fix parsing of acc->pass. Use oauth_params_ functions instead of string
magic, fixes escaping issues.
Diffstat (limited to 'protocols/jabber/sasl.c')
-rw-r--r--protocols/jabber/sasl.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/protocols/jabber/sasl.c b/protocols/jabber/sasl.c
index 06dda8a8..2f45eb20 100644
--- a/protocols/jabber/sasl.c
+++ b/protocols/jabber/sasl.c
@@ -511,18 +511,6 @@ int sasl_oauth2_refresh( struct im_connection *ic, const char *refresh_token )
refresh_token, sasl_oauth2_got_token, ic );
}
-int sasl_oauth2_load_access_token( struct im_connection *ic )
-{
- struct jabber_data *jd = ic->proto_data;
- GSList *p_in = NULL;
-
- oauth_params_parse( &p_in, ic->acc->pass );
- jd->oauth2_access_token = g_strdup( oauth_params_get( &p_in, "access_token" ) );
- oauth_params_free( &p_in );
-
- return jd->oauth2_access_token != NULL;
-}
-
static void sasl_oauth2_got_token( gpointer data, const char *access_token, const char *refresh_token )
{
struct im_connection *ic = data;