• Adam Langley's avatar
    encoding/asn1: don't encode strings with '*' as PrintableString. · 3b186db7
    Adam Langley authored
    The '*' character is not allowed in ASN.1 PrintableString. However, due
    to wide-spread use, we permit it so that we can parse many certificates
    with wildcards. However, that also meant that generic strings with
    asterisks in would be encoded as PrintableString.
    
    This change makes the default for such strings to be UTF8String. Thus,
    while the code PrintableStrings containing '*', it will not generate
    them unless the string type was specified in the struct field tag.
    
    Change-Id: I2d458da36649427352eeaa50a1b6020108b2ccbd
    Reviewed-on: https://go-review.googlesource.com/68990Reviewed-by: 's avatarAdam Langley <agl@golang.org>
    3b186db7
Name
Last commit
Last update
..
asn1.go Loading commit data...
asn1_test.go Loading commit data...
common.go Loading commit data...
marshal.go Loading commit data...
marshal_test.go Loading commit data...