Changeset 2af3e23 for protocols


Ignore:
Timestamp:
2010-10-02T06:56:33Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
385fbc4, 8e9e2b7
Parents:
62f53b50
Message:

Restore MSN password truncation code. MSN still can't handle passwords
longer than 16 chars and silently fails if you give >16chars.

Location:
protocols/msn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    r62f53b50 r2af3e23  
    270270        struct im_connection *ic = soap_req->ic;
    271271        struct msn_data *md = ic->proto_data;
     272        char pass[MAX_PASSPORT_PWLEN+1];
    272273       
    273274        if( sd->redirect )
     
    281282                soap_req->url = g_strdup( SOAP_PASSPORT_SSO_URL );
    282283       
     284        strncpy( pass, ic->acc->pass, MAX_PASSPORT_PWLEN );
    283285        soap_req->payload = g_markup_printf_escaped( SOAP_PASSPORT_SSO_PAYLOAD,
    284                 ic->acc->user, ic->acc->pass, md->pp_policy );
     286                ic->acc->user, pass, md->pp_policy );
    285287       
    286288        return MSN_SOAP_OK;
  • protocols/msn/soap.h

    r62f53b50 r2af3e23  
    6363#define SOAP_PASSPORT_SSO_URL "https://login.live.com/RST.srf"
    6464#define SOAP_PASSPORT_SSO_URL_MSN "https://msnia.login.live.com/pp800/RST.srf"
     65#define MAX_PASSPORT_PWLEN 16
    6566
    6667#define SOAP_PASSPORT_SSO_PAYLOAD \
Note: See TracChangeset for help on using the changeset viewer.