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"
|
2023-06-06 08:47:41 +00:00
|
|
|
// 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"
|
2023-10-29 09:20:44 +00:00
|
|
|
nsVersion = "jabber:iq:version"
|
2023-06-06 08:50:21 +00:00
|
|
|
nsXMPPStanzas = "urn:ietf:params:xml:ns:xmpp-stanzas"
|
|
|
|
// strings
|
2022-04-17 15:16:29 +00:00
|
|
|
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"
|
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
|
|
|
)
|