summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_channel_local.h
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-02-21 10:18:59 +0000
committerHugo Landau <hlandau@openssl.org>2023-03-30 11:14:09 +0100
commitb212d554e70930d8ebe425e535b0c3621b961541 (patch)
treeea4cdea0fef0407b264b30ddab24fe0b400bb951 /ssl/quic/quic_channel_local.h
parent134b79c0568457415bdceba03cb355fd746166fc (diff)
QUIC CHANNEL: Allow time source to be overridden
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20348)
Diffstat (limited to 'ssl/quic/quic_channel_local.h')
-rw-r--r--ssl/quic/quic_channel_local.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -34,6 +34,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
* (other than the 0-RTT EL).