From b212d554e70930d8ebe425e535b0c3621b961541 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Tue, 21 Feb 2023 10:18:59 +0000 Subject: QUIC CHANNEL: Allow time source to be overridden Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/20348) --- ssl/quic/quic_channel_local.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ssl/quic/quic_channel_local.h') diff --git a/ssl/quic/quic_channel_local.h b/ssl/quic/quic_channel_local.h index e1e60bf2b4..57db9792a9 100644 --- a/ssl/quic/quic_channel_local.h +++ b/ssl/quic/quic_channel_local.h @@ -33,6 +33,12 @@ struct quic_channel_st { */ CRYPTO_RWLOCK *mutex; + /* + * Callback used to get the current time. + */ + OSSL_TIME (*now_cb)(void *arg); + void *now_cb_arg; + /* * The associated TLS 1.3 connection data. Used to provide the handshake * layer; its 'network' side is plugged into the crypto stream for each EL -- cgit v1.2.3