// 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.17.0" // defaults defaultBufferSize = 100 defaultConfigColumnSep = 2 defaultDirRights = 0o700 defaultFileRights = 0o600 defaultFileRightsWin = 0o200 defaultIDBytes = 12 defaultLenServerConf = 2 defaultRpadMultiple = 100 defaultRSABits = 4096 defaultShortIDBytes = 4 defaultTimeout = 10 defaultTLSMinVersion = 13 defaultTLS10 = 10 defaultTLS11 = 11 defaultTLS12 = 12 defaultTLS13 = 13 // namespaces nsC2SdTLS = "urn:xmpp:alt-connections:tls" 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" nsJabberEncrypted = "jabber:x:encrypted" nsMUCAdmin = "http://jabber.org/protocol/muc#admin" nsOx = "urn:xmpp:openpgp:0" nsOxPubKeys = "urn:xmpp:openpgp:0:public-keys" // #nosec G101 -- This is a namespace and not a hardcoded secret nsOxSecretKey = "urn:xmpp:openpgp:0:secret-key" nsPubsub = "http://jabber.org/protocol/pubsub" nsPubsubOwner = "http://jabber.org/protocol/pubsub#owner" nsSid = "urn:xmpp:sid:0" nsSigned = "jabber:x:signed" nsVersion = "jabber:iq:version" nsXMPPStanzas = "urn:ietf:params:xml:ns:xmpp-stanzas" // strings and numbers legacyPGPMsgBegin = "-----BEGIN PGP MESSAGE-----\n\n" legacyPGPMsgEnd = "\n-----END PGP MESSAGE-----" legacyPGPSigBegin = "-----BEGIN PGP SIGNATURE-----\n\n" legacyPGPSigEnd = "\n-----END PGP SIGNATURE-----" oxAltBody = "This message is encrypted (XEP-0373: OpenPGP for XMPP)." oxSecretAlphabet = "123456789ABCDEFGHIJKLMNPQRSTUVWXYZ" oxSecretLength = 24 oxSecretChunkSize = 4 pubsubNodeConfig = "http://jabber.org/protocol/pubsub#node_config" pubsubPubOptions = "http://jabber.org/protocol/pubsub#publish-options" strChat = "chat" strEmpty = "" strError = "error" strGroupchat = "groupchat" strHeadline = "headline" strResult = "result" )