diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-15 01:20:33 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-15 01:20:33 +0100 |
commit | f8ec8903b66fad1355f90316bf46b7ca2be43762 (patch) | |
tree | ad23efe4fcd3d3ad6dd85106719f12a8d8cb2492 | |
parent | 6e6b3d7c7300c5cf5cf7f1538154925fd2fe3953 (diff) |
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.
-rw-r--r-- | protocols/msn/passport.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |