Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/adhoccommands.h @ 17611:feac55968392
Now all ad-hoc commands have to be sent through jabber_adhoc_execute to be properly executed (including the form steps). This cleans up the code a bit, and avoids DOS attacks by flooding the client with malicious ad-hoc command forms that were not requested.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Mon, 25 Jun 2007 20:07:31 +0000 |
parents | 9a19c46adf66 |
children | ae41d8e827e3 |
comparison
equal
deleted
inserted
replaced
17610:9a19c46adf66 | 17611:feac55968392 |
---|---|
24 | 24 |
25 #include "jabber.h" | 25 #include "jabber.h" |
26 | 26 |
27 /* Implementation of XEP-0050 */ | 27 /* Implementation of XEP-0050 */ |
28 | 28 |
29 void jabber_adhoc_parse(JabberStream *js, xmlnode *packet); | |
30 | |
31 void jabber_adhoc_disco_result_cb(JabberStream *js, xmlnode *packet, gpointer data); | 29 void jabber_adhoc_disco_result_cb(JabberStream *js, xmlnode *packet, gpointer data); |
32 | 30 |
33 void jabber_adhoc_execute(PurpleBlistNode *node, gpointer data); | 31 void jabber_adhoc_execute(JabberStream *js, JabberAdHocCommands *cmd); |
32 | |
33 void jabber_adhoc_execute_action(PurpleBlistNode *node, gpointer data); | |
34 | 34 |
35 void jabber_adhoc_server_get_list(JabberStream *js); | 35 void jabber_adhoc_server_get_list(JabberStream *js); |
36 | 36 |
37 void jabber_adhoc_init_server_commands(JabberStream *js, GList **m); | 37 void jabber_adhoc_init_server_commands(JabberStream *js, GList **m); |
38 | 38 |