Mercurial > pidgin.yaz
comparison src/protocols/oscar/email.c @ 7282:ad243bc63184
[gaim-migrate @ 7861]
Mostly this is my usual blah clean-up/changes.
I started merging that icq sms patch, but I'm not comfortable
with much of it...
I also made AIM have 6 login steps instead of 2. The first
few go pretty quickly though. I'll probably work on this
more later, but I'm going to sleep now.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 16 Oct 2003 06:12:43 +0000 |
parents | 6d3d8f11e765 |
children | ceda503e55a6 |
comparison
equal
deleted
inserted
replaced
7281:0f7dd6715a90 | 7282:ad243bc63184 |
---|---|
16 * | 16 * |
17 * @param sess The oscar session. | 17 * @param sess The oscar session. |
18 * @param conn The email connection for this session. | 18 * @param conn The email connection for this session. |
19 * @return Return 0 if no errors, otherwise return the error number. | 19 * @return Return 0 if no errors, otherwise return the error number. |
20 */ | 20 */ |
21 faim_export int aim_email_sendcookies(aim_session_t *sess, aim_conn_t *conn) | 21 faim_export int aim_email_sendcookies(aim_session_t *sess) |
22 { | 22 { |
23 aim_conn_t *conn; | |
23 aim_frame_t *fr; | 24 aim_frame_t *fr; |
24 aim_snacid_t snacid; | 25 aim_snacid_t snacid; |
25 | 26 |
26 if (!sess || !conn) | 27 if (!sess || !(conn = aim_conn_findbygroup(sess, AIM_CB_FAM_EML))) |
27 return -EINVAL; | 28 return -EINVAL; |
28 | 29 |
29 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+2+16+16))) | 30 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+2+16+16))) |
30 return -ENOMEM; | 31 return -ENOMEM; |
31 snacid = aim_cachesnac(sess, 0x0018, 0x0006, 0x0000, NULL, 0); | 32 snacid = aim_cachesnac(sess, 0x0018, 0x0006, 0x0000, NULL, 0); |
138 * | 139 * |
139 * @param sess The oscar session. | 140 * @param sess The oscar session. |
140 * @param conn The email connection for this session. | 141 * @param conn The email connection for this session. |
141 * @return Return 0 if no errors, otherwise return the error number. | 142 * @return Return 0 if no errors, otherwise return the error number. |
142 */ | 143 */ |
143 faim_export int aim_email_activate(aim_session_t *sess, aim_conn_t *conn) | 144 faim_export int aim_email_activate(aim_session_t *sess) |
144 { | 145 { |
146 aim_conn_t *conn; | |
145 aim_frame_t *fr; | 147 aim_frame_t *fr; |
146 aim_snacid_t snacid; | 148 aim_snacid_t snacid; |
147 | 149 |
148 if (!sess || !conn) | 150 if (!sess || !(conn = aim_conn_findbygroup(sess, AIM_CB_FAM_EML))) |
149 return -EINVAL; | 151 return -EINVAL; |
150 | 152 |
151 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+1+16))) | 153 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+1+16))) |
152 return -ENOMEM; | 154 return -ENOMEM; |
153 snacid = aim_cachesnac(sess, 0x0018, 0x0016, 0x0000, NULL, 0); | 155 snacid = aim_cachesnac(sess, 0x0018, 0x0016, 0x0000, NULL, 0); |