aboutsummaryrefslogtreecommitdiff
path: root/ACSE/acse.go
diff options
context:
space:
mode:
Diffstat (limited to 'ACSE/acse.go')
-rw-r--r--ACSE/acse.go59
1 files changed, 59 insertions, 0 deletions
diff --git a/ACSE/acse.go b/ACSE/acse.go
new file mode 100644
index 0000000..6b799b2
--- /dev/null
+++ b/ACSE/acse.go
@@ -0,0 +1,59 @@
+package acse
+
+// 2.2.0.0.1
+
+type ObjectIdentifier []int // asn1.ObjectIdentifier
+
+// Application Constructed implicit 0
+type AARQ struct {
+ ProtocolVersion Version // 0 implicit BitString
+ ApplicationContextName ObjectIdentifier // 1
+ UserInformation interface{} // 30 implicit
+}
+
+type Version byte
+
+const (
+ Version1 Version = iota
+)
+
+// Application Constructed implicit 1
+type AARE struct {
+ ProtocolVersion Version // 0 implicit BitString
+ ApplicationContextName ObjectIdentifier // 1
+ Result Result // 2
+ ResultSourceDiagnostic AcseServiceUser // 3
+ UserInformation interface{} // 30 implicit
+}
+
+type Result int
+
+const (
+ Accepted Result = iota
+ RejectedPermanent
+)
+
+type AcseServiceUser int
+
+const (
+ Null AcseServiceUser = iota
+ NoReasonGiven
+)
+
+// Application Constructed implicit 2
+type RLRQ struct{}
+
+// Application Constructed implicit 3
+type RLRE struct{}
+
+// Application Constructed implicit 4
+type ABRT struct {
+ AbortSource AbortSource // 0 implicit
+}
+
+type AbortSource int
+
+const (
+ ServiceUser AbortSource = iota
+ ServiceProvider
+)