comparison libfaim/aim_login.c @ 412:ad08e67ec874

[gaim-migrate @ 422] A woman went to her doctor for advice. She told him that her husband had developed a penchant for anal sex, and she was not sure that it was such a good idea. The doctor asked, "Do you enjoy it?" She said that she did. He asked, "Does it hurt you?" She said that it didn't. The doctor then told her, "Well, then, there's no reason that you shouldn't practice anal sex, if that's what you like, so long as you take care not to get pregnant." The woman was mystified. She asked "You can get pregnant from anal sex?" The doctor replied, "Of course. Where do you think attorneys come from?" committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 16 Jun 2000 09:29:36 +0000
parents f3c8d79688db
children e4c34ca88d9b
comparison
equal deleted inserted replaced
411:a330017b3aa4 412:ad08e67ec874
166 else 166 else
167 aim_encode_password(password, password_encoded); 167 aim_encode_password(password, password_encoded);
168 curbyte += aimutil_putstr(newpacket->data+curbyte, password_encoded, strlen(password)); 168 curbyte += aimutil_putstr(newpacket->data+curbyte, password_encoded, strlen(password));
169 free(password_encoded); 169 free(password_encoded);
170 170
171 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x0016, 0x010a /*0x0004*/);
172
173 if (strlen(clientinfo->clientstring)) { 171 if (strlen(clientinfo->clientstring)) {
174 curbyte += aimutil_put16(newpacket->data+curbyte, 0x0003); 172 curbyte += aimutil_put16(newpacket->data+curbyte, 0x0003);
175 curbyte += aimutil_put16(newpacket->data+curbyte, strlen(clientinfo->clientstring)); 173 curbyte += aimutil_put16(newpacket->data+curbyte, strlen(clientinfo->clientstring));
176 curbyte += aimutil_putstr(newpacket->data+curbyte, clientinfo->clientstring, strlen(clientinfo->clientstring)); 174 curbyte += aimutil_putstr(newpacket->data+curbyte, clientinfo->clientstring, strlen(clientinfo->clientstring));
177 } 175 }
176 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x0016, /*0x010a*/ 0x0004);
178 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x0017, clientinfo->major /*0x0001*/); 177 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x0017, clientinfo->major /*0x0001*/);
179 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x0018, clientinfo->minor /*0x0001*/); 178 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x0018, clientinfo->minor /*0x0001*/);
180 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x0019, 0x0001); 179 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x0019, 0x0001);
181 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x001a, clientinfo->build /*0x0013*/); 180 curbyte += aim_puttlv_16(newpacket->data+curbyte, 0x001a, clientinfo->build /*0x0013*/);
182 181
183 curbyte += aim_puttlv_32(newpacket->data+curbyte, 0x0014, 0x00000055); 182 curbyte += aim_puttlv_32(newpacket->data+curbyte, 0x0014, 0x00000055);
184 183
184 if (strlen(clientinfo->lang)) {
185 curbyte += aimutil_put16(newpacket->data+curbyte, 0x000f);
186 curbyte += aimutil_put16(newpacket->data+curbyte, strlen(clientinfo->lang));
187 curbyte += aimutil_putstr(newpacket->data+curbyte, clientinfo->lang, strlen(clientinfo->lang));
188 }
189
185 if (strlen(clientinfo->country)) { 190 if (strlen(clientinfo->country)) {
186 curbyte += aimutil_put16(newpacket->data+curbyte, 0x000e); 191 curbyte += aimutil_put16(newpacket->data+curbyte, 0x000e);
187 curbyte += aimutil_put16(newpacket->data+curbyte, strlen(clientinfo->country)); 192 curbyte += aimutil_put16(newpacket->data+curbyte, strlen(clientinfo->country));
188 curbyte += aimutil_putstr(newpacket->data+curbyte, clientinfo->country, strlen(clientinfo->country)); 193 curbyte += aimutil_putstr(newpacket->data+curbyte, clientinfo->country, strlen(clientinfo->country));
189 }
190 if (strlen(clientinfo->lang)) {
191 curbyte += aimutil_put16(newpacket->data+curbyte, 0x000f);
192 curbyte += aimutil_put16(newpacket->data+curbyte, strlen(clientinfo->lang));
193 curbyte += aimutil_putstr(newpacket->data+curbyte, clientinfo->lang, strlen(clientinfo->lang));
194 } 194 }
195 195
196 #endif 196 #endif
197 197
198 newpacket->lock = 0; 198 newpacket->lock = 0;
216 * 216 *
217 */ 217 */
218 int aim_encode_password(const char *password, u_char *encoded) 218 int aim_encode_password(const char *password, u_char *encoded)
219 { 219 {
220 u_char encoding_table[] = { 220 u_char encoding_table[] = {
221 #if 0
221 0xf3, 0xb3, 0x6c, 0x99, 222 0xf3, 0xb3, 0x6c, 0x99,
222 0x95, 0x3f, 0xac, 0xb6, 223 0x95, 0x3f, 0xac, 0xb6,
223 0xc5, 0xfa, 0x6b, 0x63, 224 0xc5, 0xfa, 0x6b, 0x63,
224 0x69, 0x6c, 0xc3, 0x9f 225 0x69, 0x6c, 0xc3, 0x9f
226 #else
227 0xf3, 0x26, 0x81, 0xc4,
228 0x39, 0x86, 0xdb, 0x92,
229 0x71, 0xa3, 0xb9, 0xe6,
230 0x53, 0x7a, 0x95, 0x7c
231 #endif
225 }; 232 };
226 233
227 int i; 234 int i;
228 235
229 for (i = 0; i < strlen(password); i++) 236 for (i = 0; i < strlen(password); i++)