diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-02-12 09:49:32 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-02-19 10:15:46 +0100 |
commit | 410270d1ac7f9a089d63d68be2e7c714045191fc (patch) | |
tree | 62a61e6bb2065870989da93585af860b95927737 /include/internal | |
parent | 4a2e39dc1ce52bbee6571f48548a47f04bd857b4 (diff) | |
download | openssl-410270d1ac7f9a089d63d68be2e7c714045191fc.tar.gz |
QUIC FIFD: 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/internal')
-rw-r--r-- | include/internal/quic_fifd.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/internal/quic_fifd.h b/include/internal/quic_fifd.h index 0f5462c2a3..a0354bdf78 100644 --- a/include/internal/quic_fifd.h +++ b/include/internal/quic_fifd.h @@ -46,7 +46,8 @@ struct quic_fifd_st { void (*sstream_updated)(uint64_t stream_id, void *arg); void *sstream_updated_arg; - QLOG *qlog; + QLOG *(*get_qlog_cb)(void *arg); + void *get_qlog_cb_arg; }; int ossl_quic_fifd_init(QUIC_FIFD *fifd, @@ -72,13 +73,15 @@ int ossl_quic_fifd_init(QUIC_FIFD *fifd, void (*sstream_updated)(uint64_t stream_id, void *arg), void *sstream_updated_arg, - QLOG *qlog); + QLOG *(*get_qlog_cb)(void *arg), + void *get_qlog_cb_arg); 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_set0_qlog(QUIC_FIFD *fifd, QLOG *qlog); +void ossl_quic_fifd_set_qlog_cb(QUIC_FIFD *fifd, QLOG *(*get_qlog_cb)(void *arg), + void *arg); # endif |