Commit graph

98 commits

Author SHA1 Message Date
lumi
6efc77b423 abstract plugin logic into PluginContainer 2017-05-27 20:33:56 +02:00
lumi
1b6b67b332 simplify plugin code 2017-05-27 19:40:00 +02:00
lumi
1550c52552 resolve deadlock, fix component.rs 2017-05-27 18:41:54 +02:00
lumi
b2a18f8e3e Merge branch 'stanza-debug' into 'master'
Add a stanza_debug plugin

See merge request !10
2017-05-27 16:29:05 +00:00
Emmanuel Gil Peyrot
967d3e3217 stop propagating when we are done with a stanza 2017-05-27 17:24:24 +01:00
Emmanuel Gil Peyrot
66bf10b941 add a stanza_debug plugin, printing every stanza on stdout 2017-05-27 17:22:53 +01:00
lumi
ac7c907e9f Merge branch 'master' of gitlab.com:lumi/xmpp-rs 2017-05-27 18:02:19 +02:00
lumi
11c99ec387 add register_handler to Client 2017-05-27 18:01:01 +02:00
lumi
09280ca8df Merge branch 'moar-xmpp-parsers' into 'master'
Moar xmpp-parsers

See merge request !9
2017-05-27 15:53:57 +00:00
Emmanuel Gil Peyrot
c48086bc9c rewrite the ping plugin to make it use the stanza plugin 2017-05-27 16:44:32 +01:00
Emmanuel Gil Peyrot
8e7b7ae31c simplify the presence plugin using xmpp-parsers 2017-05-27 16:37:21 +01:00
Emmanuel Gil Peyrot
ca882fd13a prevent the presence plugin from generating an illegal show element 2017-05-27 16:25:59 +01:00
Emmanuel Gil Peyrot
406dfdea98 initialise the StanzaPlugin in the client example 2017-05-27 16:25:31 +01:00
lumi
c326d5b07e fix up the event system, no more unsafe! 2017-05-27 16:56:44 +02:00
lumi
cdf665454f Merge branch 'new-event-system' into 'master'
Adapt new event system for component

See merge request !8
2017-05-27 13:21:05 +00:00
Maxime “pep” Buquet
2ee23c1c05 Adapt new event system for component 2017-05-25 00:28:07 +01:00
lumi
d0fa23f19a Merge branch 'xmpp-parsers' into 'master'
Add an xmpp-parsers dependency

See merge request !7
2017-05-23 23:54:03 +00:00
Emmanuel Gil Peyrot
9488c6fe12 add xmpp-parsers dependency, and use it in the stanza plugin 2017-05-24 00:40:45 +01:00
Emmanuel Gil Peyrot
2826f6624c update dependencies 2017-05-24 00:38:58 +01:00
lumi
917b14b5d2 implement the new event system, things are still really messy 2017-05-10 00:17:34 +02:00
lumi
f3b9984ff2 Merge branch 'update-dependencies' into 'master'
Update dependencies

See merge request !6
2017-05-05 01:04:04 +00:00
Emmanuel Gil Peyrot
78509e25b1 update to the latest sasl 2017-05-04 20:26:46 +01:00
Emmanuel Gil Peyrot
31f78b9f5f update to the latest xml-rs and minidom 2017-05-04 20:26:45 +01:00
Emmanuel Gil Peyrot
b8fda8ea6a update to the latest base64 2017-05-04 20:25:58 +01:00
lumi
e27ae954fb Merge branch 'fix-component' into 'master'
fix component connection when one byte was in 0..15

See merge request !5
2017-05-03 00:00:35 +00:00
Emmanuel Gil Peyrot
b4795cecd4 replace openssl with sha-1 for component handshake 2017-05-02 17:21:26 +01:00
Emmanuel Gil Peyrot
1e65b20ead implement From<FormatError> for Error 2017-05-02 17:21:03 +01:00
lumi
1d53007a99 Merge branch 'update_deps' into 'master'
Update dep jid-rs and minidom-rs

See merge request !4
2017-04-30 18:29:46 +00:00
Maxime “pep” Buquet
ee2f311447 Update dep jid-rs to 0.2.0 2017-04-30 17:51:44 +01:00
Maxime “pep” Buquet
92969154b4 Update dep minidom-rs to 0.2.0 2017-04-30 17:44:07 +01:00
9c6b42a961 Implement StanzaPlugin with {Message,Presence,Iq}Event 2017-04-18 01:53:26 +02:00
lumi
0e11cea0fa add the MUC to the README 2017-04-17 23:03:27 +00:00
lumi
e6416f34d8 Merge branch 'component' into 'master'
Add the possibility to write components

See merge request !3
2017-04-01 20:57:40 +00:00
lumi
890d789af6 Merge branch 'sasl_error' into 'master'
Two sasl_error fixes

See merge request !2
2017-04-01 20:56:44 +00:00
lumi
11b3bb1e12 Merge branch 'ping' into 'master'
Add a ping plugin

See merge request !1
2017-04-01 20:55:42 +00:00
Emmanuel Gil Peyrot
86b5f72d2f add a component example 2017-04-01 17:24:01 +01:00
Emmanuel Gil Peyrot
caa83ce789 add a component builder 2017-04-01 17:16:25 +01:00
Emmanuel Gil Peyrot
70f70b1c73 add a Component2S connection type 2017-04-01 17:16:24 +01:00
Emmanuel Gil Peyrot
e2e6ae985a add a plain text transport, unencrypted 2017-04-01 17:16:24 +01:00
Emmanuel Gil Peyrot
6c15618df7 remove extraneous text option in sasl_error 2017-04-01 14:37:43 +01:00
Emmanuel Gil Peyrot
f8c76ac1e8 respect rfc6120 §6.5 properly in sasl_error
Any unknown condition should be considered as a <not-authorized/> one.
2017-04-01 14:36:57 +01:00
Emmanuel Gil Peyrot
40d01a729f add a ping plugin
This is a demo of the simplest iq-based protocol.  When an iq is
received containing a payload qualified by this namespace, an empty
result iq is sent.
2017-04-01 14:32:19 +01:00
lumi
9d57e1a63b improvements in channel binding 2017-03-07 18:38:21 +01:00
lumi
9d59bd2f7e update to sasl-rs 0.3.0, process error stanzas 2017-03-07 18:19:09 +01:00
lumi
7692c262c8 add a feature for allowing insecure connections 2017-03-07 18:16:23 +01:00
lumi
0b82b142f0 use crates.io sasl and jid crates 2017-02-27 17:08:47 +01:00
lumi
71ffa4fe87 README and license updates 2017-02-27 17:00:18 +01:00
lumi
2fab3ae088 split off sasl module 2017-02-27 16:10:11 +01:00
lumi
e94c582359 split the jid module off into its own crate 2017-02-27 15:41:00 +01:00
lumi
ef07904807 add with_node, with_domain and with_resource to Jid 2017-02-27 15:30:39 +01:00