diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-02-12 09:49:58 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-02-19 10:15:46 +0100 |
commit | 9f2349aebe04c0af54a5ba7ede6b1dcd6bee2124 (patch) | |
tree | ffacceb5dd10920656d6a984cac8e1fdfd1b249c /include | |
parent | 410270d1ac7f9a089d63d68be2e7c714045191fc (diff) |
QUIC QTX: Allow QLOG instance retrieval via callback
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23535)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_record_tx.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/internal/quic_record_tx.h b/include/internal/quic_record_tx.h index 46f61a2e58..3f1de5d90e 100644 --- a/include/internal/quic_record_tx.h +++ b/include/internal/quic_record_tx.h @@ -49,8 +49,9 @@ typedef struct ossl_qtx_args_st { /* Maximum datagram payload length (MDPL) for TX purposes. */ size_t mdpl; - /* QLOG instance to use, or NULL. */ - QLOG *qlog; + /* Callback returning QLOG instance to use, or NULL. */ + QLOG *(*get_qlog_cb)(void *arg); + void *get_qlog_cb_arg; } OSSL_QTX_ARGS; /* Instantiates a new QTX. */ @@ -68,8 +69,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_set0_qlog(OSSL_QTX *qtx, QLOG *qlog); +/* Change QLOG instance retrieval callback in use after instantiation. */ +void ossl_qtx_set_qlog_cb(OSSL_QTX *qtx, QLOG *(*get_qlog_cb)(void *arg), + void *get_qlog_cb_arg); /* * Secret Management |