summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-25wocky_data_form_field_cmp: cope with var being NULLWill Thompson1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=61433
2013-02-22WockyConnector: reduce duplicated code to complete resultWill Thompson1-22/+20
Notice that some of the paths set priv->result to NULL before completing it, and some do not. I particularly like the one in establish_session_recv_cb which assigns priv->result to a tmp variable but forgets to set priv->result to NULL! I hoped this would make the connector re-usable between successful connection attempts, but it doesn't because priv->conn is not cleared out so it crashes when the stream is establed the second time you call wocky_connector_connect_async(). At least all the code paths crash consistently now, though! (Previously if you had connected to a pre-XMPP Jabber server, wocky_connector_connect_async() did not immediately reject a second call and would crash later in the same way this now does.)
2013-02-22connector-test: use properly-named variables.Will Thompson1-9/+9
This made the assertion that failed confusing: the message was about 'identity', but it was actually a test of the 'resource' property.
2013-02-22Fix wocky-connector-testWill Thompson1-2/+4
I changed the default value for WockyConnector:resource to NULL in 5fb069a, but didn't update the test accordingly.
2013-02-22receive-messages example: add a --resource parameterWill Thompson1-2/+5
2013-02-22Connector: don't try to generate a random resourceWill Thompson1-4/+4
Previously, there was no way to leave the resource entirely up to the server: while the binding code deals correctly with priv->resource being NULL, it was impossible to make it NULL. But the random resource generation was broken, too: the RNG was never seeded so the resource always came out the same.
2013-02-20muc: include GError and type in both error signalsWill Thompson1-14/+15
2013-02-20WockyXmppError: update to RFC 6120Will Thompson2-4/+26
The changes are: * payment-required is removed; * not-authorized is added to the schema (it was already defined in Wocky); * policy-violation is added. XEP-0086 doesn't define an error code mapping for it, so I chose 406 "Not Acceptable".
2013-02-20Correctly extract type='' from unrecognised errorsWill Thompson2-2/+58
2013-02-20tests: define bug base in test_init().Will Thompson2-1/+1
2013-02-15muc: remove prototypes for nonexistant initiate_{async,finish}Will Thompson1-10/+0
2013-02-15Muc: document a load of thingsWill Thompson2-30/+148
Lots of the signals had inline comments describing their parameter lists, but no gtk-doc comments.
2013-02-14Make (more of) WockyMuc docs appearWill Thompson1-5/+6
Astonishingly, putting the instance struct before the class struct makes WockyMuc's signals and properties show up in the generated documentation.
2013-02-13Add vcard namespace constants.Will Thompson1-0/+2
2013-02-13Fix reference to wocky_porter_register_handler()Will Thompson1-6/+9
This was renamed to wocky_porter_register_handler_from(), but its documentation was not updated. Also, the arguments to the function were wrong: there was a NULL where the JID should be, and the JID appeared later in the wrong place. While we're here, fix some formatting earlier on in the same comment. I think using &commat; rather than the <!-- --> trick is more legible.
2013-02-13Fix docs for plural WockyStanzasWill Thompson3-3/+3
2013-01-22connector-test: avoid using system-wide CAsWill Thompson1-0/+4
This shouldn't affect the outcome of the tests, because we don't check with any certificates signed by system-wide CAs. But just for completeness... Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2013-01-22TLSHandler: improve documentation.Will Thompson1-8/+29
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2013-01-22examples: add --ignore-ssl-errorsWill Thompson2-6/+52
Just for the sake of people testing against localhost. Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2013-01-22TLSHandler: add API to forget all CA pathsWill Thompson2-0/+19
Now that Wocky uses the system-wide CA path by default, let's provide a way to turn that off if you have some weird requirement. Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2013-01-22Find and use a sensible default CA certificate pathWill Thompson2-11/+48
This is taken from Gabble, and makes Wocky's certificate checking work out of the box. Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2013-01-22dump-certificates: remove "bye, bye" from outputWill Thompson1-1/+0
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2013-01-22TLSConnector, TLSHandler: don't ignore SSL errors by defaultWill Thompson2-2/+2
If you don't specify a WockyTLSHandler for your WockyConnector, then WockyTLSConnector creates one for itself. Previously, it defaulted to silently ignoring SSL errors. Whoops. Gabble is not affected by this issue, because it provides its own TLSHandler, and it defaults to telling it to fail on SSL errors. Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2013-01-18Improve wocky_{decode,compose}_jid documentationWill Thompson1-14/+16
These days, JIDs are defined in RFC 6122.
2013-01-16Fix filenames in jingle headers to include wocky- prefixWill Thompson18-18/+18
This makes no functional difference, of course.
2013-01-16Replace more references to Gabble in Jingle code.Will Thompson5-10/+11
Jonny says: > I did a git grep -i gabble in your wocky tree and there are loads of > references that probably shouldn't be around anymore, like header > guards, comments listing the filename as gabble-jingle-session.c and > stuff like that. It would be nicer to have less of this.
2013-01-16Add Jingle headers to wocky.hWill Thompson20-7/+57
Some of the Jingle code itself included wocky.h, which led to include loops and sadness, so I've changed that too. I also added WOCKY_H_INSIDE and WOCKY_COMPILATION guards to the Jingle headers.
2013-01-16Prefix jingle-related files with wocky-Will Thompson23-81/+81
Jonny said on <https://bugs.freedesktop.org/show_bug.cgi?id=58198#c1>: > I see you've moved this stuff into wocky/jingle-*.[ch]. Although I > hate the "wocky-" prefix as much as anyone else, I think inconsistency > is even worse. What are your thoughts on this? I think he is correct.
2013-01-15Document ::new-candidates, ::remote-media-description and othersWill Thompson2-0/+35
2013-01-14jingle-transport-google: remove redundant media-type lookupWill Thompson1-3/+0
The 'media' variable was not used.
2013-01-14Add missing G_END_DECLS to Jingle headersWill Thompson6-0/+12
Some headers are still missing both, but having just G_BEGIN_DECLS without G_END_DECLS is asking for trouble.
2013-01-14Document JingleMediaDescription and JingleReasonWill Thompson2-0/+31
2013-01-11Document ::terminated, _terminate() and JingleStateWill Thompson2-1/+53
2013-01-10Document wocky_jingle_session_accept()Will Thompson1-0/+14
2013-01-10Enable jingle_media_rtp_set_local_media_description docstringWill Thompson1-1/+2
2013-01-09jingle: document some methodsWill Thompson2-3/+35
2013-01-08jingle-session: remove vestigial GabbleMediaSessionMode enumWill Thompson1-6/+0
2013-01-08Document WOCKY_NODE_LANGUAGEWill Thompson1-0/+1
2013-01-08docs: include jingle stuffWill Thompson1-0/+11
gtk-doc is a little confused by some of the typedefs being in jingle-types.h but his is better than nothing.
2013-01-08docs: fix including enumtype documentation.Will Thompson1-9/+1
I broke this in 9c98c48a, which switched to generating a single file with all the types.
2013-01-08Improve some Jingle docstrings.Will Thompson3-1/+41
2013-01-07JingleSession: only emit about-to-initiate onceWill Thompson1-2/+3
Previously, about-to-initiate would be emitted on every call to try_session_initiate_or_accept(), whether or not all contents were actually ready. This is relatively harmless – it's only used as a hook for sending directed presence to contacts not subscribed to us – but looked wrong and is redundant.
2012-12-20jingle-factory.h: remove stray semicolon.Will Thompson1-1/+1
GCC in pedantic mode complains "ISO C does not allow extra ';' outside of a function".
2012-12-20Install jingle-types.hWill Thompson1-0/+1
2012-12-13Add optional libsoup dependency for google:relayWill Thompson2-0/+16
Sigh.
2012-12-13Add Jingle code to build; tweak till it buildsWill Thompson11-106/+120
Aside from removing a few leftover Gabble/telepathy-glib imports, this is basically mechanical.
2012-12-13Import Gabble's Jingle code.Will Thompson22-0/+10119
This corresponds to 8bb117691 in Gabble.
2012-12-13Add a debug flag for Jingle stuff.Will Thompson2-0/+2
It's called "media" so that GABBLE_DEBUG=media will still work, if that matters to anyone.
2012-12-13Add namespaces used by the Jingle code.Will Thompson1-0/+50
I'm pretty unhappy about the quirks being added here, but there we go.
2012-12-13debug: add DEBUG_NODE()Will Thompson2-4/+39
It's used in the Jingle code I'll import shortly.