Dustin Sallings
d048124969
Capture the bound jid.
...
I'd kind of like to be able to discover the JID with full resource for
some operations.
2009-06-15 14:37:21 -07:00
Jack Moffitt
370a371800
Dual licensed libstrophe under MIT and GPLv3.
...
Updated copyright headers.
2009-06-15 15:26:10 -06:00
Jack Moffitt
a58b0e4b04
Patch to fix select time values from xue yong zhi <xue.yong.zhi@gmail.com> applied.
2009-05-05 13:29:01 -06:00
Jack Moffitt
2eb9847ba8
Fixed memory leak in one off handlers.
2009-04-14 15:53:04 -06:00
Jack Moffitt
398d774c59
Fixed memory leak in new parser abstraction.
2009-04-14 15:36:03 -06:00
Jack Moffitt
b522704567
Merge commit 'dustin/master'
...
* commit 'dustin/master':
Ignore test artifacts.
Ignore TAGS.
Log the result of a connect.
If an altdomain was specified, use it instead of SRV lookups.
Free the connection language.
Handle a case where the query has no namespace.
2009-04-14 14:53:29 -06:00
Jack Moffitt
20bac5b4de
Fixed small memory leak in id handler logic.
2009-04-14 14:22:34 -06:00
Dustin Sallings
690c0c1e85
Log the result of a connect.
2009-04-14 13:11:38 -07:00
Dustin Sallings
e852bfb62e
If an altdomain was specified, use it instead of SRV lookups.
...
For whatever reason, SRV lookups are hanging for me for about 30
seconds making testing suck.
2009-04-14 13:11:38 -07:00
Dustin Sallings
3156f5044f
Free the connection language.
...
This created a memory leak when freeing a connection.
2009-04-14 13:11:38 -07:00
Jack Moffitt
3fd7515dcf
Abstracted XML parser library and switched to autotools building.
...
expat is still the default parser, but libxml2 can also be used
via an option to the configure script. New parsers can easily be
added by implementing a parser_foo.c that uses the interface defined
in parser.h.
2009-04-14 13:47:20 -06:00
Pedro Melo
091f5aab71
Promote xmpp_send_raw and xmpp_send_raw_string to the public API
...
If you receive XML data to send from some place else in your app, you just want to send it.
Signed-off-by: Jack Moffitt <jack@metajack.im >
2009-01-25 10:37:58 -07:00
Pedro Melo
f27f2c5ba2
Promote xmpp_free to the public API
...
Some other APIs, like xmpp_stanza_to_text, return a point that must be freed by the caller with this API.
Signed-off-by: Jack Moffitt <jack@metajack.im >
2009-01-25 10:36:10 -07:00
Jack Moffitt
4f608fd957
First pass at fixing up OpenSSL support. It now seems to work.
2008-12-10 09:25:22 -07:00
Jack Moffitt
cb0ae178ee
Remove spurious error notices on EINTR and EAGAIN in xmpp_run_once().
2008-12-09 13:57:43 -07:00
Matthew Wild
fddd5f1245
Fix for refcount handling in stanzas, by Jack.
2008-09-18 04:13:29 +00:00
Matthew Wild
757d5bad74
+ Add xmpp_conn_get_context() to get the ctx a connection belongs to. Fixes #10
...
* Properly use altdomain when no SRV record. Fixes #2
- Remove unused function declarations from strophe.h. Fixes #1
2008-09-18 03:56:08 +00:00
Jack Moffitt
6560ef253f
Small patch to handler_fire_stanza() from Matthew Wild <mwild1@gmail.com>. prev was not advanced along with item.
2008-08-26 04:47:36 +00:00
Jack Moffitt
1c0bbb1f5d
Reverting r513. I mistakenly committed my entire tree.
2008-08-26 04:46:41 +00:00
Jack Moffitt
ade38ae188
Small patch to handler_fire_stanza() from Matthew Wild <mwild1@gmail.com>. prev was not advanced along with item.
2008-08-26 04:44:19 +00:00
Jack Moffitt
2befeee9e5
Added two new api functions, xmpp_stanza_is_text() and xmpp_stanza_is_tag() to determine the type of stanza.
2008-08-26 04:39:19 +00:00
Jack Moffitt
1054c74c4a
Fix xmpp_stanza_get_text() to work on text stanzas, and add xmpp_stanza_get_text_ptr() to optimize for data translation.
2008-08-26 04:30:05 +00:00
Jack Moffitt
2b8691f154
Documentation changes for SASL ANONYMOUS.
2008-08-24 16:09:31 +00:00
Jack Moffitt
16ad3aabf7
Implement SASL ANONYMOUS authentication.
2008-08-24 16:03:09 +00:00
Jack Moffitt
661d6571ba
Fix #3 : broken DIGEST-MD5 auth with ejabberd.
2008-08-22 16:33:30 +00:00
Jack Moffitt
3b47afaac9
Fix warnings and line endings from previous SRV commit. Get rid of domain parameter of xmpp_connect_client(). Remove usused handler.c helper left over from previous commit.
2008-07-03 05:20:59 +00:00
James Canete
561fac842c
Add linux/unix version of SRV lookup.
...
Add some extra debugging when SRV lookup fails.
2008-07-03 04:32:28 +00:00
Jack Moffitt
9454c8f29a
Replace last patch with new patch that does same thing better. This new method adds xmpp_stanza_get_child_by_ns() to the API. Implementation and copyright assigned to us by Matthew Wild <mwild1@gmail.com>.
2008-07-03 02:46:24 +00:00
Jack Moffitt
31843a423b
Implement namespace matching for immediate children. This makes the C library consistent with the JavaScript one.
2008-07-03 02:26:27 +00:00
James Canete
1c098531d8
Rewrite sock lib to not use malloc.
2008-07-03 00:26:44 +00:00
Jack Moffitt
9c49b16554
Fix examples to use new API and lots of compiler warnings.
2008-07-02 23:17:27 +00:00
Jack Moffitt
65a174ee7e
Most public API points are now documented.
2008-06-24 14:43:54 +00:00
Jack Moffitt
b6027cfd7f
Updated copyright years and fixed LLC typo.
2008-06-19 22:33:13 +00:00
James Canete
b63641f7f7
Forgot a bit of a previous commit.
...
Extend features timeout, bind timeout, and legacy timeouts to 15 seconds.
2008-06-19 22:05:31 +00:00
James Canete
ce235002c5
Fix bugs with large (>16384 bytes) sends with tls.
2008-05-14 21:09:31 +00:00
James Canete
77e3b1be77
Improve sock_connect_error(), and add manual DNS query support.
2008-05-14 21:07:50 +00:00
James Canete
6f9be5ef39
Add alternate domain and port to xmpp_client_connect() for when SRV lookups fail.
2008-05-14 20:48:48 +00:00
James Canete
d339246a6f
Handle situations where tls doesn't init.
2008-05-14 20:46:35 +00:00
James Canete
c9d7b85788
Fix leak in hash table if same key added twice.
2008-03-07 00:09:28 +00:00
James Canete
001e8ec674
Fix for truncated last character on long logged lines.
2008-02-21 22:45:21 +00:00
James Canete
dd86aedd19
Force schannel to use RC4 to get around an schannel DES bug.
...
Fix a bug where a failed tls_start would cause a loop.
Moved static variables in schannel into the tls struct.
2007-11-15 03:12:18 +00:00
James Canete
1f453d2ecf
Add schannel support (win32 only)
...
Fix a couple compile warnings.
Extend features timeout to 5 seconds.
2007-11-05 02:30:04 +00:00
James Canete
f45380bb23
Added OpenSSL support.
...
Added win32-specific srv lookup support.
Extend session timeout to 15 seconds.
2007-09-05 20:01:24 +00:00
James Canete
c3b8d03096
Fix handling of quotes in digest-md5 challenge.
2007-07-25 21:30:40 +00:00
James Canete
cde69ffce4
Fix parsing of extraneous commas in sasl digest-md5 challenge.
2007-07-25 01:53:04 +00:00
James Canete
9d25e25002
Fix some bugs with stream errors.
2006-08-28 23:03:42 +00:00
Jack Moffitt
fbb6a6b4c6
Implement stream:error handling.
2006-08-25 19:28:08 +00:00
James Canete
91cfcd26b3
Fixed some bugs when encoding and decoding to base64.
2006-05-16 01:46:47 +00:00
James Canete
4c634f3ad1
fixed a bug in the hash where the first entry was never used in an iterator
2006-04-05 23:56:19 +00:00
Jack Moffitt
c52d0aaa28
Add new snprintf/vsnprintf implementation. This should fix the compability
...
problems between Win32 (with its broken implementation) and the standard
stdio API. Also fixed a bug in debug output where long messages got
truncated to 1023 chars, and in xmpp_stanza_to_text where long stanzas
got truncated by one character.
2006-01-21 00:26:40 +00:00