QUIC FIFD: Allow QLOG instance to be changed after instantiation
authorHugo Landau <hlandau@openssl.org>
Mon, 29 Jan 2024 12:34:54 +0000 (12:34 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 2 Feb 2024 11:50:29 +0000 (11:50 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)

include/internal/quic_fifd.h
ssl/quic/quic_fifd.c

index 1271bd5bc4916497ef63061562a990ecc1ebb098..606147c1db83e9e391642bfe8f984440af26d349 100644 (file)
@@ -78,6 +78,8 @@ void ossl_quic_fifd_cleanup(QUIC_FIFD *fifd); /* (no-op) */
 
 int ossl_quic_fifd_pkt_commit(QUIC_FIFD *fifd, QUIC_TXPIM_PKT *pkt);
 
+void ossl_quic_fifd_set_qlog(QUIC_FIFD *fifd, QLOG *qlog);
+
 # endif
 
 #endif
index acd836eff38bc3a501e7e74a7fff613b37154d8e..fc268c542046f0218ae92166ad098ac84080f2a4 100644 (file)
@@ -293,3 +293,8 @@ int ossl_quic_fifd_pkt_commit(QUIC_FIFD *fifd, QUIC_TXPIM_PKT *pkt)
     /* Inform the ACKM. */
     return ossl_ackm_on_tx_packet(fifd->ackm, &pkt->ackm_pkt);
 }
+
+void ossl_quic_fifd_set_qlog(QUIC_FIFD *fifd, QLOG *qlog)
+{
+    fifd->qlog = qlog;
+}