What version of Go are you using (go version)?
go version go1.7.1 linux/amd64
What operating system and processor architecture are you using (go env)?
GOOS="linux"
GOARCH="amd64"
What did you do?
Trying to ASN.1 unmarshal a sequence of object identifiers into a slice of asn1.RawValue:
https://play.golang.org/p/gWzGulJAow
What did you expect to see?
Expected the variable bad to contain a single asn1.RawValue element with the raw encoding of the object identifier.
What did you see instead?
asn1: structure error: sequence tag mismatch
What version of Go are you using (
go version)?go version go1.7.1 linux/amd64What operating system and processor architecture are you using (
go env)?What did you do?
Trying to ASN.1 unmarshal a sequence of object identifiers into a slice of asn1.RawValue:
https://play.golang.org/p/gWzGulJAow
What did you expect to see?
Expected the variable
badto contain a single asn1.RawValue element with the raw encoding of the object identifier.What did you see instead?
asn1: structure error: sequence tag mismatch