aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-08 17:59:49 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-10-08 17:59:49 +0200
commitbde149b75cfa796cf38c5755438446dae05519c5 (patch)
treedf1fc0efd48415b433f2b9f7d8e50897222c4a50
parent88134e6da1628c7e73ced45e237e156985010e84 (diff)
Use github.com/dim13/asn1
-rw-r--r--rose/rose.go19
1 files changed, 14 insertions, 5 deletions
diff --git a/rose/rose.go b/rose/rose.go
index 295f0e0..3ceffd3 100644
--- a/rose/rose.go
+++ b/rose/rose.go
@@ -1,19 +1,28 @@
package rose
+import "github.com/dim13/asn1"
+
// 2.4.6.0
-// Context-specific Constructed 1
+// Payload contains RawContent
+type Payload struct {
+ asn1.RawContent
+}
+
+// Invoke is Context-specific Constructed 1
type Invoke struct {
+ asn1.Tag `asn1:"tag:1"`
InvokeId int
Opcode int
- Argument []byte
+ Payload
}
-// Context-specific Constructed 2
+// ReturnResult it Context-specific Constructed 2
type ReturnResult struct {
+ asn1.Tag `asn1:"tag:2"`
InvokeId int
Result struct {
- Opcode int
- Argument []byte
+ Opcode int
+ Payload
}
}