diff options
author | Matt Caswell <matt@openssl.org> | 2023-05-08 11:32:04 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-05-24 12:18:33 +0100 |
commit | 8aff8f89f7bec3865b14b550a4c1a7ec7786e3f3 (patch) | |
tree | 14cd6e9c900cf15cf20ffe7f05799fea8f5547a6 | |
parent | e8528c95a0543a218b432d2ea02e6bd0c1e7ab19 (diff) |
Enable tracing of datagrams we have sent
Extend the tracing capability to also trace when we have a datagram to the
peer.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20914)
-rw-r--r-- | ssl/quic/quic_record_tx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ssl/quic/quic_record_tx.c b/ssl/quic/quic_record_tx.c index 9040f2f904..748b4c358c 100644 --- a/ssl/quic/quic_record_tx.c +++ b/ssl/quic/quic_record_tx.c @@ -910,8 +910,14 @@ int ossl_qtx_flush_net(OSSL_QTX *qtx) /* * Remove everything which was successfully sent from the pending queue. */ - for (i = 0; i < wr; ++i) + for (i = 0; i < wr; ++i) { + if (qtx->msg_callback != NULL) + qtx->msg_callback(1, OSSL_QUIC1_VERSION, SSL3_RT_QUIC_DATAGRAM, + msg[i].data, msg[i].data_len, + qtx->msg_callback_s, + qtx->msg_callback_arg); qtx_pending_to_free(qtx); + } total_written += wr; } |