Closed kriskwiatkowski closed 6 years ago
Current code
handshake_messages.go: ... svData := findExtension(data, extensionSupportedVersions) if svData != nil { if len(svData) != 2 { return alertDecodeError } if m.vers != VersionTLS12 { return alertDecodeError } m.vers = uint16(svData[0])<<8 | uint16(svData[1]) }
As per 4.2.1, if svData is < 0x0304, client MUST abort with illegal_parameter (as server has negotiated TLS 1.2 or older, in which case it MUST NOT send back supportedVersions extension)
Current code
As per 4.2.1, if svData is < 0x0304, client MUST abort with illegal_parameter (as server has negotiated TLS 1.2 or older, in which case it MUST NOT send back supportedVersions extension)