Changeset be7a180 for protocols/msn
- Timestamp:
- 2010-08-12T22:38:30Z (14 years ago)
- Branches:
- master
- Children:
- b46769d
- Parents:
- ca7de3a
- Location:
- protocols/msn
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.h
rca7de3a rbe7a180 39 39 #endif 40 40 41 #define QRY_NAME "msmsgs@msnmsgr.com" 42 #define QRY_CODE "Q1P7W2E4J9R8U3S5" 43 44 /* This should be MSN Messenger 7.0.0813 */ 45 //#define MSNP11_PROD_KEY "CFHUR$52U_{VIX5T" 46 //#define MSNP11_PROD_ID "PROD0101{0RM?UBW" 47 41 /* This should be MSN Messenger 7.0.0813 42 #define MSNP11_PROD_KEY "CFHUR$52U_{VIX5T" 43 #define MSNP11_PROD_ID "PROD0101{0RM?UBW" 44 */ 45 46 /* Some other version. 48 47 #define MSNP11_PROD_KEY "O4BG@C7BWLYQX?5G" 49 48 #define MSNP11_PROD_ID "PROD01065C%ZFN6F" 49 */ 50 51 #define MSNP11_PROD_KEY "RG@XY*28Q5QHS%Q5" 52 #define MSNP11_PROD_ID "PROD0113H11T8$X_" 50 53 51 54 #define MSN_SB_NEW -24062002 -
protocols/msn/ns.c
rca7de3a rbe7a180 293 293 else if( strcmp( cmd[0], "CHL" ) == 0 ) 294 294 { 295 md5_state_t state; 296 md5_byte_t digest[16]; 297 int i; 298 299 if( num_parts != 3 ) 300 { 301 imcb_error( ic, "Syntax error" ); 302 imc_logout( ic, TRUE ); 303 return( 0 ); 304 } 305 306 md5_init( &state ); 307 md5_append( &state, (const md5_byte_t *) cmd[2], strlen( cmd[2] ) ); 308 md5_append( &state, (const md5_byte_t *) QRY_CODE, strlen( QRY_CODE ) ); 309 md5_finish( &state, digest ); 310 311 g_snprintf( buf, sizeof( buf ), "QRY %d %s %d\r\n", ++md->trId, QRY_NAME, 32 ); 312 for( i = 0; i < 16; i ++ ) 313 g_snprintf( buf + strlen( buf ), 3, "%02x", digest[i] ); 295 char *resp; 296 297 if( num_parts < 3 ) 298 { 299 imcb_error( ic, "Syntax error" ); 300 imc_logout( ic, TRUE ); 301 return( 0 ); 302 } 303 304 resp = msn_p11_challenge( cmd[2] ); 305 g_snprintf( buf, sizeof( buf ), "QRY %d %s %zd\r\n%s", 306 ++md->trId, MSNP11_PROD_ID, 307 strlen( resp ), resp ); 308 g_free( resp ); 314 309 315 310 return( msn_write( ic, buf, strlen( buf ) ) ); … … 581 576 censore. Meh. */ 582 577 md->handler->msglen = atoi( cmd[2] ); 578 } 579 else if( strcmp( cmd[0], "UBX" ) == 0 ) 580 { 581 /* Status message. Parser coming soon. */ 582 if( num_parts >= 4 ) 583 md->handler->msglen = atoi( cmd[3] ); 583 584 } 584 585 else if( isdigit( cmd[0][0] ) )
Note: See TracChangeset
for help on using the changeset viewer.