diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-05-23 12:23:06 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-06-16 09:26:28 +1000 |
commit | e3e9794aa49f61e5b034608488034daa01125c85 (patch) | |
tree | 1e49edb14740080d29ecab8175ed9269ff6180c0 /include | |
parent | 754d2282cd50fef14971605d7151623bb11e3fd6 (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')
-rw-r--r-- | include/internal/quic_ssl.h | 9 |
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 |