mirror of
https://salsa.debian.org/mdosch/go-sendxmpp
synced 2024-11-18 21:25:31 +00:00
9f9c533941
Squashed commit of the following: commit0805b1f06a
Author: Martin Dosch <martin@mdosch.de> Date: Tue Apr 9 10:57:29 2024 +0200 Move to upstream go-xmpp. commit557d105238
Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 12:45:10 2024 +0200 Do not use sasl2 uuid attribute. commit986aea7957
Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 11:29:33 2024 +0200 Don't print error on io.EOF commitef927ce5cc
Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 11:25:40 2024 +0200 Detect stream error while receiving stanzas. commit73b00f0612
Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 10:00:54 2024 +0200 Use a client uuid per JID. commitb2d090a623
Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 09:29:50 2024 +0200 Improve sasl2 user agent id stuff. commitc7376832ce
Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 09:11:03 2024 +0200 Rework getting data path. commit080100486e
Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 08:49:49 2024 +0200 Update go-xmpp. commit9c56a79bae
Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 00:26:04 2024 +0200 SASL2: Create per client installation ID. commitcce36b070a
Author: Martin Dosch <martin@mdosch.de> Date: Sat Apr 6 22:20:35 2024 +0200 Update go-xmpp. commit1c4acfd07c
Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 12:04:09 2024 +0200 Update go-xmpp. commit0703a7c2d6
Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 11:38:28 2024 +0200 Update go-xmpp. commit4f033fc5b9
Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 09:39:30 2024 +0200 Update vendored lib. commita44554218d
Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 09:32:54 2024 +0200 Use google/uuid for message IDs. It is used for go-xmpp in the sasl2 branch anyway. commit3e57ec3603
Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 09:12:50 2024 +0200 Update vendored modules. commitead44ef99d
Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 09:12:25 2024 +0200 Add . between go-sendxmpp and short id. commitb3271a3530
Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 08:38:03 2024 +0200 Update Changelog. commit639b9b6657
Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 08:22:56 2024 +0200 Add short ID back to resource string. That's still necessary to avoid two instances with the same resource when using SASL instead of SASL2. commit680593359b
Author: Martin Dosch <martin@mdosch.de> Date: Thu Apr 4 23:56:15 2024 +0200 Experimental sasl2 support.
50 lines
1.5 KiB
Go
50 lines
1.5 KiB
Go
// Copyright Martin Dosch.
|
|
// Use of this source code is governed by the BSD-2-clause
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
const (
|
|
version = "0.9.1-dev"
|
|
// defaults
|
|
defaultBufferSize = 100
|
|
defaultConfigRowSep = 2
|
|
defaultDirRights = 0o700
|
|
defaultFileRights = 0o600
|
|
defaultFileRightsWin = 0o200
|
|
defaultIDBytes = 12
|
|
defaultLenServerConf = 2
|
|
defaultRpadMultiple = 100
|
|
defaultRSABits = 4096
|
|
defaultShortIDBytes = 4
|
|
defaultTimeout = 10
|
|
defaultTLSMinVersion = 12
|
|
defaultTLS10 = 10
|
|
defaultTLS11 = 11
|
|
defaultTLS12 = 12
|
|
defaultTLS13 = 13
|
|
// namespace
|
|
nsDiscoInfo = "http://jabber.org/protocol/disco#info"
|
|
nsDiscoItems = "http://jabber.org/protocol/disco#items"
|
|
nsEme = "urn:xmpp:eme:0"
|
|
nsHints = "urn:xmpp:hints"
|
|
nsHTTPUpload = "urn:xmpp:http:upload:0"
|
|
nsJabberClient = "jabber:client"
|
|
nsJabberData = "jabber:x:data"
|
|
nsOx = "urn:xmpp:openpgp:0"
|
|
nsOxPubKeys = "urn:xmpp:openpgp:0:public-keys"
|
|
nsPubsub = "http://jabber.org/protocol/pubsub"
|
|
nsPubsubOwner = "http://jabber.org/protocol/pubsub#owner"
|
|
nsVersion = "jabber:iq:version"
|
|
nsXMPPStanzas = "urn:ietf:params:xml:ns:xmpp-stanzas"
|
|
// strings
|
|
oxAltBody = "This message is encrypted (XEP-0373: OpenPGP for XMPP)."
|
|
pubsubPubOptions = "http://jabber.org/protocol/pubsub#publish-options"
|
|
strChat = "chat"
|
|
strEmpty = ""
|
|
strError = "error"
|
|
strGroupchat = "groupchat"
|
|
strHeadline = "headline"
|
|
strResult = "result"
|
|
)
|