1
0

crypto/tls: expose extension versions in ClientHelloInfo.SupportedVersions

Este cometimento está contido em:
Filippo Valsorda 2016-12-10 00:42:13 +01:00 cometido por Peter Wu
ascendente 1bc19494f8
cometimento 052978de5e

Ver ficheiro

@ -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:]