crypto/tls: expose extension versions in ClientHelloInfo.SupportedVersions
This commit is contained in:
parent
1bc19494f8
commit
052978de5e
@ -901,7 +901,9 @@ func (hs *serverHandshakeState) clientHelloInfo() *ClientHelloInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var supportedVersions []uint16
|
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[:]
|
supportedVersions = suppVersArray[:]
|
||||||
} else if hs.clientHello.vers >= VersionSSL30 {
|
} else if hs.clientHello.vers >= VersionSSL30 {
|
||||||
supportedVersions = suppVersArray[VersionTLS12-hs.clientHello.vers:]
|
supportedVersions = suppVersArray[VersionTLS12-hs.clientHello.vers:]
|
||||||
|
Loading…
Reference in New Issue
Block a user