Ignore:
Timestamp:
2008-02-17T11:26:44Z (16 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.

File:
1 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 );
Note: See TracChangeset for help on using the changeset viewer.