From bde149b75cfa796cf38c5755438446dae05519c5 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 8 Oct 2015 17:59:49 +0200 Subject: Use github.com/dim13/asn1 --- rose/rose.go | 19 ++++++++++++++----- 1 file 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 } } -- cgit v1.2.3