From: Hugo Landau Date: Mon, 29 Jan 2024 12:34:54 +0000 (+0000) Subject: QUIC FIFD: Allow QLOG instance to be changed after instantiation X-Git-Tag: openssl-3.3.0-alpha1~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=484b8bd0f550da8728000dc4c9e36cb273296f73;p=thirdparty%2Fopenssl.git QUIC FIFD: Allow QLOG instance to be changed after instantiation Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/22037) --- diff --git a/include/internal/quic_fifd.h b/include/internal/quic_fifd.h index 1271bd5bc49..606147c1db8 100644 --- a/include/internal/quic_fifd.h +++ b/include/internal/quic_fifd.h @@ -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 diff --git a/ssl/quic/quic_fifd.c b/ssl/quic/quic_fifd.c index acd836eff38..fc268c54204 100644 --- a/ssl/quic/quic_fifd.c +++ b/ssl/quic/quic_fifd.c @@ -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; +}