aboutsummaryrefslogtreecommitdiff
path: root/csta/user-information.go
blob: b3c0c62470512cf99edddf354e1a6d90ed0fc3ec (plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
package csta

// 1.3.12.0.285.200

import "github.com/dim13/asn1"

var (
	CSTA      = asn1.ObjectIdentifier([]int{1, 3, 12, 0, 218})
	OID       = asn1.ObjectIdentifier([]int{1, 3, 12, 0, 285, 200})
	Version1  = asn1.BitString{Bytes: []byte{0x80}, BitLength: 8}
	Version2  = asn1.BitString{Bytes: []byte{0x40}, BitLength: 8}
	Version3  = asn1.BitString{Bytes: []byte{0x20}, BitLength: 8}
	Version4  = asn1.BitString{Bytes: []byte{0x10}, BitLength: 8}
	Version5  = asn1.BitString{Bytes: []byte{0x08}, BitLength: 8}
	Version6  = asn1.BitString{Bytes: []byte{0x04}, BitLength: 8}
	Version7  = asn1.BitString{Bytes: []byte{0x02}, BitLength: 8}
	Version8  = asn1.BitString{Bytes: []byte{0x01}, BitLength: 8}
	Version9  = asn1.BitString{Bytes: []byte{0x00, 0x80}, BitLength: 16}
	Version10 = asn1.BitString{Bytes: []byte{0x00, 0x40}, BitLength: 16}
	Version11 = asn1.BitString{Bytes: []byte{0x00, 0x20}, BitLength: 16}
	Version12 = asn1.BitString{Bytes: []byte{0x00, 0x10}, BitLength: 16}
	Version13 = asn1.BitString{Bytes: []byte{0x00, 0x08}, BitLength: 16}
	Version14 = asn1.BitString{Bytes: []byte{0x00, 0x04}, BitLength: 16}
	Version15 = asn1.BitString{Bytes: []byte{0x00, 0x02}, BitLength: 16}
	Version16 = asn1.BitString{Bytes: []byte{0x00, 0x01}, BitLength: 16}
	Version17 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x80}, BitLength: 24}
	Version18 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x40}, BitLength: 24}
	Version19 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x20}, BitLength: 24}
	Version20 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x10}, BitLength: 24}
	Version21 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x08}, BitLength: 24}
	Version22 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x04}, BitLength: 24}
	Version23 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x02}, BitLength: 24}
	Version24 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x01}, BitLength: 24}
)

type ACSEUserInformationForCSTA struct {
	NewDefinition struct { // 0 implicit
		CSTAVersion CSTAVersion
	}
}

type CSTAVersion int

const (
	VersionOne         CSTAVersion = 1 << iota // ECMA-180
	VersionTwo                                 // ECMA-218
	VersionThree                               // ECMA-285, 1st Edition
	VersionFour                                // ISO/IEC 18952
	VersionFive                                // ECMA-285, 2nd Edition
	VersionSix                                 // ECMA-323
	VersionSeven                               // ECMA-323, 2nd Edition
	VersionEight                               // ECMA-323, 3rd Edition
	VersionNine                                // ECMA-323, 4th Edition, Tag option
	VersionTen                                 // ECMA-323, 4th Edition, short Tag option
	VersionEleven                              // ECMA-323, 4th Edition, dynamic transformation option
	VersionTwelve                              // ECMA-323, 5th Edition, Tag option
	VersionThirteen                            // ECMA-323, 5th Edition, short option
	VersionFourteen                            // ECMA-323, 5th Edition, dynamic transformation option
	VersionFifteen                             // ECMA-285, 3rd Edition
	VersionSixteen                             // ECMA-323, 6th Edition, Tag option
	VersionSeventeen                           // ECMA-323, 6th Edition, short Tag option
	VersionEighteen                            // ECMA-323, 6th Edition, dynamic transformatin option
	VersionNineteen                            // ECMA-285, 4th Edition
	VersionTwenty                              // Reserved for future use
	VersionTwentyone                           // Reserved for future use
	VersionTwentytwo                           // Reserved for future use
	VersionTwentythree                         // Reserved for future use
	VersionTwentyfour                          // Reserved for future use
)