Skip to content

Commit

Permalink
QUIC QTX: 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 #22037)
  • Loading branch information
hlandau committed Feb 2, 2024
1 parent 484b8bd commit 4a3a925
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/internal/quic_record_tx.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ void ossl_qtx_set_msg_callback(OSSL_QTX *qtx, ossl_msg_cb msg_callback,
SSL *msg_callback_ssl);
void ossl_qtx_set_msg_callback_arg(OSSL_QTX *qtx, void *msg_callback_arg);

/* Change QLOG instance in use after instantiation. */
void ossl_qtx_set_qlog(OSSL_QTX *qtx, QLOG *qlog);

/*
* Secret Management
* -----------------
Expand Down
5 changes: 5 additions & 0 deletions ssl/quic/quic_record_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ void ossl_qtx_set_mutator(OSSL_QTX *qtx, ossl_mutate_packet_cb mutatecb,
qtx->mutatearg = mutatearg;
}

void ossl_qtx_set_qlog(OSSL_QTX *qtx, QLOG *qlog)
{
qtx->qlog = qlog;
}

int ossl_qtx_provide_secret(OSSL_QTX *qtx,
uint32_t enc_level,
uint32_t suite_id,
Expand Down

0 comments on commit 4a3a925

Please sign in to comment.