Changeset e5a8118


Ignore:
Timestamp:
2010-03-20T17:27:23Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ffb6dea
Parents:
21029d0
Message:

Added soap.c with a fairly reusable SOAP framework and simple code for
sending offline messages. It works somewhat, just that Pidgin shows the
messages as empty. :-(

Location:
protocols/msn
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/Makefile

    r21029d0 re5a8118  
    1010
    1111# [SH] Program variables
    12 objects = msn.o msn_util.o ns.o passport.o sb.o tables.o
     12objects = msn.o msn_util.o ns.o passport.o sb.o soap.o tables.o
    1313
    1414CFLAGS += -Wall
  • protocols/msn/msn.c

    r21029d0 re5a8118  
    9999                        g_free( md->grouplist[--md->groupcount] );
    100100                g_free( md->grouplist );
     101               
     102                g_free( md->passport_token );
    101103               
    102104                g_free( md );
  • protocols/msn/msn.h

    r21029d0 re5a8118  
    4242
    4343/* This should be MSN Messenger 7.0.0813 */
    44 #define MSNP11_PROD_KEY "CFHUR$52U_{VIX5T"
    45 #define MSNP11_PROD_ID  "PROD0101{0RM?UBW"
     44//#define MSNP11_PROD_KEY "CFHUR$52U_{VIX5T"
     45//#define MSNP11_PROD_ID  "PROD0101{0RM?UBW"
     46
     47#define MSNP11_PROD_KEY "O4BG@C7BWLYQX?5G"
     48#define MSNP11_PROD_ID  "PROD01065C%ZFN6F"
    4649
    4750#define MSN_SB_NEW         -24062002
     
    6871       
    6972        int trId;
     73        char *passport_token;
     74        char *lock_key;
    7075       
    7176        GSList *msgq;
  • protocols/msn/ns.c

    r21029d0 re5a8118  
    737737                char buf[1024];
    738738               
     739                md->passport_token = g_strdup( mad->token );
     740               
    739741                g_snprintf( buf, sizeof( buf ), "USR %d TWN S %s\r\n", ++md->trId, mad->token );
    740742                msn_write( ic, buf, strlen( buf ) );
  • protocols/msn/sb.c

    r21029d0 re5a8118  
    2929#include "passport.h"
    3030#include "md5.h"
     31#include "soap.h"
    3132
    3233static gboolean msn_sb_callback( gpointer data, gint source, b_input_condition cond );
     
    606607                const struct msn_status_code *err = msn_status_by_number( num );
    607608               
     609                if( num == 217 )
     610                {
     611                        GSList *l;
     612                       
     613                        for( l = sb->msgq; l; l = l->next )
     614                        {
     615                                struct msn_message *m = l->data;
     616                                msn_soap_oim_send( ic, m->who, m->text );
     617                        }
     618                }
     619               
    608620                imcb_error( ic, "Error reported by switchboard server: %s", err->text );
    609621               
Note: See TracChangeset for help on using the changeset viewer.