From 256eee3f3f500a50a434615a054b35a42a2f78b1 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Tue, 23 May 2023 12:23:06 +0100 Subject: QUIC RX: Refactor key update callback to provide PN Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/21029) --- include/internal/quic_record_rx.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/internal/quic_record_rx.h b/include/internal/quic_record_rx.h index ece16a3bfc..f8527eaae6 100644 --- a/include/internal/quic_record_rx.h +++ b/include/internal/quic_record_rx.h @@ -495,9 +495,11 @@ uint64_t ossl_qrx_get_key_epoch(OSSL_QRX *qrx); * Sets an optional callback which will be called when the key epoch changes. * * The callback is optional and can be unset by passing NULL for cb. - * cb_arg is an opaque value passed to cb. + * cb_arg is an opaque value passed to cb. pn is the PN of the packet. + * Since key update is only supported for 1-RTT packets, the PN is always + * in the Application Data PN space. */ -typedef void (ossl_qrx_key_update_cb)(void *arg); +typedef void (ossl_qrx_key_update_cb)(QUIC_PN pn, void *arg); int ossl_qrx_set_key_update_cb(OSSL_QRX *qrx, ossl_qrx_key_update_cb *cb, void *cb_arg); -- cgit v1.2.3