Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23495)
size_t i, result_count = 0;
SSL_POLL_ITEM *item;
SSL *ssl;
size_t i, result_count = 0;
SSL_POLL_ITEM *item;
SSL *ssl;
- uint64_t events, revents;
+ uint64_t revents;
+ ossl_unused uint64_t events;
+ ossl_unused int do_tick = ((flags & SSL_POLL_FLAG_NO_HANDLE_EVENTS) == 0);
int is_immediate
= (timeout != NULL
&& timeout->tv_sec == 0 && timeout->tv_usec == 0);
int is_immediate
= (timeout != NULL
&& timeout->tv_sec == 0 && timeout->tv_usec == 0);
- int do_tick = ((flags & SSL_POLL_FLAG_NO_HANDLE_EVENTS) == 0);
/*
* Prevent calls which use SSL_poll functionality which is not currently
/*
* Prevent calls which use SSL_poll functionality which is not currently
break;
switch (ssl->type) {
break;
switch (ssl->type) {
case SSL_TYPE_QUIC_CONNECTION:
case SSL_TYPE_QUIC_XSO:
if (!ossl_quic_conn_poll_events(ssl, events, do_tick, &revents))
case SSL_TYPE_QUIC_CONNECTION:
case SSL_TYPE_QUIC_XSO:
if (!ossl_quic_conn_poll_events(ssl, events, do_tick, &revents))
default:
ERR_raise_data(ERR_LIB_SSL, SSL_R_POLL_REQUEST_NOT_SUPPORTED,
default:
ERR_raise_data(ERR_LIB_SSL, SSL_R_POLL_REQUEST_NOT_SUPPORTED,