QLOG: Wiring: QUIC QTX
authorHugo Landau <hlandau@openssl.org>
Fri, 8 Sep 2023 12:56:32 +0000 (13:56 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 2 Feb 2024 11:49:34 +0000 (11:49 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)

include/internal/quic_record_tx.h
ssl/quic/quic_record_tx.c

index 068899832610bfa72479d334af348e051132e61a..68b43f58e9bc4d0bb9f7cae49cb10775c747bf67 100644 (file)
@@ -15,6 +15,7 @@
 # include "internal/quic_types.h"
 # include "internal/quic_predef.h"
 # include "internal/quic_record_util.h"
+# include "internal/qlog.h"
 
 # ifndef OPENSSL_NO_QUIC
 
@@ -47,6 +48,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;
 } OSSL_QTX_ARGS;
 
 /* Instantiates a new QTX. */
index c01abed0d66a4d42d60f6bcb533a610185b43a1e..bc37f8d9eece0e9c67d3836870f758e0bc084ec6 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "internal/quic_record_tx.h"
+#include "internal/qlog_event_helpers.h"
 #include "internal/bio_addr.h"
 #include "internal/common.h"
 #include "quic_record_shared.h"
@@ -60,6 +61,9 @@ struct ossl_qtx_st {
     /* TX BIO. */
     BIO                        *bio;
 
+    /* QLOG instance if in use, or NULL. */
+    QLOG                       *qlog;
+
     /* TX maximum datagram payload length. */
     size_t                      mdpl;
 
@@ -117,6 +121,7 @@ OSSL_QTX *ossl_qtx_new(const OSSL_QTX_ARGS *args)
     qtx->propq              = args->propq;
     qtx->bio                = args->bio;
     qtx->mdpl               = args->mdpl;
+    qtx->qlog               = args->qlog;
     return qtx;
 }