• Adam Langley's avatar
    crypto/x509: support IP SANs. · 5b20a18f
    Adam Langley authored
    Subject Alternative Names in X.509 certificates may include IP
    addresses. This change adds support for marshaling, unmarshaling and
    verifying this form of SAN.
    
    It also causes IP addresses to only be checked against IP SANs,
    rather than against hostnames as was previously the case. This
    reflects RFC 6125.
    
    Fixes #4658.
    
    R=golang-dev, mikioh.mikioh, bradfitz
    CC=golang-dev
    https://golang.org/cl/7336046
    5b20a18f
server.go 6.59 KB