comparison libpurple/protocols/myspace/myspace.h @ 27590:a08e84032814

merge of '2348ff22f0ff3453774b8b25b36238465580c609' and 'e76f11543c2a4aa05bdf584f087cbe3439029661'
author Paul Aurich <paul@darkrain42.org>
date Sun, 12 Jul 2009 05:43:38 +0000
parents 8cb0f676c70d
children e4b0bf56667f
comparison
equal deleted inserted replaced
27104:048bcf41deef 27590:a08e84032814
125 #define NONCE_SIZE 0x20 /**< Half of decoded 'nc' field */ 125 #define NONCE_SIZE 0x20 /**< Half of decoded 'nc' field */
126 #define MSIM_READ_BUF_SIZE (15 * 1024) /**< Receive buffer size */ 126 #define MSIM_READ_BUF_SIZE (15 * 1024) /**< Receive buffer size */
127 #define MSIM_FINAL_STRING "\\final\\" /**< Message end marker */ 127 #define MSIM_FINAL_STRING "\\final\\" /**< Message end marker */
128 128
129 /* Messages */ 129 /* Messages */
130 #define MSIM_BM_DELAYABLE_ACTION_OR_IM 1 130 #define MSIM_BM_ACTION_OR_IM_DELAYABLE 1
131 #define MSIM_BM_STATUS 100 131 #define MSIM_BM_STATUS 100
132 #define MSIM_BM_INSTANT_ACTION_OR_IM 121 132 #define MSIM_BM_ACTION_OR_IM_INSTANT 121
133 #define MSIM_BM_MEDIA 122 133 #define MSIM_BM_MEDIA 122
134 #define MSIM_BM_PROFILE 124 134 #define MSIM_BM_PROFILE 124
135 #define MSIM_BM_UNOFFICIAL_CLIENT 200 135 #define MSIM_BM_UNOFFICIAL_CLIENT 200
136 136
137 /* Authentication algorithm for login2 */ 137 /* Authentication algorithm for login2 */
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