• Adam Langley's avatar
    crypto/x509: expose arbitary X.509 extensions. · 87404c98
    Adam Langley authored
    This change allows people who want to parse or set odd X.509 extensions
    to do so without having to add support for them all to the package.
    
    I tried to make it so that only a single member: Extensions would be
    needed. However, that would mean detecting when the caller had altered
    the contents of it so that parsing and marshaling a certificate
    wouldn't ignore all changes to the other members. This ended up being
    messy, thus the current design where there are two members: one for
    reading and another for writing.
    
    As crypto/x509 adds support for more extensions in the future, the raw
    extensions will still be in Extensions for older code that expects it
    there. Also, future extensions will be overridden by any raw extensions
    added to ExtraExtensions by code that was written before support was
    added.
    
    R=golang-dev, r
    CC=golang-dev, jpsugar
    https://golang.org/cl/12056043
    87404c98
Name
Last commit
Last update
..
aes Loading commit data...
cipher Loading commit data...
des Loading commit data...
dsa Loading commit data...
ecdsa Loading commit data...
elliptic Loading commit data...
hmac Loading commit data...
md5 Loading commit data...
rand Loading commit data...
rc4 Loading commit data...
rsa Loading commit data...
sha1 Loading commit data...
sha256 Loading commit data...
sha512 Loading commit data...
subtle Loading commit data...
tls Loading commit data...
x509 Loading commit data...
crypto.go Loading commit data...