Matt Goodall
c315cb9d49
Fix un-golang names (mostly case).
2017-04-14 12:21:45 +01:00
Matt Goodall
0d9f3a4de5
Improve error message format.
2017-03-30 20:56:11 +01:00
Matt Goodall
19c81df5d6
Simplify. Remove unused/unreachable code.
2017-03-30 20:53:36 +01:00
Chteufleur
72135514fc
Fix certificat domain check in case of SRV
2016-08-15 22:37:28 +02:00
Chteufleur
30ec9e14fb
[fix] Add domain name in Stream to get TLS working
2016-07-23 11:59:21 +02:00
Matt Goodall
9ba9dcbe86
go fix. Clearly, I need to run this more often ;)
2012-07-18 11:40:36 +01:00
Matt Goodall
82015bcab4
Collect and consolidate namespaces.
2012-07-18 11:36:59 +01:00
Matt Goodall
91b33a0f3d
Mention a couple of bugs to fix at some point.
2012-07-16 16:04:46 +01:00
Matt Goodall
17d143cb2c
Add client session establishment.
2012-07-13 11:23:49 +01:00
Matt Goodall
e95528641b
Combine Stream's Decode and DecodeElement methods.
2012-07-12 00:56:35 +01:00
Matt Goodall
f97ed9ea37
Remove element name match test from Stream.Next().
...
Only one place still used it, so it might as well go.
2012-07-12 00:48:44 +01:00
Matt Goodall
20c380ebc6
Add UUID4 func and use it instead of hard-coded <iq/> ids.
2012-07-12 00:38:51 +01:00
Matt Goodall
318a97947b
Read incoming start element explicit part of sending outgoing start element.
2012-07-11 23:24:32 +01:00
Matt Goodall
5ab3a9be80
Extract/improve auth response check - it's common to all mechanisms.
2012-07-10 13:14:46 +01:00
Matt Goodall
6ccf6e41a8
Rename auth struct field.
2012-07-10 13:13:13 +01:00
Matt Goodall
32df77187c
Make authentication a little more pluggable.
2012-07-10 12:27:29 +01:00
Matt Goodall
6b01a7f10c
Cleanly detect & signal end of stream, and fix code above.
2012-07-09 15:01:15 +01:00
Matt Goodall
7a91f5d8ea
Send stream's version='1.0' attr.
2012-07-09 02:51:16 +01:00
Matt Goodall
56a481ff8e
No client config means default config.
2012-07-09 02:49:04 +01:00
Matt Goodall
3be7cf7b0b
Implement server-gererated resource binding.
2012-07-09 02:16:25 +01:00
Matt Goodall
6416a5e1ee
Resource binding bugs, so I don't forget.
2012-07-09 00:37:21 +01:00
Matt Goodall
c9c8526476
Separate stream creation from XMPP use (client, component, etc).
...
The address of the server is not necessarily related to the JID, e.g.
DNS SRV lookups, manual configuration, etc. Splitting them up means
there's more control and flexibility over how things are put together.
We can always add convenience funcs later, e.g. something like
DialClient(jid, password), to handle the common case.
2012-07-08 23:33:37 +01:00
Matt Goodall
5399179d50
Represented SASL message and TLS handshake value as chardata.
2012-07-08 23:01:08 +01:00
Matt Goodall
f1c999d623
Move the XMPP-specific part of TLS out of the XML stream.
2012-07-08 22:50:10 +01:00
Matt Goodall
0a11fbb155
Remove debug log.
2012-07-08 22:41:34 +01:00
Matt Goodall
b9e29ca2b3
Make the stream's API more explicit, add some docs, improved var names.
2012-07-08 22:40:31 +01:00
Matt Goodall
ce72493a2f
Implement client resource binding.
2012-07-08 12:18:51 +01:00
Matt Goodall
23aeb1fd68
Associate a JID with an XMPP instance.
...
Client connections negotiate a bound resource JID with the server. The
bound JID may be different from the one requested or even generated by
the server.
Component connections do not negotiate the bound JID but still have a
specific JID associated with the stream.
2012-07-08 12:18:51 +01:00
Matt Goodall
678b9c48a1
Make Stream public again, so we actually get some documentation for it.
2012-07-06 14:29:15 +01:00
Matt Goodall
72dc222360
Make the stream struct private. Rename factory func.
2012-07-06 11:47:15 +01:00
Matt Goodall
627364727e
The client and component connections are really just streams too.
...
Only difference is how they're setup. After that, it's the common iq,
message, presence stuff ... to come soon.
2012-07-06 11:47:15 +01:00
Matt Goodall
359c6a324b
Document the client config.
2012-07-06 11:07:42 +01:00
Matt Goodall
2426f2d6d1
Rename JID.Local to JID.Node to better match official XEP.
2012-07-06 11:04:59 +01:00
Matt Goodall
b908366544
Extract startClient function.
2012-06-27 13:16:11 +01:00
Matt Goodall
4e7d9e68d1
Move xml declaration to stream.
2012-06-27 13:15:11 +01:00
Matt Goodall
fe67025b94
Don't expose client struct.
2012-06-27 12:10:22 +01:00
Matt Goodall
a793114fdf
Basic XMPP client with TLS and SASL.
2012-06-27 12:05:07 +01:00