| 8 |
8 |
| 9 #define FAIM_VERSION_MAJOR 0 |
9 #define FAIM_VERSION_MAJOR 0 |
| 10 #define FAIM_VERSION_MINOR 99 |
10 #define FAIM_VERSION_MINOR 99 |
| 11 #define FAIM_VERSION_MINORMINOR 0 |
11 #define FAIM_VERSION_MINORMINOR 0 |
| 12 |
12 |
| 13 #include <faimconfig.h> |
13 #include <faim/faimconfig.h> |
| 14 #include <aim_cbtypes.h> |
14 #include <faim/aim_cbtypes.h> |
| 15 |
15 |
| 16 #ifndef FAIM_USEPTHREADS |
16 #ifndef FAIM_USEPTHREADS |
| 17 #error pthreads are currently required. |
17 #error pthreads are currently required. |
| 18 #endif |
18 #endif |
| 19 |
19 |
| 69 * as completely correct. But its a decent approximation. |
69 * as completely correct. But its a decent approximation. |
| 70 * |
70 * |
| 71 * Note that although we can send this much, its impossible |
71 * Note that although we can send this much, its impossible |
| 72 * for WinAIM clients (up through the latest (4.0.1957)) to |
72 * for WinAIM clients (up through the latest (4.0.1957)) to |
| 73 * send any more than 1kb. Amaze all your windows friends |
73 * send any more than 1kb. Amaze all your windows friends |
| 74 * with uterrly oversized instant messages! |
74 * with utterly oversized instant messages! |
| 75 * |
75 * |
| 76 */ |
76 */ |
| 77 #define MAXMSGLEN 7988 |
77 #define MAXMSGLEN 7988 |
| 78 |
78 |
| 79 /* |
79 /* |
| 327 /* aim_login.c */ |
327 /* aim_login.c */ |
| 328 int aim_sendconnack(struct aim_session_t *sess, struct aim_conn_t *conn); |
328 int aim_sendconnack(struct aim_session_t *sess, struct aim_conn_t *conn); |
| 329 int aim_request_login (struct aim_session_t *sess, struct aim_conn_t *conn, char *sn); |
329 int aim_request_login (struct aim_session_t *sess, struct aim_conn_t *conn, char *sn); |
| 330 int aim_send_login (struct aim_session_t *, struct aim_conn_t *, char *, char *, struct client_info_s *); |
330 int aim_send_login (struct aim_session_t *, struct aim_conn_t *, char *, char *, struct client_info_s *); |
| 331 int aim_encode_password(const char *, u_char *); |
331 int aim_encode_password(const char *, u_char *); |
| |
332 int aimicq_encode_password(const char *password, u_char *encoded); |
| 332 unsigned long aim_sendauthresp(struct aim_session_t *sess, |
333 unsigned long aim_sendauthresp(struct aim_session_t *sess, |
| 333 struct aim_conn_t *conn, |
334 struct aim_conn_t *conn, |
| 334 char *sn, char *bosip, |
335 char *sn, char *bosip, |
| 335 char *cookie, char *email, |
336 char *cookie, char *email, |
| 336 int regstatus); |
337 int regstatus); |
| 440 |
441 |
| 441 u_long aim_send_im(struct aim_session_t *, struct aim_conn_t *, char *, u_int, char *); |
442 u_long aim_send_im(struct aim_session_t *, struct aim_conn_t *, char *, u_int, char *); |
| 442 int aim_parse_incoming_im_middle(struct aim_session_t *, struct command_rx_struct *); |
443 int aim_parse_incoming_im_middle(struct aim_session_t *, struct command_rx_struct *); |
| 443 u_long aim_seticbmparam(struct aim_session_t *, struct aim_conn_t *conn); |
444 u_long aim_seticbmparam(struct aim_session_t *, struct aim_conn_t *conn); |
| 444 int aim_parse_msgerror_middle(struct aim_session_t *, struct command_rx_struct *); |
445 int aim_parse_msgerror_middle(struct aim_session_t *, struct command_rx_struct *); |
| |
446 int aim_negchan_middle(struct aim_session_t *sess, struct command_rx_struct *command); |
| 445 |
447 |
| 446 /* aim_info.c */ |
448 /* aim_info.c */ |
| 447 #define AIM_CAPS_BUDDYICON 0x01 |
449 #define AIM_CAPS_BUDDYICON 0x01 |
| 448 #define AIM_CAPS_VOICE 0x02 |
450 #define AIM_CAPS_VOICE 0x02 |
| 449 #define AIM_CAPS_IMIMAGE 0x04 |
451 #define AIM_CAPS_IMIMAGE 0x04 |