# include "internal/quic_ackm.h"
# include "internal/quic_txpim.h"
# include "internal/quic_stream.h"
+# include "internal/qlog.h"
# ifndef OPENSSL_NO_QUIC
void (*sstream_updated)(uint64_t stream_id,
void *arg);
void *sstream_updated_arg;
+ QLOG *qlog;
};
int ossl_quic_fifd_init(QUIC_FIFD *fifd,
void *confirm_frame_arg,
void (*sstream_updated)(uint64_t stream_id,
void *arg),
- void *sstream_updated_arg);
+ void *sstream_updated_arg,
+ QLOG *qlog);
void ossl_quic_fifd_cleanup(QUIC_FIFD *fifd); /* (no-op) */
# include "internal/quic_fc.h"
# include "internal/bio_addr.h"
# include "internal/time.h"
+# include "internal/qlog.h"
# ifndef OPENSSL_NO_QUIC
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 */
/*
* Injected dependencies - crypto streams.
txp_args.cc_data = ch->cc_data;
txp_args.now = get_time;
txp_args.now_arg = ch;
+ txp_args.qlog = ch_get_qlog(ch);
for (pn_space = QUIC_PN_SPACE_INITIAL; pn_space < QUIC_PN_SPACE_NUM; ++pn_space) {
ch->crypto_send[pn_space] = ossl_quic_sstream_new(INIT_CRYPTO_SEND_BUF_LEN);
void *confirm_frame_arg,
void (*sstream_updated)(uint64_t stream_id,
void *arg),
- void *sstream_updated_arg)
+ void *sstream_updated_arg,
+ QLOG *qlog)
{
if (cfq == NULL || ackm == NULL || txpim == NULL
|| get_sstream_by_id == NULL || regen_frame == NULL)
fifd->confirm_frame_arg = confirm_frame_arg;
fifd->sstream_updated = sstream_updated;
fifd->sstream_updated_arg = sstream_updated_arg;
+ fifd->qlog = qlog;
return 1;
}
get_sstream_by_id, txp,
on_regen_notify, txp,
on_confirm_notify, txp,
- on_sstream_updated, txp)) {
+ on_sstream_updated, txp,
+ args->qlog)) {
OPENSSL_free(txp);
return NULL;
}
get_sstream_by_id, NULL,
regen_frame, NULL,
confirm_frame, NULL,
- sstream_updated, NULL)))
+ sstream_updated, NULL,
+ NULL)))
goto err;
for (i = 0; i < OSSL_NELEM(info.sstream); ++i)