# HG changeset patch # User Mike Ruprecht # Date 1237258123 0 # Node ID abcc94ace5eac78ce7bcd3076475356ef9013938 # Parent 583d211a956aeff861bd6b5eda17f2caff2f5788 Update to be closer to the current Jingle XEP. diff -r 583d211a956a -r abcc94ace5ea libpurple/protocols/jabber/jingle/jingle.c --- a/libpurple/protocols/jabber/jingle/jingle.c Tue Mar 17 02:19:10 2009 +0000 +++ b/libpurple/protocols/jabber/jingle/jingle.c Tue Mar 17 02:48:43 2009 +0000 @@ -177,6 +177,12 @@ } static void +jingle_handle_security_info(JingleSession *session, xmlnode *jingle) +{ + jabber_iq_send(jingle_session_create_ack(session, jingle)); +} + +static void jingle_handle_session_accept(JingleSession *session, xmlnode *jingle) { xmlnode *content = xmlnode_get_child(jingle, "content"); @@ -321,6 +327,7 @@ {"content-reject", jingle_handle_content_reject}, {"content-remove", jingle_handle_content_remove}, {"description-info", jingle_handle_description_info}, + {"security-info", jingle_handle_security_info}, {"session-accept", jingle_handle_session_accept}, {"session-info", jingle_handle_session_info}, {"session-initiate", jingle_handle_session_initiate}, diff -r 583d211a956a -r abcc94ace5ea libpurple/protocols/jabber/jingle/jingle.h --- a/libpurple/protocols/jabber/jingle/jingle.h Tue Mar 17 02:19:10 2009 +0000 +++ b/libpurple/protocols/jabber/jingle/jingle.h Tue Mar 17 02:48:43 2009 +0000 @@ -30,7 +30,7 @@ extern "C" { #endif -#define JINGLE "urn:xmpp:jingle:0" +#define JINGLE "urn:xmpp:jingle:1" #define JINGLE_ERROR "urn:xmpp:jingle:errors:0" #define JINGLE_APP_FT "urn:xmpp:jingle:apps:file-transfer:1" #define JINGLE_APP_RTP "urn:xmpp:jingle:apps:rtp:1" @@ -53,6 +53,7 @@ JINGLE_CONTENT_REJECT, JINGLE_CONTENT_REMOVE, JINGLE_DESCRIPTION_INFO, + JINGLE_SECURITY_INFO, JINGLE_SESSION_ACCEPT, JINGLE_SESSION_INFO, JINGLE_SESSION_INITIATE,