diff options
author | Robin Harper <cabrel@zerklabs.com> | 2014-03-13 17:46:49 +0100 |
---|---|---|
committer | Robin Harper <cabrel@zerklabs.com> | 2014-03-13 17:46:49 +0100 |
commit | 375661f7291d03e1fca2c386b0412f31c2060fe9 (patch) | |
tree | c29b300d98fb13508994450be7832ebd288df49c /ber.go | |
parent | Updated references to error (diff) | |
download | asn1-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.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |