Changeset 5fecede for protocols


Ignore:
Timestamp:
2010-08-08T17:29:43Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7db65b7
Parents:
2528cda
Message:

Enough changes to successfully login up to (but not including) fetching the
contact list.

Location:
protocols/msn
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r2528cda r5fecede  
    7373        md->handler->rxq = g_new0( char, 1 );
    7474       
    75         g_snprintf( s, sizeof( s ), "VER %d MSNP8 CVR0\r\n", ++md->trId );
     75        g_snprintf( s, sizeof( s ), "VER %d MSNP14 CVR0\r\n", ++md->trId );
    7676        if( msn_write( ic, s, strlen( s ) ) )
    7777        {
     
    113113        if( strcmp( cmd[0], "VER" ) == 0 )
    114114        {
    115                 if( cmd[2] && strncmp( cmd[2], "MSNP8", 5 ) != 0 )
     115                if( cmd[2] && strncmp( cmd[2], "MSNP14", 5 ) != 0 )
    116116                {
    117117                        imcb_error( ic, "Unsupported protocol" );
     
    230230                        }
    231231                }
    232                 else if( num_parts >= 7 && strcmp( cmd[2], "OK" ) == 0 )
     232                else if( strcmp( cmd[2], "OK" ) == 0 )
    233233                {
    234234                        if( num_parts == 7 )
     
    655655                        }
    656656                }
     657        }
     658        else if( strcmp( cmd[0], "GCF" ) == 0 )
     659        {
     660                /* Coming up is cmd[2] bytes of stuff we're supposed to
     661                   censore. Meh. */
     662                md->handler->msglen = atoi( cmd[2] );
    657663        }
    658664        else if( isdigit( cmd[0][0] ) )
  • protocols/msn/sb.c

    r2528cda r5fecede  
    3030#include "md5.h"
    3131#include "soap.h"
     32#include "invitation.h"
    3233
    3334static gboolean msn_sb_callback( gpointer data, gint source, b_input_condition cond );
  • protocols/msn/soap.c

    r2528cda r5fecede  
    155155        soap_req->payload = g_markup_printf_escaped( SOAP_OIM_SEND_PAYLOAD,
    156156                ic->acc->user, display_name_b64, oim->to, md->passport_token,
    157                 MSNP11_PROD_ID, md->lock_key ? : "", oim->number, oim->number, oim->msg );
     157                MSNP11_PROD_ID, md->lock_key ? md->lock_key : "",
     158                oim->number, oim->number, oim->msg );
    158159       
    159160        g_free( display_name_b64 );
  • protocols/msn/soap.h

    r2528cda r5fecede  
    7474    "Content-Transfer-Encoding: base64\r\n" \
    7575    "X-OIM-Message-Type: OfflineMessage\r\n" \
    76     "X-OIM-Run-Id: {89527393-8723-4F4F-8005-287532973298}\r\n" \
     76    "X-OIM-Run-Id: {F9A6C9DD-0D94-4E85-9CC6-F9D118CC1CAF}\r\n" \
    7777    "X-OIM-Sequence-Num: %d\r\n" \
    7878    "\r\n" \
Note: See TracChangeset for help on using the changeset viewer.