mirror of
https://github.com/nginx/nginx.git
synced 2024-11-21 16:28:40 +00:00
QUIC: discarding 0-RTT keys.
For simplicity, this is done on successful decryption of a 1-RTT packet.
This commit is contained in:
parent
250baed4ee
commit
58b92177e7
@ -1022,6 +1022,16 @@ ngx_quic_handle_payload(ngx_connection_t *c, ngx_quic_header_t *pkt)
|
||||
}
|
||||
}
|
||||
|
||||
if (pkt->level == ssl_encryption_application) {
|
||||
/*
|
||||
* RFC 9001, 4.9.3. Discarding 0-RTT Keys
|
||||
*
|
||||
* After receiving a 1-RTT packet, servers MUST discard
|
||||
* 0-RTT keys within a short time
|
||||
*/
|
||||
ngx_quic_discard_ctx(c, ssl_encryption_early_data);
|
||||
}
|
||||
|
||||
if (qc->closing) {
|
||||
/*
|
||||
* RFC 9000, 10.2. Immediate Close
|
||||
|
Loading…
Reference in New Issue
Block a user