| 110 |
110 |
| 111 /* |
111 /* |
| 112 * Standard size of an AIM authorization cookie |
112 * Standard size of an AIM authorization cookie |
| 113 */ |
113 */ |
| 114 #define AIM_COOKIELEN 0x100 |
114 #define AIM_COOKIELEN 0x100 |
| |
115 |
| |
116 #define AIM_MD5_STRING "AOL Instant Messenger (SM)" |
| 115 |
117 |
| 116 #if debug > 0 |
118 #if debug > 0 |
| 117 #define faimdprintf(l, x...) {if (l >= debug) printf(x); } |
119 #define faimdprintf(l, x...) {if (l >= debug) printf(x); } |
| 118 #else |
120 #else |
| 119 #define faimdprintf(l, x...) |
121 #define faimdprintf(l, x...) |
| 397 struct aim_fileheader_t *aim_oft_getfh(char *hdr); |
399 struct aim_fileheader_t *aim_oft_getfh(char *hdr); |
| 398 |
400 |
| 399 /* aim_login.c */ |
401 /* aim_login.c */ |
| 400 int aim_sendconnack(struct aim_session_t *sess, struct aim_conn_t *conn); |
402 int aim_sendconnack(struct aim_session_t *sess, struct aim_conn_t *conn); |
| 401 int aim_request_login (struct aim_session_t *sess, struct aim_conn_t *conn, char *sn); |
403 int aim_request_login (struct aim_session_t *sess, struct aim_conn_t *conn, char *sn); |
| 402 int aim_send_login (struct aim_session_t *, struct aim_conn_t *, char *, char *, struct client_info_s *); |
404 int aim_send_login (struct aim_session_t *, struct aim_conn_t *, char *, char *, struct client_info_s *, char *key); |
| 403 int aim_encode_password(const char *, u_char *); |
|
| 404 int aimicq_encode_password(const char *password, u_char *encoded); |
|
| 405 unsigned long aim_sendauthresp(struct aim_session_t *sess, |
405 unsigned long aim_sendauthresp(struct aim_session_t *sess, |
| 406 struct aim_conn_t *conn, |
406 struct aim_conn_t *conn, |
| 407 char *sn, char *bosip, |
407 char *sn, char *bosip, |
| 408 char *cookie, char *email, |
408 char *cookie, char *email, |
| 409 int regstatus); |
409 int regstatus); |
| 410 int aim_gencookie(unsigned char *buf); |
410 int aim_gencookie(unsigned char *buf); |
| 411 int aim_sendserverready(struct aim_session_t *sess, struct aim_conn_t *conn); |
411 int aim_sendserverready(struct aim_session_t *sess, struct aim_conn_t *conn); |
| |
412 int aim_authkeyparse(struct aim_session_t *sess, struct command_rx_struct *command); |
| 412 unsigned long aim_sendredirect(struct aim_session_t *sess, |
413 unsigned long aim_sendredirect(struct aim_session_t *sess, |
| 413 struct aim_conn_t *conn, |
414 struct aim_conn_t *conn, |
| 414 unsigned short servid, |
415 unsigned short servid, |
| 415 char *ip, |
416 char *ip, |
| 416 char *cookie); |
417 char *cookie); |