aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/soap.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-14 12:07:45 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-14 12:07:45 +0100
commit73efe3a6ea04ca19f3a4088990eda60ad852a94f (patch)
tree744fe45db9fd82fceb490f8d1d22e33c068eb794 /protocols/msn/soap.c
parent4e4af1b0fe073fd2d43f4ea0d55f8deadbeb974d (diff)
Allow Passport authentication with @msn.com accounts.
Diffstat (limited to 'protocols/msn/soap.c')
-rw-r--r--protocols/msn/soap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c
index 621e213b..c23d190a 100644
--- a/protocols/msn/soap.c
+++ b/protocols/msn/soap.c
@@ -160,7 +160,11 @@ static int msn_soap_passport_sso_build_request( struct msn_soap_req_data *soap_r
struct msn_soap_passport_sso_data *sd = soap_req->data;
struct im_connection *ic = soap_req->ic;
- soap_req->url = g_strdup( SOAP_PASSPORT_SSO_URL );
+ if( g_str_has_suffix( ic->acc->user, "@msn.com" ) )
+ soap_req->url = g_strdup( SOAP_PASSPORT_SSO_URL_MSN );
+ else
+ soap_req->url = g_strdup( SOAP_PASSPORT_SSO_URL );
+
soap_req->payload = g_markup_printf_escaped( SOAP_PASSPORT_SSO_PAYLOAD,
ic->acc->user, ic->acc->pass, sd->policy );