go/src/encoding
Adam Langley 1fd042c9aa encoding/asn1: fix explicitly tagged Times.
https://golang.org/cl/153770043/ tried to fix the case where a
implicitly tagged Time, that happened to have the same tag as
GENERALIZEDTIME, shouldn't be parsed as a GENERALIZEDTIME.

It did so, mistakenly, by testing whether params.tag != nil. But
explicitly tagged values also have a non-nil tag and there the inner
tag actually does encode the type of the value.

This change instead tests whether the tag class is UNIVERSAL before
assuming that the tag contains type information.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/152380044
2014-10-09 17:37:40 -07:00
..
ascii85 build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
asn1 encoding/asn1: fix explicitly tagged Times. 2014-10-09 17:37:40 -07:00
base32 build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
base64 build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
binary encoding/binary: fix error message 2014-10-02 12:53:51 -07:00
csv build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
gob encoding/gob: fix 386 build 2014-09-25 17:16:27 -07:00
hex build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
json encoding/json: fix handling of null with ,string fields 2014-10-07 11:07:04 -04:00
pem build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
xml build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
encoding.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00