Skip to content

Commit

Permalink
QUIC FIFD: Allow QLOG instance to be changed after instantiation
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from openssl#22037)
  • Loading branch information
hlandau authored and Sashan committed Feb 12, 2024
1 parent 3c8edde commit 27bb107
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/internal/quic_fifd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions ssl/quic/quic_fifd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 27bb107

Please sign in to comment.