Show
Ignore:
Timestamp:
2008-02-17T11:26:44Z (3 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
branch-nick:
devel
revision id:
wilmer@gaast.net-20080217112644-lnvaj67hymltycih
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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • devel/protocols/msn/passport.c

    r335 r336  
    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 );