don't accept transport parameters in the NewSessionTicket message

This was recently removed from the WG draft.
This commit is contained in:
Marten Seemann 2018-02-08 11:09:42 +08:00
parent d71850eb2f
commit f0eb5a60f1
2 changed files with 1 additions and 14 deletions

View file

@ -63,17 +63,12 @@ func (h *extensionHandlerClient) Receive(hType mint.HandshakeType, el *mint.Exte
return err
}
if hType != mint.HandshakeTypeEncryptedExtensions && hType != mint.HandshakeTypeNewSessionTicket {
if hType != mint.HandshakeTypeEncryptedExtensions {
if found {
return fmt.Errorf("Unexpected QUIC extension in handshake message %d", hType)
}
return nil
}
if hType == mint.HandshakeTypeNewSessionTicket {
// the extension it's optional in the NewSessionTicket message
// TODO: handle this
return nil
}
// hType == mint.HandshakeTypeEncryptedExtensions
if !found {