comparison 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
comparison
equal deleted inserted replaced
27154:5fbcfcbd6551 27155:8cb0f676c70d
138 #define MSIM_AUTH_ALGORITHM 196610 138 #define MSIM_AUTH_ALGORITHM 196610
139 139
140 /* Recognized challenge length */ 140 /* Recognized challenge length */
141 #define MSIM_AUTH_CHALLENGE_LENGTH 0x40 141 #define MSIM_AUTH_CHALLENGE_LENGTH 0x40
142 142
143 #ifdef SEND_OUR_IP_ADDRESSES
143 /* TODO: obtain IPs of network interfaces from user's machine, instead of 144 /* TODO: obtain IPs of network interfaces from user's machine, instead of
144 * hardcoding these values below (used in msim_compute_login_response). 145 * hardcoding these values below (used in msim_compute_login_response).
145 * This is not immediately 146 * This is not immediately
146 * important because you can still connect and perform basic 147 * important because you can still connect and perform basic
147 * functions of the protocol. There is also a high chance that the addreses 148 * functions of the protocol. There is also a high chance that the addreses
150 * kind of direct connection, or file transfer functionality. 151 * kind of direct connection, or file transfer functionality.
151 */ 152 */
152 153
153 #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" 154 #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"
154 #define MSIM_LOGIN_IP_LIST_LEN 25 155 #define MSIM_LOGIN_IP_LIST_LEN 25
156 #endif /* SEND_OUR_IP_ADDRESSES */
155 157
156 /* Indexes into status string (0|1|2|3|..., but 0 always empty) */ 158 /* Indexes into status string (0|1|2|3|..., but 0 always empty) */
157 #define MSIM_STATUS_ORDINAL_EMPTY 0 159 #define MSIM_STATUS_ORDINAL_EMPTY 0
158 #define MSIM_STATUS_ORDINAL_UNKNOWNs 1 160 #define MSIM_STATUS_ORDINAL_UNKNOWNs 1
159 #define MSIM_STATUS_ORDINAL_ONLINE 2 161 #define MSIM_STATUS_ORDINAL_ONLINE 2