]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - include/internal/quic_ssl.h
QUIC APL: Correct implementation of time callback override
[thirdparty/openssl.git] / include / internal / quic_ssl.h
index f8469c4fa74b8094f450f02bb2e788edfe2d1980..7ea5ce8063229c68a49b3a5526264bcf1a068c81 100644 (file)
@@ -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