Debian Codegraph @

const.go

raw
1 // Copyright Martin Dosch.
2 // Use of this source code is governed by the BSD-2-clause
3 // license that can be found in the LICENSE file.
4
5 package main
6
7 const (
8 version = "0.17.0"
9 // defaults
10 defaultBufferSize = 100
11 defaultConfigColumnSep = 2
12 defaultDirRights = 0o700
13 defaultFileRights = 0o600
14 defaultFileRightsWin = 0o200
15 defaultIDBytes = 12
16 defaultLenServerConf = 2
17 defaultRpadMultiple = 100
18 defaultRSABits = 4096
19 defaultShortIDBytes = 4
20 defaultTimeout = 10
21 defaultTLSMinVersion = 13
22 defaultTLS10 = 10
23 defaultTLS11 = 11
24 defaultTLS12 = 12
25 defaultTLS13 = 13
26 // namespaces
27 nsC2SdTLS = "urn:xmpp:alt-connections:tls"
28 nsDiscoInfo = "http://jabber.org/protocol/disco#info"
29 nsDiscoItems = "http://jabber.org/protocol/disco#items"
30 nsEme = "urn:xmpp:eme:0"
31 nsHints = "urn:xmpp:hints"
32 nsHTTPUpload = "urn:xmpp:http:upload:0"
33 nsJabberClient = "jabber:client"
34 nsJabberData = "jabber:x:data"
35 nsJabberEncrypted = "jabber:x:encrypted"
36 nsMUCAdmin = "http://jabber.org/protocol/muc#admin"
37 nsOx = "urn:xmpp:openpgp:0"
38 nsOxPubKeys = "urn:xmpp:openpgp:0:public-keys"
39 // #nosec G101 -- This is a namespace and not a hardcoded secret
40 nsOxSecretKey = "urn:xmpp:openpgp:0:secret-key"
41 nsPubsub = "http://jabber.org/protocol/pubsub"
42 nsPubsubOwner = "http://jabber.org/protocol/pubsub#owner"
43 nsSid = "urn:xmpp:sid:0"
44 nsSigned = "jabber:x:signed"
45 nsVersion = "jabber:iq:version"
46 nsXMPPStanzas = "urn:ietf:params:xml:ns:xmpp-stanzas"
47 // strings and numbers
48 legacyPGPMsgBegin = "-----BEGIN PGP MESSAGE-----\n\n"
49 legacyPGPMsgEnd = "\n-----END PGP MESSAGE-----"
50 legacyPGPSigBegin = "-----BEGIN PGP SIGNATURE-----\n\n"
51 legacyPGPSigEnd = "\n-----END PGP SIGNATURE-----"
52 oxAltBody = "This message is encrypted (XEP-0373: OpenPGP for XMPP)."
53 oxSecretAlphabet = "123456789ABCDEFGHIJKLMNPQRSTUVWXYZ"
54 oxSecretLength = 24
55 oxSecretChunkSize = 4
56 pubsubNodeConfig = "http://jabber.org/protocol/pubsub#node_config"
57 pubsubPubOptions = "http://jabber.org/protocol/pubsub#publish-options"
58 strChat = "chat"
59 strEmpty = ""
60 strError = "error"
61 strGroupchat = "groupchat"
62 strHeadline = "headline"
63 strResult = "result"
64 )