projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
QUIC TXP: Allow QLOG instance retrieval via callback
[openssl.git]
/
include
/
internal
/
quic_txp.h
diff --git
a/include/internal/quic_txp.h
b/include/internal/quic_txp.h
index a6d38a2ba9e85a6344dd1847c15eb0c2de3143d6..9c05acc9a507262954689b2faf8d6bf0d8941221 100644
(file)
--- a/
include/internal/quic_txp.h
+++ b/
include/internal/quic_txp.h
@@
-50,7
+50,8
@@
typedef struct ossl_quic_tx_packetiser_args_st {
OSSL_CC_DATA *cc_data; /* QUIC Congestion Controller Instance */
OSSL_TIME (*now)(void *arg); /* Callback to get current time. */
void *now_arg;
OSSL_CC_DATA *cc_data; /* QUIC Congestion Controller Instance */
OSSL_TIME (*now)(void *arg); /* Callback to get current time. */
void *now_arg;
- QLOG *qlog; /* Optional QLOG instance */
+ QLOG *(*get_qlog_cb)(void *arg); /* Optional QLOG retrieval func */
+ void *get_qlog_cb_arg;
/*
* Injected dependencies - crypto streams.
/*
* Injected dependencies - crypto streams.
@@
-139,10
+140,11
@@
int ossl_quic_tx_packetiser_set_peer(OSSL_QUIC_TX_PACKETISER *txp,
const BIO_ADDR *peer);
/*
const BIO_ADDR *peer);
/*
- * Change the QLOG instance in use after instantiation.
+ * Change the QLOG instance
retrieval function
in use after instantiation.
*/
*/
-void ossl_quic_tx_packetiser_set0_qlog(OSSL_QUIC_TX_PACKETISER *txp,
- QLOG *qlog);
+void ossl_quic_tx_packetiser_set_qlog_cb(OSSL_QUIC_TX_PACKETISER *txp,
+ QLOG *(*get_qlog_cb)(void *arg),
+ void *get_qlog_cb_arg);
/*
* Inform the TX packetiser that an EL has been discarded. Idempotent.
/*
* Inform the TX packetiser that an EL has been discarded. Idempotent.