• Filippo Valsorda's avatar
    crypto/tls: implement TLS 1.3 version-specific messages · 0663fe98
    Filippo Valsorda authored
    Note that there is significant code duplication due to extensions with
    the same format appearing in different messages in TLS 1.3. This will be
    cleaned up in a future refactor once CL 145317 is merged.
    
    Enforcing the presence/absence of each extension in each message is left
    to the upper layer, based on both protocol version and extensions
    advertised in CH and CR. Duplicated extensions and unknown extensions in
    SH, EE, HRR, and CT will be tightened up in a future CL.
    
    The TLS 1.2 CertificateStatus message was restricted to accepting only
    type OCSP as any other type (none of which are specified so far) would
    have to be negotiated.
    
    Updates #9671
    
    Change-Id: I7c42394c5cc0af01faa84b9b9f25fdc6e7cfbb9e
    Reviewed-on: https://go-review.googlesource.com/c/145477Reviewed-by: 's avatarAdam Langley <agl@golang.org>
    0663fe98
handshake_server.go 22 KB