Browse Source

crypto/tls: expose extension versions in ClientHelloInfo.SupportedVersions

v1.2.3
Filippo Valsorda 8 years ago
committed by Peter Wu
parent
commit
052978de5e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      handshake_server.go

+ 3
- 1
handshake_server.go View File

@@ -901,7 +901,9 @@ func (hs *serverHandshakeState) clientHelloInfo() *ClientHelloInfo {
}

var supportedVersions []uint16
if hs.clientHello.vers > VersionTLS12 {
if hs.clientHello.supportedVersions != nil {
supportedVersions = hs.clientHello.supportedVersions
} else if hs.clientHello.vers > VersionTLS12 {
supportedVersions = suppVersArray[:]
} else if hs.clientHello.vers >= VersionSSL30 {
supportedVersions = suppVersArray[VersionTLS12-hs.clientHello.vers:]


Loading…
Cancel
Save