update validation of version negotiation

The negotiated_version parameter was recently moved from the
client_hello TLS handshake message to the encrypted_extensions.
This commit is contained in:
Marten Seemann
2017-12-05 10:04:44 +07:00
parent ccd91a36b7
commit 7c8715616e
5 changed files with 40 additions and 33 deletions

View File

@@ -24,12 +24,12 @@ type transportParameter struct {
}
type clientHelloTransportParameters struct {
NegotiatedVersion uint32 // actually a protocol.VersionNumber
InitialVersion uint32 // actually a protocol.VersionNumber
Parameters []transportParameter `tls:"head=2"`
InitialVersion uint32 // actually a protocol.VersionNumber
Parameters []transportParameter `tls:"head=2"`
}
type encryptedExtensionsTransportParameters struct {
NegotiatedVersion uint32 // actually a protocol.VersionNumber
SupportedVersions []uint32 `tls:"head=1"` // actually a protocol.VersionNumber
Parameters []transportParameter `tls:"head=2"`
}