Skip to content

Commit

Permalink
QUIC CONFORMANCE: RFC 9000 s. 17.2.5.1
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #21135)
  • Loading branch information
hlandau authored and paulidale committed Jul 16, 2023
1 parent fd0d593 commit 212616e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ssl/quic/quic_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2298,6 +2298,13 @@ static int ch_retry(QUIC_CHANNEL *ch,
{
void *buf;

/*
* RFC 9000 s. 17.2.5.1: "A client MUST discard a Retry packet that contains
* a SCID field that is identical to the DCID field of its initial packet."
*/
if (ossl_quic_conn_id_eq(&ch->init_dcid, retry_scid))
return 0;

/* We change to using the SCID in the Retry packet as the DCID. */
if (!ossl_quic_tx_packetiser_set_cur_dcid(ch->txp, retry_scid))
return 0;
Expand Down

0 comments on commit 212616e

Please sign in to comment.