Martin
f4c732fdc7
SCRAM: Add support for tls-server-end-point channel binding. ( #177 )
2024-01-11 13:33:32 +01:00
Martin Dosch
d3d16d5db9
SCRAM: Add support for tls-server-end-point channel binding.
2024-01-11 13:29:59 +01:00
Eleksir
34d683d25a
Extend SendPresence() stub func to allow send useful statuses ( #150 )
2024-01-10 23:24:28 +01:00
Martin
dffa92c129
Remove DIGEST-MD5 ( #171 )
...
As mentioned in https://github.com/xmppo/go-xmpp/issues/166#issuecomment-1884898526
DIGEST-MD5 is obsolete for a long time now.
2024-01-10 22:41:08 +01:00
Martin
8531e2e36a
improve no more auth err msg ( #176 )
...
Improve error message when no viable authentication method is available
2024-01-10 16:17:02 +01:00
Martin
e7d5b17113
Readability improvements. ( #175 )
...
* Improve readability of switch statement for auth mechanism choice
We have enough space in the width here, so it is not
necessary to span the cases over two lines.
2024-01-10 16:04:40 +01:00
Martin
c1b9689e75
Change import path to xmppo/go-xmpp ( #174 )
...
* Change import path to xmppo/go-xmpp
2024-01-10 15:52:41 +01:00
Martin
424970d23c
Fix manual choice of auth mechanism. ( #173 )
2024-01-10 15:49:08 +01:00
Martin
5fdcf18a81
Simplify authentication choice code. ( #169 )
...
* Simplify authentication choice code.
Should be a lot easier to read and understand now.
2024-01-10 14:53:36 +01:00
Martin
794ed98f9f
Provide access to xml:lang information. ( #168 )
2024-01-10 13:57:27 +01:00
Martin
2f9bd427e8
Merge pull request #167 from mdosch/master
...
Update go.mod
2024-01-10 13:18:48 +01:00
Martin Dosch
70c2fe6900
Update dependencies.
2024-01-10 13:17:25 +01:00
Martin
39f5b80375
Authentication improvements. ( #165 )
...
* Add XEP-0474 support.
* Add missing error handling.
2024-01-09 10:24:56 +01:00
Martin Dosch
2449f4192b
Remove debugging stuff.
...
Remove previously overlooked println.
2024-01-08 19:48:13 +01:00
Martin Dosch
3462085098
Add missing error handling.
2024-01-08 19:32:08 +01:00
Martin Dosch
6c9243326e
Add XEP-0474 support.
2024-01-08 19:30:17 +01:00
Martin
31c7eb6919
Merge pull request #155 from mdosch/rework-newlines
...
Harmonize newlines
2023-11-11 15:10:53 +01:00
Martin Dosch
9dcf67c0ad
Merge branch 'master' into rework-newlines
2023-11-11 14:37:59 +01:00
Martin
4c385a334c
Add SCRAM PLUS variants. ( #163 )
2023-11-11 21:08:17 +09:00
Yasuhiro Matsumoto
24e0f536cb
add go.mod
2023-11-11 21:04:41 +09:00
Martin
a6b124c9b2
Fix typo. ( #158 )
2023-09-24 23:18:19 +09:00
Martin Dosch
6138e9dbe5
Harmonize newlines
...
Now there should be no more newlines in between any stanza and a
newline after every stanza.
This should not affect functionality but is looking better if
stanzas are printed for debugging.
2023-08-14 10:28:33 +02:00
Martin
98ff0d4df7
Rework printing of sent stanzas when debug is enabled ( #148 )
...
* Rework printing of sent stanzas when debug is enabled
This got reworked to also work with multiple connections
as pointed out by @vcabbage in
https://github.com/mattn/go-xmpp/pull/141#issuecomment-1557334066
* Remove StanzaWriter.
2023-07-28 23:42:12 +09:00
Martin
bef3e549f7
add scram auth ( #147 )
...
* Fix syntax errors.
* gofmt
* Add SCRAM-SHA-1, SCRAM-SHA-256 and SCRAM-SHA-512 auth
2023-05-21 16:26:59 +09:00
Martin
9129a110df
fix syntax errors ( #145 )
...
* Fix syntax errors.
* gofmt
2023-03-03 00:20:58 +09:00
PapaTutuWawa
d72a0f3154
Implement Disco queries against other entities ( #124 )
...
* Improve support for XEP-0030
This commit allows the user to query information about the server
or a node belonging to the server as per XEP-0030.
* Fix broken PubSub functionality
2023-03-02 13:23:29 +09:00
Martin
9fc0b1236c
Print sent stanzas in debug mode. ( #141 )
...
* Print sent stanzas in debug mode.
* Remove unnecessary newline.
2023-03-02 13:22:44 +09:00
Martin
05cd75074a
success msg ( #144 )
...
* Remove unnecessary newline.
* Make success content available.
Closes #142 .
2023-03-02 13:20:49 +09:00
vakalmikov
369824c83a
Update xmpp_subscription.go ( #131 )
...
https://www.rfc-editor.org/rfc/rfc6121.html#section-3.3.1
2023-03-02 10:32:52 +09:00
Martin
2eb234970c
Remove unnecessary newline. ( #140 )
2022-07-13 07:17:24 +09:00
Martin
3b26f73300
[codespell] Fix typo. ( #139 )
2022-07-11 02:58:21 +09:00
milampi
1411b9cc8b
Add xml attribute support for XMLElement ( #136 )
...
* Save attributes of the xml element
* Update unittest to check xml attributes
2022-05-13 17:24:06 +09:00
Martin
99ddfc1aa4
Return all pubsub IQs. ( #137 )
...
* Return all pubsub IQs.
This makes other pubsub requests accessible via
client.Recv().
* Fix formatting (gofmt).
2022-04-10 14:46:12 +09:00
Martin
e773596ea0
Provide error replies for IQs. ( #135 )
...
This should fix #125 .
2022-03-19 22:58:56 +09:00
Polynomdivision
912ba61489
Prevent crash in avatar code ( #133 )
...
* Prevent crash on empty urn:xmpp:avatar:* nodes
* Fix issue with errors
* Add a test for empty avatar pubsub items
2021-10-30 00:14:15 +09:00
Josh Martin
3871461df9
Update xmpp_information_query.go ( #130 )
...
Fix a typo in the code comments.
2021-07-23 11:55:38 +09:00
tytan652
db1339b3a5
Fix host with anonymous connection ( #129 )
2021-07-22 23:17:14 +09:00
marzzzello
b40e129499
use ServerName to verify tls hostname ( #127 )
2021-01-21 17:27:23 +09:00
Steven Santos Erenst
42ee290fc5
Add the ability to customize the connection timeout ( #122 )
...
Fixes #116
2021-01-21 17:26:29 +09:00
Steven Santos Erenst
da2b7586cd
Avoid creating copies of locks ( #121 )
...
tls.Config contains fields of type sync.Once and sync.RWMutex. My understanding
is that if the copy happens to occur while the lock is in a locked state, the
lock will remain locked indefinitely and cause a deadlock. Instead use
tls.Config.Clone() to create a shallow copy.
Also the lock copy made `go vet` upset:
$ go vet ./...
./xmpp.go:242:17: assignment copies lock value to newconfig: crypto/tls.Config contains sync.Once contains sync.Mutex
./xmpp.go:530:9: assignment copies lock value to *tc: crypto/tls.Config contains sync.Once contains sync.Mutex
2021-01-21 17:25:57 +09:00
Alexander
37fa6ef92f
Implement XEP-0084 (User Avatar) ( #120 )
...
* Implement XEP-0084 (User Avatar)
* Fix style with gofmt
2021-01-21 17:24:39 +09:00
Alexander
899ef71e80
Implement a bit of XEP-0060 (PubSub) ( #119 )
...
This squashed series of commits implements basic
PubSub functionality like requesting data or
subscribing to a PubSub node.
2020-03-09 18:10:41 +09:00
Qais Patankar
3e4868bd3e
Implement OOB in Send() and add SendOOB() function for messages without body ( #117 )
...
Co-authored-by: Qais Patankar <qaisjp@gmail.com>
Co-authored-by: ValdikSS <iam@valdikss.org.ru>
2020-03-09 18:10:06 +09:00
harald-mueller
a86b6abcb3
Proxy handling / additional send method ( #95 )
...
* respect enviroment var no_proxy
* add method to send IQ messages without <query> element
* check also for uppercase NO_PROXY env
* Uppercase NO_PROXY takes precedence over no_proxy as in HTTP_PROXY
* add comments
* revert copyright to the original one
2020-01-29 00:58:07 +09:00
mattn
ac4c216a42
Merge pull request #108 from kjx98/master
...
implement DNS SRV lookup for NewClient method
2020-01-29 00:56:32 +09:00
mattn
6093f50721
Merge pull request #110 from eaglerayp/feature/noTLS
...
Fix client no StartTLS & server no required
2019-01-24 18:32:44 +09:00
rayshih
1f614e5b8d
Fix client no StartTLS & server no required
2019-01-24 15:48:01 +08:00
Jesse Kuang
ef6a1a617c
keep IQ struct unchange
2019-01-15 10:53:08 +08:00
Jesse Kuang
65fd08aee2
mv xmpp_get_info to other repo
2019-01-12 14:46:18 +08:00
Jesse Kuang
a79a0e59ef
remove GNUmakefile .gitignore
...
mv new example.go to other repo
2019-01-11 23:22:15 +08:00