summaryrefslogtreecommitdiffstats
path: root/ber.go
diff options
context:
space:
mode:
authorRobin Harper <cabrel@zerklabs.com>2014-03-13 17:46:49 +0100
committerRobin Harper <cabrel@zerklabs.com>2014-03-13 17:46:49 +0100
commit375661f7291d03e1fca2c386b0412f31c2060fe9 (patch)
treec29b300d98fb13508994450be7832ebd288df49c /ber.go
parentUpdated references to error (diff)
downloadasn1-ber-375661f7291d03e1fca2c386b0412f31c2060fe9.tar
asn1-ber-375661f7291d03e1fca2c386b0412f31c2060fe9.tar.gz
asn1-ber-375661f7291d03e1fca2c386b0412f31c2060fe9.tar.bz2
asn1-ber-375661f7291d03e1fca2c386b0412f31c2060fe9.tar.lz
asn1-ber-375661f7291d03e1fca2c386b0412f31c2060fe9.tar.xz
asn1-ber-375661f7291d03e1fca2c386b0412f31c2060fe9.tar.zst
asn1-ber-375661f7291d03e1fca2c386b0412f31c2060fe9.zip
Diffstat (limited to 'ber.go')
-rw-r--r--ber.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ber.go b/ber.go
index 31c43bd..f670f8f 100644
--- a/ber.go
+++ b/ber.go
@@ -12,6 +12,7 @@ type Packet struct {
TagType uint8
Tag uint8
Value interface{}
+ ByteValue []byte
Data *bytes.Buffer
Children []*Packet
Description string
@@ -298,6 +299,8 @@ func decodePacket(data []byte) (*Packet, []byte) {
}
} else if p.ClassType == ClassUniversal {
p.Data.Write(data[datapos : datapos+datalen])
+ p.ByteValue = value_data
+
switch p.Tag {
case TagEOC:
case TagBoolean: