Changeset 9186d15 for protocols


Ignore:
Timestamp:
2008-02-17T11:26:44Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d5bd9c0
Parents:
e6648bf
Message:

Automatically truncate MSN passports to 16 characters because that's the
maximum supported by MSN and giving a longer password will make the
authentication fail.

Location:
protocols/msn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/passport.c

    re6648bf r9186d15  
    5252                if( mad->cookie[i] == ',' )
    5353                        mad->cookie[i] = '&';
     54       
     55        /* Microsoft doesn't allow password longer than 16 chars and silently
     56           fails authentication if you give the "full version" of your passwd. */
     57        if( strlen( mad->password ) > MAX_PASSPORT_PWLEN )
     58                mad->password[MAX_PASSPORT_PWLEN] = 0;
    5459       
    5560        return passport_get_token_real( mad );
  • protocols/msn/passport.h

    re6648bf r9186d15  
    3535#endif
    3636#include "nogaim.h"
     37
     38#define MAX_PASSPORT_PWLEN 16
    3739
    3840struct msn_auth_data
Note: See TracChangeset for help on using the changeset viewer.