aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-12-30 02:04:40 -0300
committerdequis <dx@dxzone.com.ar>2015-12-30 02:04:40 -0300
commitcdd1ded568d435424776657fbde5152a00dd21b6 (patch)
tree0f6cee8ea7a221c9865c5e3f1f1a02a46985335b
parentba7618d607898050db6e7c380e70c77116100d5f (diff)
msn: Don't truncate passwords to 16 chars anymore.
This was needed back in 2010, but now it's not.
-rw-r--r--protocols/msn/soap.c5
-rw-r--r--protocols/msn/soap.h1
2 files changed, 1 insertions, 5 deletions
diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c
index 516d320c..1fa22d13 100644
--- a/protocols/msn/soap.c
+++ b/protocols/msn/soap.c
@@ -269,7 +269,6 @@ static int msn_soap_passport_sso_build_request(struct msn_soap_req_data *soap_re
struct msn_soap_passport_sso_data *sd = soap_req->data;
struct im_connection *ic = soap_req->ic;
struct msn_data *md = ic->proto_data;
- char pass[MAX_PASSPORT_PWLEN + 1];
if (sd->redirect) {
soap_req->url = sd->redirect;
@@ -285,10 +284,8 @@ static int msn_soap_passport_sso_build_request(struct msn_soap_req_data *soap_re
soap_req->url = g_strdup(SOAP_PASSPORT_SSO_URL);
}
- strncpy(pass, ic->acc->pass, MAX_PASSPORT_PWLEN);
- pass[MAX_PASSPORT_PWLEN] = '\0';
soap_req->payload = g_markup_printf_escaped(SOAP_PASSPORT_SSO_PAYLOAD,
- ic->acc->user, pass, md->pp_policy);
+ ic->acc->user, ic->acc->pass, md->pp_policy);
return MSN_SOAP_OK;
}
diff --git a/protocols/msn/soap.h b/protocols/msn/soap.h
index a99c71d6..27cfa0cb 100644
--- a/protocols/msn/soap.h
+++ b/protocols/msn/soap.h
@@ -60,7 +60,6 @@ int msn_soapq_flush(struct im_connection *ic, gboolean resend);
#define SOAP_PASSPORT_SSO_URL "https://login.live.com/RST.srf"
#define SOAP_PASSPORT_SSO_URL_MSN "https://msnia.login.live.com/pp900/RST.srf"
-#define MAX_PASSPORT_PWLEN 16
#define SOAP_PASSPORT_SSO_PAYLOAD \
"<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\" " \