summaryrefslogtreecommitdiffstats
path: root/include/internal/quic_ssl.h
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-05-23 12:23:06 +0100
committerPauli <pauli@openssl.org>2023-06-16 09:26:28 +1000
commite3e9794aa49f61e5b034608488034daa01125c85 (patch)
tree1e49edb14740080d29ecab8175ed9269ff6180c0 /include/internal/quic_ssl.h
parent754d2282cd50fef14971605d7151623bb11e3fd6 (diff)
QUIC APL: Correct implementation of time callback override
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21029)
Diffstat (limited to 'include/internal/quic_ssl.h')
-rw-r--r--include/internal/quic_ssl.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/internal/quic_ssl.h b/include/internal/quic_ssl.h
index f8469c4fa7..7ea5ce8063 100644
--- a/include/internal/quic_ssl.h
+++ b/include/internal/quic_ssl.h
@@ -93,12 +93,13 @@ __owur int ossl_quic_get_conn_close_info(SSL *ssl,
size_t info_len);
/*
- * Used to override ossl_time_now() for debug purposes. Must be called before
+ * Used to override ossl_time_now() for debug purposes. While this may be
+ * overridden at any time, expect strange results if you change it after
* connecting.
*/
-void ossl_quic_conn_set_override_now_cb(SSL *s,
- OSSL_TIME (*now_cb)(void *arg),
- void *now_cb_arg);
+int ossl_quic_conn_set_override_now_cb(SSL *s,
+ OSSL_TIME (*now_cb)(void *arg),
+ void *now_cb_arg);
/*
* Condvar waiting in the assist thread doesn't support time faking as it relies