Open Lekensteyn opened 7 years ago
Draft 24 adds
The value of selected_version in the HelloRetryRequest |
-- | --
| | | "supported_versions" extension MUST be retained in the ServerHello, |
| | | and a client MUST abort the handshake with an "illegal_parameter" |
| | | alert if the value changes.
Currently the server just closes the connection when no supported groups are available. It should probably send a HRR in this case.
Similarly, the client (PR will be opened "soon") does not expect a HRR, it should retry the CH with appropriate changes (new keyshare for the group).
Important references: https://tools.ietf.org/html/draft-ietf-tls-tls13-18#section-4.1.4 (Hello Retry Request) https://tools.ietf.org/html/draft-ietf-tls-tls13-18#section-4.2.6.1 (PSK Binder)
Note: draft 22 changes the message significantly, requiring different parsing logic.