Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/si.c @ 23365:576528012cce
Don't impose a restriction on who you can send files to for XMPP.
This allows file transfers to arbitrary chat users (if you know their JID and
they know yours).
File transfers in chats where you don't know the real JID will fail because the
SOCKS5 DST.ADDR hash will not match on both clients (I can't see a way around
this issue right now).
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 14 Jun 2008 01:09:29 +0000 |
parents | bc3ecda40397 |
children | 05802d915c13 |
comparison
equal
deleted
inserted
replaced
23364:30b5f145a0f7 | 23365:576528012cce |
---|---|
804 } else | 804 } else |
805 portnum = 7777; | 805 portnum = 7777; |
806 | 806 |
807 g_snprintf(port, sizeof(port), "%hu", portnum); | 807 g_snprintf(port, sizeof(port), "%hu", portnum); |
808 | 808 |
809 purple_debug_info("jabber", "jabber_si_xfer_bytestreams_listen_cb() will be looking at jsx %p: jsx->streamhosts %p and ft_proxy_list[%i] %p", | 809 purple_debug_info("jabber", "jabber_si_xfer_bytestreams_listen_cb() will be looking at jsx %p: jsx->streamhosts %p and ft_proxy_list[%i] %p\n", |
810 jsx, jsx->streamhosts, i, ft_proxy_list[i]); | 810 jsx, jsx->streamhosts, i, ft_proxy_list[i]); |
811 if(g_list_find_custom(jsx->streamhosts, ft_proxy_list[i], jabber_si_compare_jid) != NULL) | 811 if(g_list_find_custom(jsx->streamhosts, ft_proxy_list[i], jabber_si_compare_jid) != NULL) |
812 continue; | 812 continue; |
813 | 813 |
814 streamhost = xmlnode_new_child(query, "streamhost"); | 814 streamhost = xmlnode_new_child(query, "streamhost"); |
1210 JabberStream *js; | 1210 JabberStream *js; |
1211 | 1211 |
1212 PurpleXfer *xfer; | 1212 PurpleXfer *xfer; |
1213 | 1213 |
1214 js = gc->proto_data; | 1214 js = gc->proto_data; |
1215 | |
1216 if(!purple_find_buddy(gc->account, who) || !jabber_buddy_find(js, who, FALSE)) | |
1217 return; | |
1218 | 1215 |
1219 xfer = jabber_si_new_xfer(gc, who); | 1216 xfer = jabber_si_new_xfer(gc, who); |
1220 | 1217 |
1221 if (file) | 1218 if (file) |
1222 purple_xfer_request_accepted(xfer, file); | 1219 purple_xfer_request_accepted(xfer, file); |