| 50 curbyte += aimutil_put16(newpacket->data+curbyte, 0x0001); |
50 curbyte += aimutil_put16(newpacket->data+curbyte, 0x0001); |
| 51 curbyte += aimutil_put16(newpacket->data+curbyte, 0x0001); |
51 curbyte += aimutil_put16(newpacket->data+curbyte, 0x0001); |
| 52 |
52 |
| 53 aim_tx_enqueue(sess, newpacket); |
53 aim_tx_enqueue(sess, newpacket); |
| 54 |
54 |
| 55 { |
55 aim_cachesnac(sess, 0x0001, 0x0004, 0x0000, NULL, 0); |
| 56 struct aim_snac_t snac; |
|
| 57 |
|
| 58 snac.id = sess->snac_nextid; |
|
| 59 snac.family = 0x0001; |
|
| 60 snac.type = 0x0004; |
|
| 61 snac.flags = 0x0000; |
|
| 62 |
56 |
| 63 snac.data = NULL; |
57 return sess->snac_nextid; |
| 64 |
|
| 65 aim_newsnac(sess, &snac); |
|
| 66 } |
|
| 67 |
|
| 68 return (sess->snac_nextid++); |
|
| 69 } |
58 } |
| 70 |
59 |
| 71 faim_export unsigned long aim_auth_changepasswd(struct aim_session_t *sess, |
60 faim_export unsigned long aim_auth_changepasswd(struct aim_session_t *sess, |
| 72 struct aim_conn_t *conn, |
61 struct aim_conn_t *conn, |
| 73 char *new, char *current) |
62 char *new, char *current) |
| 88 /* new password TLV t(0012) */ |
77 /* new password TLV t(0012) */ |
| 89 i += aim_puttlv_str(newpacket->data+i, 0x0012, strlen(new), new); |
78 i += aim_puttlv_str(newpacket->data+i, 0x0012, strlen(new), new); |
| 90 |
79 |
| 91 aim_tx_enqueue(sess, newpacket); |
80 aim_tx_enqueue(sess, newpacket); |
| 92 |
81 |
| 93 { |
82 aim_cachesnac(sess, 0x0001, 0x0004, 0x0000, NULL, 0); |
| 94 struct aim_snac_t snac; |
|
| 95 |
|
| 96 snac.id = sess->snac_nextid; |
|
| 97 snac.family = 0x0001; |
|
| 98 snac.type = 0x0004; |
|
| 99 snac.flags = 0x0000; |
|
| 100 |
83 |
| 101 snac.data = NULL; |
84 return sess->snac_nextid; |
| 102 |
|
| 103 aim_newsnac(sess, &snac); |
|
| 104 } |
|
| 105 |
|
| 106 return (sess->snac_nextid++); |
|
| 107 } |
85 } |