Commit graph

1616 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
88ae9aca3f ecaps2: Remove unused brackets around Blake2b. 2017-04-21 00:24:20 +01:00
Emmanuel Gil Peyrot
efedb215c4 ecaps2: Add Rust-Crypto and base64 dependencies, and implement hashing. 2017-04-21 00:01:57 +01:00
Emmanuel Gil Peyrot
7288c2c74f Import ns itself, and remove the _NS suffix on all namespaces. 2017-04-20 23:16:12 +01:00
Emmanuel Gil Peyrot
411e421732 ecaps2: Use a reference everywhere, instead of taking ownership. 2017-04-20 21:53:46 +01:00
Emmanuel Gil Peyrot
83cf57abd0 disco: Use a reference everywhere, instead of taking ownership. 2017-04-20 21:53:46 +01:00
Emmanuel Gil Peyrot
1190dd9001 disco: Add a serializer. 2017-04-20 21:03:02 +01:00
Emmanuel Gil Peyrot
e0e6119e55 disco: Relax the parsing rules for get disco#info. 2017-04-20 21:02:51 +01:00
Emmanuel Gil Peyrot
55f5435f6e body: Make the string public. 2017-04-20 01:31:03 +01:00
Emmanuel Gil Peyrot
f3c9a58862 Add a receipts parser. 2017-04-20 00:43:33 +01:00
Emmanuel Gil Peyrot
861c933c56 body, chatstates: Fix tests. 2017-04-20 00:43:17 +01:00
Emmanuel Gil Peyrot
a9993b1281 Remove the MessagePayload trait, it was a bad idea. 2017-04-20 00:14:47 +01:00
Emmanuel Gil Peyrot
b8b0494c19 Fix a stupid copy/paste syntax error. 2017-04-20 00:14:29 +01:00
Emmanuel Gil Peyrot
fc7a0517d3 Replace assert!()s with proper errors in parsers. 2017-04-19 23:41:54 +01:00
Emmanuel Gil Peyrot
6a0724d133 Add a MessagePayload trait, and implement it for Body and ChatState. 2017-04-19 23:21:53 +01:00
Emmanuel Gil Peyrot
948ecd7dd7 Add a body plugin. 2017-04-19 23:21:23 +01:00
Emmanuel Gil Peyrot
4f31727a1a Add an In-Band Bytestream parser. 2017-04-19 21:52:14 +01:00
Emmanuel Gil Peyrot
31a7d8be23 disco: Drop some unneeded derived traits from Feature. 2017-04-19 21:50:14 +01:00
Emmanuel Gil Peyrot
69f1405b9c Add a chatstate parser. 2017-04-19 19:15:57 +01:00
Emmanuel Gil Peyrot
fdc76eca3c Add a ping parser. 2017-04-19 18:59:07 +01:00
Emmanuel Gil Peyrot
87cd047a46 media_element: Import the namespace from ns. 2017-04-19 18:58:43 +01:00
Emmanuel Gil Peyrot
9d129701d0 jingle: Add an error when there is more than one <text/> in a <reason/>. 2017-04-19 02:38:10 +01:00
Emmanuel Gil Peyrot
9da488f909 Add a Jingle parser. 2017-04-19 02:27:42 +01:00
Emmanuel Gil Peyrot
82fa22cd06 disco: Rename misnamed variable. 2017-04-19 02:27:33 +01:00
Emmanuel Gil Peyrot
9cf1521775 Hello world! 2017-04-18 20:44:36 +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
8f027cfee2 Merge branch 'valid-xml' into 'master'
Make the Debug trait output valid XML

See merge request !1
2017-04-02 20:50:40 +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
Emmanuel Gil Peyrot
9af7d252d7 auto-close elements with no child 2017-04-01 13:34:08 +01:00
Emmanuel Gil Peyrot
f301f2cb10 make Debug on Element return valid XML 2017-04-01 13:34:08 +01:00
lumi
7c04aff416 overhauling the library, made tests pass 2017-03-08 20:34:17 +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
5ae85aa884 add #![deny(missing_docs)] and documentation 2017-02-28 12:38:00 +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
5da36ecdf4 license updates 2017-02-27 16:59:47 +01:00
lumi
eb9a121e70 Merge branch 'master' of gitlab.com:lumi/jid-rs 2017-02-27 16:42:29 +01:00
lumi
19efcf3560 add license, prepare for release 2017-02-27 16:42:09 +01:00
lumi
2fab3ae088 split off sasl module 2017-02-27 16:10:11 +01:00