Changeset 2af3e23


Ignore:
Timestamp:
2010-10-02T06:56:33Z (9 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.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • doc/CHANGES

    r62f53b50 r2af3e23  
    5252- Rewritten MSN module, implementing MSNP15 instead of the old MSNP8:
    5353  * MSNP8 support from MSN was getting pretty unreliable. There were issues
    54     with remembering display names and adding contacts/auth requests.
     54    with remembering display names and adding contacts/auth requests (or
     55    even contacts silently getting blocked!). This upgrade should fix all
     56    of that.
    5557  * Support for sending offline messages.
    5658  * Support for setting and reading status messages.
  • 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.