diff libpurple/protocols/myspace/myspace.h @ 27155:8cb0f676c70d

Fix a few problems with our myspace login response: * email address should include the null terminator * we should add padding * don't send an incorrect ip address (instead, send nothing)
author Mark Doliner <mark@kingant.net>
date Tue, 23 Jun 2009 05:53:14 +0000
parents 5fbcfcbd6551
children e4b0bf56667f
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h	Tue Jun 23 05:40:34 2009 +0000
+++ b/libpurple/protocols/myspace/myspace.h	Tue Jun 23 05:53:14 2009 +0000
@@ -140,6 +140,7 @@
 /* Recognized challenge length */
 #define MSIM_AUTH_CHALLENGE_LENGTH  0x40
 
+#ifdef SEND_OUR_IP_ADDRESSES
 /* TODO: obtain IPs of network interfaces from user's machine, instead of
  * hardcoding these values below (used in msim_compute_login_response).
  * This is not immediately
@@ -152,6 +153,7 @@
 
 #define MSIM_LOGIN_IP_LIST  "\x00\x00\x00\x00\x05\x7f\x00\x00\x01\x00\x00\x00\x00\x0a\x00\x00\x40\xc0\xa8\x58\x01\xc0\xa8\x3c\x01"
 #define MSIM_LOGIN_IP_LIST_LEN         25
+#endif /* SEND_OUR_IP_ADDRESSES */
 
 /* Indexes into status string (0|1|2|3|..., but 0 always empty) */
 #define MSIM_STATUS_ORDINAL_EMPTY       0