summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-02-22 17:08:26 +0100
committerHugo Landau <hlandau@openssl.org>2023-03-30 12:14:09 +0200
commitdbe7b51a8e3c0e20c3412fe4ff8309730a135255 (patch)
treef7ed269c1d1d8d6d2f5690f367bd7f1712620274 /include
parentQUIC Thread Assisted Mode: Add design document (diff)
downloadopenssl-dbe7b51a8e3c0e20c3412fe4ff8309730a135255.tar.xz
openssl-dbe7b51a8e3c0e20c3412fe4ff8309730a135255.zip
Minor fixes to thread assisted mode
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20348)
Diffstat (limited to 'include')
-rw-r--r--include/internal/quic_tserver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/internal/quic_tserver.h b/include/internal/quic_tserver.h
index 4545630a90..0d0d201497 100644
--- a/include/internal/quic_tserver.h
+++ b/include/internal/quic_tserver.h
@@ -60,6 +60,9 @@ int ossl_quic_tserver_set_handshake_mutator(QUIC_TSERVER *srv,
/* Advances the state machine. */
int ossl_quic_tserver_tick(QUIC_TSERVER *srv);
+/* Returns 1 if we have a (non-terminated) client. */
+int ossl_quic_tserver_is_connected(QUIC_TSERVER *srv);
+
/*
* Returns 1 if we have finished the TLS handshake
*/
@@ -72,6 +75,7 @@ QUIC_TERMINATE_CAUSE ossl_quic_tserver_get_terminate_cause(const QUIC_TSERVER *s
/* Returns 1 if the server is in a terminated state */
int ossl_quic_tserver_is_terminated(const QUIC_TSERVER *srv);
+
/*
* Attempts to read from stream 0. Writes the number of bytes read to
* *bytes_read and returns 1 on success. If no bytes are available, 0 is written