summaryrefslogtreecommitdiffstats
path: root/include/internal/quic_channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/internal/quic_channel.h')
-rw-r--r--include/internal/quic_channel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/internal/quic_channel.h b/include/internal/quic_channel.h
index 1f7ef71ed4..bba7256d03 100644
--- a/include/internal/quic_channel.h
+++ b/include/internal/quic_channel.h
@@ -111,6 +111,13 @@ typedef struct quic_channel_args_st {
* mutex primitive or using its RW mutex primitive.
*/
CRYPTO_MUTEX *mutex;
+
+ /*
+ * Optional function pointer to use to retrieve the current time. If NULL,
+ * ossl_time_now() is used.
+ */
+ OSSL_TIME (*now_cb)(void *arg);
+ void *now_cb_arg;
} QUIC_CHANNEL_ARGS;
typedef struct quic_channel_st QUIC_CHANNEL;