summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_demux.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-01-16 16:24:17 +0100
committerPauli <pauli@openssl.org>2023-07-05 01:02:26 +0200
commit9280d26a3a14e2aa79ad26cc25e4f41fbaa828ec (patch)
tree0e4a2ca52e59bd6bb5a257b89044bb86c94c5555 /ssl/quic/quic_demux.c
parentQUIC: Implement SSL_rstate_string(_long) (diff)
downloadopenssl-9280d26a3a14e2aa79ad26cc25e4f41fbaa828ec.tar.xz
openssl-9280d26a3a14e2aa79ad26cc25e4f41fbaa828ec.zip
QUIC: Implement SSL_has_pending
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/20061)
Diffstat (limited to 'ssl/quic/quic_demux.c')
-rw-r--r--ssl/quic/quic_demux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/quic/quic_demux.c b/ssl/quic/quic_demux.c
index 94e4a3e27a..160bf28168 100644
--- a/ssl/quic/quic_demux.c
+++ b/ssl/quic/quic_demux.c
@@ -629,3 +629,8 @@ void ossl_quic_demux_reinject_urxe(QUIC_DEMUX *demux,
ossl_list_urxe_insert_head(&demux->urx_pending, e);
e->demux_state = URXE_DEMUX_STATE_PENDING;
}
+
+int ossl_quic_demux_has_pending(const QUIC_DEMUX *demux)
+{
+ return ossl_list_urxe_head(&demux->urx_pending) != NULL;
+}