From f8ec8903b66fad1355f90316bf46b7ca2be43762 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 15 May 2010 01:20:33 +0100 Subject: Passport 3.0 authentication turns out to be slightly different from what the msnpiki MSNP13 doc says and stuff is breaking now. This should fix the main problem now. --- protocols/msn/passport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/msn') diff --git a/protocols/msn/passport.c b/protocols/msn/passport.c index 565d15f3..7c896db1 100644 --- a/protocols/msn/passport.c +++ b/protocols/msn/passport.c @@ -144,7 +144,9 @@ static xt_status passport_xt_extract_token( struct xt_node *node, gpointer data struct msn_auth_data *mad = data; char *s; - if( ( s = xt_find_attr( node, "Id" ) ) && strcmp( s, "PPToken1" ) == 0 ) + if( ( s = xt_find_attr( node, "Id" ) ) && + ( strncmp( s, "Compact", 7 ) == 0 || + strncmp( s, "PPToken", 7 ) == 0 ) ) mad->token = g_memdup( node->text, node->text_len + 1 ); return XT_HANDLED; -- cgit v1.2.3