Commit Graph

39 Commits (master)

Author SHA1 Message Date
rcorniere e59a86c380 Refactor tests 4 years ago
rcorniere 8798ff6fc1 - Changed IQ stanzas to pointer semantics
- Fixed commands from v 0.4.0 and tests
- Added primitive Result Sets support (XEP-0059)
4 years ago
rcorniere 3c9b0db5b8 Fixed decoder usage.
Decoders have internal buffering, and creating many on a single TCP connection can cause issues in parsing exchanged XML documents.
5 years ago
Wichert Akkerman 2f8ec7b36f Only try startTls if the connection is not secure 5 years ago
Wichert Akkerman 6da1962962 Correctly open new streams after StartTLS and auth 5 years ago
Wichert Akkerman 33446ad0ba Create a new stream after StartTLS 5 years ago
Wichert Akkerman 92329b48e6 Transports need to handle open/close stanzas
XMPP and WebSocket transports require different open and close stanzas. To
handle this the responsibility handling those and creating the XML decoder is
moved to the Transport.
5 years ago
Wichert Akkerman 8db608ccc1 Add IsSecure() to Transport 5 years ago
Wichert Akkerman 96fccbd399 Split out TransportConfiguration
This allows using the same transport configuration from both clients and components.
5 years ago
Wichert Akkerman a3c62e515e Introduce Transport interface 5 years ago
Mickael Remond 9c8353d081 Introduce Credential structure to define auth type
For now we are planning to support Password and OAuthToken.
In the future, we would like to add certificate-based authentication.
5 years ago
Mickael Remond 80d2e0fa1e Remove debug print-out 5 years ago
Mickael Remond 2e864ff7f6 Clean-up: remove test/debug code 5 years ago
Mickael Remond 3de99e0e0e Add initial support for stream management
For now it support enabling SM, replying to ack requests from server,
and trying resuming the session with existing Stream Management state.
5 years ago
Mickael Remond e531370dc9
An invalid certificate is a permanent error if we do not skip cert check 5 years ago
Martin/Geno e05f36c69f init empty TLSConfig, if nothing given 5 years ago
Mickael Remond d36428fb2f
Avoid copying tls.Config lock
Fixes #90
5 years ago
Mickael Remond 9577036327 Add support for self-signed certificates 5 years ago
Mickael Remond 604d2c6c1e
Improves comments 5 years ago
Mickael Remond 7c71d93026
Remove unused channels 5 years ago
Mickael Remond cca0919b8a
Fix session element parsing on IQ 5 years ago
Mickael Remond 40e907e8ee
Clean-up & refactor 5 years ago
Mickael Remond 5992cc2231 Fix XMPP logger consistency
- Rename socketProxy to StreamLogger
- Ensure client send traffic through the logger
5 years ago
Mickael Remond 428787d7ab
Refactor and move parsing and stanza to a separate package 5 years ago
genofire d9fdff0839 Add constants (enumlike) for stanza types and simplify packet creation (#62)
* Add constants (enumlike) for stanza types
* NewIQ, NewMessage and NewPresence are now initialized with the Attrs struct
* Update examples
* Do not export backoff code. For now, we do not need to expose backoff in the documentation
* Make presence priority an int8
5 years ago
Mickael Remond af0ae525b8 An IQ can only have a single payload
"An IQ stanza of type "get" or "set" MUST contain exactly one
 child element, which specifies the semantics of the particular
 request."
5 years ago
Mickael Remond 4d015e5b29
With go modules, we should be able to remove import comments 5 years ago
Mickael Remond 709a95129e
Clean up and fix StartTLS feature discovery
Required field was never set to true
5 years ago
Mickael Remond 1be04b0fba
Expose JID fields and rename to match XEP-0029 wording
See: XEP-0029 - Definition of Jabber Identifiers (JIDs)
https://xmpp.org/extensions/xep-0029.html
5 years ago
Mickael Remond 2d8d4516fd
Handling basic unrecoverable errors
Fix #43
5 years ago
Mickael Remond f45829916c Add tool to check XMPP certificate on starttls
Minor refactoring
5 years ago
Mickaël Rémond b030e8dd4b
Merge pull request #13 from hypafrag/xml_charset_reader_support
added charsets support
5 years ago
Mickael Remond 5eae7f4ef7
Move project to gosrc.io/xmpp
The URL will be more permanent as this is a place we dedicate as short URL for our go projects.
5 years ago
hypafrag 3a51dce786 added charsets support 6 years ago
Mickael Remond fa5590e921
Rename Options to Config 6 years ago
Mickael Remond d33490cdc0
Work-in-progress on dynamic IQ parsing 6 years ago
Mickael Remond dade3504f0
Improve generic IQ parsing 6 years ago
Mickael Remond 10219ec1e6
Refactor parsing / improve typing 6 years ago
Mickael Remond 710174b165
Moving XMPP library to Fluux project 6 years ago