• 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
..
ascii85 Loading commit data...
asn1 Loading commit data...
base32 Loading commit data...
base64 Loading commit data...
binary Loading commit data...
csv Loading commit data...
gob Loading commit data...
hex Loading commit data...
json Loading commit data...
pem Loading commit data...
xml Loading commit data...
encoding.go Loading commit data...