1
0
mirror of https://github.com/golang/go synced 2024-11-25 07:57:56 -07:00

asn1: accept UTF8 strings as ASN.1 ANY values

R=bradfitz
CC=golang-dev
https://golang.org/cl/5172042
This commit is contained in:
Adam Langley 2011-10-14 15:06:11 -04:00
parent c4b9c8bb7d
commit 37e802a7c5

View File

@ -516,6 +516,8 @@ func parseField(v reflect.Value, bytes []byte, initOffset int, params fieldParam
result, err = parseIA5String(innerBytes)
case tagT61String:
result, err = parseT61String(innerBytes)
case tagUTF8String:
result, err = parseUTF8String(innerBytes)
case tagInteger:
result, err = parseInt64(innerBytes)
case tagBitString: