• Adam Langley's avatar
    encoding/asn1: fix explicitly tagged Times. · 1fd042c9
    Adam Langley authored
    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
    1fd042c9
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...