aboutsummaryrefslogtreecommitdiff
path: root/ACSE
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-28 00:11:55 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-28 00:11:55 +0200
commit7d3f0a811c733ac73817f5049562b6ebab2abc28 (patch)
tree76cd5a40e742cc46a26aa127ba3f1ddd3aea9724 /ACSE
parentda303a309a15cf0aa890c638445c1649201dd678 (diff)
Add basic acse definitions
Diffstat (limited to 'ACSE')
-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
+)