aboutsummaryrefslogtreecommitdiff
path: root/rose/rose.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-09 16:16:46 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-10-09 16:16:46 +0200
commit3380b7c704328a1a54f9edcdfd34f1a6dec4b543 (patch)
tree5f9835065105e55e2ca728ace82519dcbf88808e /rose/rose.go
parent044255e7d40bdbadd442ff60b66b096518610af8 (diff)
Switch to RawValue
Diffstat (limited to 'rose/rose.go')
-rw-r--r--rose/rose.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/rose/rose.go b/rose/rose.go
index 7e9739f..27365cd 100644
--- a/rose/rose.go
+++ b/rose/rose.go
@@ -6,12 +6,10 @@ import "github.com/dim13/asn1"
// Invoke is Context-specific Constructed 1
type Invoke struct {
- asn1.Tag `asn1:"tag:1"`
- InvokeId int
- Opcode int `asn1:"optional"`
- Payload struct {
- asn1.RawContent
- } `asn1:"optional"`
+ asn1.Tag `asn1:"tag:1"`
+ InvokeId int
+ Opcode int `asn1:"optional"`
+ asn1.RawValue `asn1:"optional"`
}
// ReturnResult it Context-specific Constructed 2
@@ -19,7 +17,7 @@ type ReturnResult struct {
asn1.Tag `asn1:"tag:2"`
InvokeId int
Result struct {
- asn1.RawContent
- Opcode int
- } `asn1:"optional"`
+ Opcode int `asn1:"optional"`
+ asn1.RawValue `asn1:"optional"`
+ }
}