• 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
..
pkix Loading commit data...
cert_pool.go Loading commit data...
pem_decrypt.go Loading commit data...
pem_decrypt_test.go Loading commit data...
pkcs1.go Loading commit data...
pkcs8.go Loading commit data...
pkcs8_test.go Loading commit data...
root.go Loading commit data...
root_darwin.go Loading commit data...
root_plan9.go Loading commit data...
root_stub.go Loading commit data...
root_unix.go Loading commit data...
root_windows.go Loading commit data...
sec1.go Loading commit data...
sec1_test.go Loading commit data...
verify.go Loading commit data...
verify_test.go Loading commit data...
x509.go Loading commit data...
x509_test.go Loading commit data...