File: const.go

package info (click to toggle)
go-sendxmpp 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 332 kB
  • sloc: makefile: 11
file content (56 lines) | stat: -rw-r--r-- 2,006 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// 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.15.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
	// namespace
	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"
	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"
	nsSigned          = "jabber:x:signed"
	nsVersion         = "jabber:iq:version"
	nsXMPPStanzas     = "urn:ietf:params:xml:ns:xmpp-stanzas"
	// strings
	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)."
	pubsubPubOptions  = "http://jabber.org/protocol/pubsub#publish-options"
	strChat           = "chat"
	strEmpty          = ""
	strError          = "error"
	strGroupchat      = "groupchat"
	strHeadline       = "headline"
	strResult         = "result"
)