Mercurial > pidgin
diff src/protocols/msn/nexus.c @ 19812:d928bccffe4c
[gaim-migrate @ 16952]
update for fail-safe check of Passport 3.0's Authentication
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Mon, 21 Aug 2006 16:16:10 +0000 |
parents | da1075366756 |
children | 6bc69cd68d3c |
line wrap: on
line diff
--- a/src/protocols/msn/nexus.c Sat Aug 19 16:48:46 2006 +0000 +++ b/src/protocols/msn/nexus.c Mon Aug 21 16:16:10 2006 +0000 @@ -163,7 +163,7 @@ MsnSoapConn *soapconn; MsnNexus * nexus; MsnSession *session; - char *ru,*lc,*id,*tw,*ct,*kpp,*kv,*ver,*rn,*tpf; + char *ru,*lc,*id,*tw,*ct,*kpp,*kv,*ver,*rn,*tpf,*fs; char *username, *password; char *request_str, *head, *tail,*challenge_str; @@ -187,6 +187,7 @@ lc = (char *)g_hash_table_lookup(nexus->challenge_data, "lc"); id = (char *)g_hash_table_lookup(nexus->challenge_data, "id"); tw = (char *)g_hash_table_lookup(nexus->challenge_data, "tw"); + fs = (char *)g_hash_table_lookup(nexus->challenge_data, "fs"); ru = (char *)g_hash_table_lookup(nexus->challenge_data, "ru"); ct = (char *)g_hash_table_lookup(nexus->challenge_data, "ct"); kpp= (char *)g_hash_table_lookup(nexus->challenge_data, "kpp"); @@ -206,10 +207,14 @@ return; } + if(!fs){ + fs =g_strdup_printf("1"); + } challenge_str = g_strdup_printf( - "lc=%s&id=%s&tw=%s&fs=1&ru=%s&ct=%s&kpp=%s&kv=%s&ver=%s&rn=%s&tpf=%s\r\n", - lc,id,tw,ru,ct,kpp,kv,ver,rn,tpf + "lc=%s&id=%s&tw=%s&fs=%s&ru=%s&ct=%s&kpp=%s&kv=%s&ver=%s&rn=%s&tpf=%s\r\n", + lc,id,tw,fs,ru,ct,kpp,kv,ver,rn,tpf ); + g_free(fs); /*build the SOAP windows Live ID XML body */ tail = g_strdup_printf(TWN_ENVELOP_TEMPLATE,username,password,challenge_str );