mirror of
https://salsa.debian.org/mdosch/go-sendxmpp
synced 2024-11-17 03:25:33 +00:00
Update go modules.
This commit is contained in:
parent
8337bcf82b
commit
fc1342ab29
@ -15,7 +15,7 @@ sendxmpp incarnations. :)
|
||||
|
||||
## requirements
|
||||
|
||||
* [go](https://golang.org/) >= 1.17
|
||||
* [go](https://golang.org/) >= 1.21
|
||||
|
||||
## installation
|
||||
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"github.com/mattn/go-xmpp" // BSD-3-Clause
|
||||
"github.com/xmppo/go-xmpp" // BSD-3-Clause
|
||||
"salsa.debian.org/mdosch/xmppsrv" // BSD-2-Clause
|
||||
)
|
||||
|
||||
|
3
go.mod
3
go.mod
@ -1,6 +1,6 @@
|
||||
module salsa.debian.org/mdosch/go-sendxmpp
|
||||
|
||||
go 1.17
|
||||
go 1.21.5
|
||||
|
||||
require (
|
||||
github.com/ProtonMail/gopenpgp/v2 v2.7.4
|
||||
@ -8,6 +8,7 @@ require (
|
||||
github.com/gabriel-vasile/mimetype v1.4.3
|
||||
github.com/mattn/go-xmpp v0.0.2-0.20240109092456-39f5b80375b6
|
||||
github.com/pborman/getopt/v2 v2.1.0
|
||||
github.com/xmppo/go-xmpp v0.0.2-0.20240110151702-8531e2e36ab1
|
||||
salsa.debian.org/mdosch/xmppsrv v0.2.5
|
||||
)
|
||||
|
||||
|
21
go.sum
21
go.sum
@ -16,7 +16,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
|
||||
github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
|
||||
github.com/mattn/go-xmpp v0.0.2-0.20240109092456-39f5b80375b6 h1:ks0S9C3JZYldBbuk5TEvbH4H6I1dV1ZannTY3A33EkI=
|
||||
github.com/mattn/go-xmpp v0.0.2-0.20240109092456-39f5b80375b6/go.mod h1:HBSVZzomYzxh5UNQq6sXImCsgh01O55Pvb6fopW/u74=
|
||||
github.com/pborman/getopt/v2 v2.1.0 h1:eNfR+r+dWLdWmV8g5OlpyrTYHkhVNxHBdN2cCrJmOEA=
|
||||
github.com/pborman/getopt/v2 v2.1.0/go.mod h1:4NtW75ny4eBw9fO1bhtNdYTlZKYX5/tBLtsOpwKIKd0=
|
||||
@ -27,14 +26,15 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/xmppo/go-xmpp v0.0.1 h1:C+KvgHaagmrNGnIrXpjAe2nQFoZ2rzkFbZM7pX+1Eq0=
|
||||
github.com/xmppo/go-xmpp v0.0.1/go.mod h1:ZllumRbHNsXkm8aEnRp335cesR0w69Fsh1Y33cS5REQ=
|
||||
github.com/xmppo/go-xmpp v0.0.2-0.20240110151702-8531e2e36ab1 h1:gl9h8HgLYwgAB3kpoGRY1ARD8Lmnsn3oWWlM2gOPnlw=
|
||||
github.com/xmppo/go-xmpp v0.0.2-0.20240110151702-8531e2e36ab1/go.mod h1:PcCOIcUOWDL2z/WvkQNUzT08pGK6cAF/edZVX8Ik8bI=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
|
||||
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
|
||||
golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4=
|
||||
golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g=
|
||||
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
|
||||
golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc=
|
||||
golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
@ -45,8 +45,6 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
|
||||
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
||||
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
|
||||
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
|
||||
golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo=
|
||||
golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
@ -61,10 +59,6 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=
|
||||
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
@ -72,19 +66,12 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
|
||||
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
||||
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
||||
golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
|
||||
golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww=
|
||||
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
|
||||
golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
|
||||
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
|
||||
"github.com/beevik/etree" // BSD-2-clause
|
||||
"github.com/gabriel-vasile/mimetype" // MIT License
|
||||
"github.com/mattn/go-xmpp" // BSD-3-Clause
|
||||
"github.com/xmppo/go-xmpp" // BSD-3-Clause
|
||||
)
|
||||
|
||||
func httpUpload(client *xmpp.Client, iqc chan xmpp.IQ, jserver string, filePath string) string {
|
||||
@ -46,7 +46,7 @@ func httpUpload(client *xmpp.Client, iqc chan xmpp.IQ, jserver string, filePath
|
||||
// Get file name
|
||||
fileName := filepath.Base(filePath)
|
||||
// Just use alphanumerical and some special characters for now
|
||||
// to work around https://github.com/mattn/go-xmpp/issues/132
|
||||
// to work around https://github.com/xmppo/go-xmpp/issues/132
|
||||
reg := regexp.MustCompile(`[^a-zA-Z0-9\+\-\_\.]+`)
|
||||
fileNameEscaped := reg.ReplaceAllString(fileName, "_")
|
||||
|
||||
|
4
main.go
4
main.go
@ -18,7 +18,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/ProtonMail/gopenpgp/v2/crypto" // MIT License
|
||||
"github.com/mattn/go-xmpp" // BSD-3-Clause
|
||||
"github.com/xmppo/go-xmpp" // BSD-3-Clause
|
||||
"github.com/pborman/getopt/v2" // BSD-3-Clause
|
||||
)
|
||||
|
||||
@ -249,7 +249,7 @@ func main() {
|
||||
// an unencrypted connection is established. As StartTLS is
|
||||
// set when NoTLS is set go-sendxmpp won't use unencrypted
|
||||
// client-to-server connections.
|
||||
// See https://pkg.go.dev/github.com/mattn/go-xmpp#Options
|
||||
// See https://pkg.go.dev/github.com/xmppo/go-xmpp#Options
|
||||
NoTLS: !*flagDirectTLS,
|
||||
StartTLS: !*flagDirectTLS,
|
||||
Debug: *flagDebug,
|
||||
|
2
ox.go
2
ox.go
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"github.com/ProtonMail/gopenpgp/v2/crypto" // MIT License
|
||||
"github.com/beevik/etree" // BSD-2-clause
|
||||
"github.com/mattn/go-xmpp" // BSD-3-Clause
|
||||
"github.com/xmppo/go-xmpp" // BSD-3-Clause
|
||||
)
|
||||
|
||||
func oxDeleteNodes(jid string, client *xmpp.Client, iqc chan xmpp.IQ) error {
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"runtime"
|
||||
|
||||
"github.com/beevik/etree" // BSD-2-clause
|
||||
"github.com/mattn/go-xmpp" // BSD-3-Clause
|
||||
"github.com/xmppo/go-xmpp" // BSD-3-Clause
|
||||
)
|
||||
|
||||
func sendIQ(client *xmpp.Client, iqc chan xmpp.IQ, target string, iQtype string, content string) (xmpp.IQ, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user