forked from quic-go/quic-go
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:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user