From 6084e04b25378a4590798a034633e90791cf74a3 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Wed, 3 May 2023 19:01:12 +0100 Subject: QUIC: Rename SSL_tick, SSL_get_tick_timeout Reviewed-by: Matt Caswell Reviewed-by: Tim Hudson Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20879) --- ssl/quic/quic_impl.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ssl/quic/quic_impl.c') diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 4ba87a32af..3297c93d58 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -820,8 +820,8 @@ int ossl_quic_conn_set_initial_peer_addr(SSL *s, * QUIC Front-End I/O API: Asynchronous I/O Management * =================================================== * - * (BIO/)SSL_tick => ossl_quic_tick - * (BIO/)SSL_get_tick_timeout => ossl_quic_get_tick_timeout + * (BIO/)SSL_handle_events => ossl_quic_handle_events + * (BIO/)SSL_get_event_timeout => ossl_quic_get_event_timeout * (BIO/)SSL_get_poll_fd => ossl_quic_get_poll_fd * */ @@ -839,9 +839,9 @@ static int xso_blocking_mode(const QUIC_XSO *xso) && xso->conn->can_poll_net_wbio; } -/* SSL_tick; ticks the reactor. */ +/* SSL_handle_events; handles events by ticking the reactor. */ QUIC_TAKES_LOCK -int ossl_quic_tick(SSL *s) +int ossl_quic_handle_events(SSL *s) { QCTX ctx; @@ -855,13 +855,13 @@ int ossl_quic_tick(SSL *s) } /* - * SSL_get_tick_timeout. Get the time in milliseconds until the SSL object - * should be ticked by the application by calling SSL_tick(). tv is set to 0 if - * the object should be ticked immediately and tv->tv_sec is set to -1 if no - * timeout is currently active. + * SSL_get_event_timeout. Get the time in milliseconds until the SSL object + * should be ticked by the application by calling SSL_handle_events(). tv is set + * to 0 if the object should be ticked immediately and tv->tv_sec is set to -1 + * if no timeout is currently active. */ QUIC_TAKES_LOCK -int ossl_quic_get_tick_timeout(SSL *s, struct timeval *tv) +int ossl_quic_get_event_timeout(SSL *s, struct timeval *tv) { QCTX ctx; OSSL_TIME deadline = ossl_time_infinite(); -- cgit v1.2.3