From 3380b7c704328a1a54f9edcdfd34f1a6dec4b543 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 9 Oct 2015 16:16:46 +0200 Subject: Switch to RawValue --- rose/rose.go | 16 +++++++--------- 1 file 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"` + } } -- cgit v1.2.3