go-sendxmpp/const.go

50 lines
1.5 KiB
Go
Raw Normal View History

2023-05-11 18:05:31 +00:00
// Copyright Martin Dosch.
2022-04-10 06:01:23 +00:00
// Use of this source code is governed by the BSD-2-clause
// license that can be found in the LICENSE file.
package main
const (
2024-03-28 18:22:39 +00:00
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
2023-06-06 08:50:21 +00:00
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"
2023-06-06 08:50:21 +00:00
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"
2023-06-06 08:50:21 +00:00
strChat = "chat"
Add support for SASL2 and BIND2 Squashed commit of the following: commit 0805b1f06a755d65f5e7ca6dd3c9279a407b8153 Author: Martin Dosch <martin@mdosch.de> Date: Tue Apr 9 10:57:29 2024 +0200 Move to upstream go-xmpp. commit 557d1052385e9ddf8454a7004b12a3ec5d3d771d Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 12:45:10 2024 +0200 Do not use sasl2 uuid attribute. commit 986aea79576fa24b37beac5a9ad4424aaadd579b Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 11:29:33 2024 +0200 Don't print error on io.EOF commit ef927ce5cc0741a441781fdbdd097d9942593186 Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 11:25:40 2024 +0200 Detect stream error while receiving stanzas. commit 73b00f0612ec46ed324a08dfae35c26a1f00d3aa Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 10:00:54 2024 +0200 Use a client uuid per JID. commit b2d090a623c60b7faab18ba9b40981d3dc93b424 Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 09:29:50 2024 +0200 Improve sasl2 user agent id stuff. commit c7376832ce52960e90c1b2ca7c8c82a4dc09f8ca Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 09:11:03 2024 +0200 Rework getting data path. commit 080100486e83c44eaaada991c870e2e92c3f76d5 Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 08:49:49 2024 +0200 Update go-xmpp. commit 9c56a79baea2ea01e06a77282f4f53d0b0accdac Author: Martin Dosch <martin@mdosch.de> Date: Sun Apr 7 00:26:04 2024 +0200 SASL2: Create per client installation ID. commit cce36b070a7cff3167e076eab03dcf1a3e10f707 Author: Martin Dosch <martin@mdosch.de> Date: Sat Apr 6 22:20:35 2024 +0200 Update go-xmpp. commit 1c4acfd07c687613f5c109fc25f3b02446ddc000 Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 12:04:09 2024 +0200 Update go-xmpp. commit 0703a7c2d618b586f5ba6455db5bc4351a8db33b Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 11:38:28 2024 +0200 Update go-xmpp. commit 4f033fc5b973088f160a4dd16a6cba56675010ff Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 09:39:30 2024 +0200 Update vendored lib. commit a44554218dc5c2b36803fc474cd740d7b13f9ef2 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. commit 3e57ec3603a3d49fbd6afed66e799dba91dc0b09 Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 09:12:50 2024 +0200 Update vendored modules. commit ead44ef99d7f92306f32a39bc6e92a7d74bdf435 Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 09:12:25 2024 +0200 Add . between go-sendxmpp and short id. commit b3271a353010c4446af176c7eba523eb39604b6c Author: Martin Dosch <martin@mdosch.de> Date: Fri Apr 5 08:38:03 2024 +0200 Update Changelog. commit 639b9b6657b37052bf548bcdabf3715079dc0fb3 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. commit 680593359b4b1b858a2a9150520d9a143675fb4e Author: Martin Dosch <martin@mdosch.de> Date: Thu Apr 4 23:56:15 2024 +0200 Experimental sasl2 support.
2024-04-09 08:59:00 +00:00
strEmpty = ""
2023-06-06 08:50:21 +00:00
strError = "error"
strGroupchat = "groupchat"
2023-06-18 20:21:18 +00:00
strHeadline = "headline"
2023-06-06 08:50:21 +00:00
strResult = "result"
2022-04-10 06:01:23 +00:00
)