crypto/tls: expose extension versions in ClientHelloInfo.SupportedVersions
这个提交包含在:
父节点
1bc19494f8
当前提交
052978de5e
@ -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:]
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户