summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-07-26 18:10:16 +0100
committerHugo Landau <hlandau@openssl.org>2023-08-10 18:19:44 +0100
commit17340e87855fb785a986f09208af4279f74a201f (patch)
treed793280a9c79f134c1df38047523ad3cc779e78c /include
parent97684a1517ec07300cb87cebe107fa7a709a04ba (diff)
QUIC TEST: Ensure PING causes ACK generation
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21565)
Diffstat (limited to 'include')
-rw-r--r--include/internal/quic_channel.h6
-rw-r--r--include/internal/quic_tserver.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/include/internal/quic_channel.h b/include/internal/quic_channel.h
index f9f2e30e23..0a033fa67e 100644
--- a/include/internal/quic_channel.h
+++ b/include/internal/quic_channel.h
@@ -384,6 +384,12 @@ int ossl_quic_channel_ping(QUIC_CHANNEL *ch);
/* For testing use. While enabled, ticking is not performed. */
void ossl_quic_channel_set_inhibit_tick(QUIC_CHANNEL *ch, int inhibit);
+/*
+ * These queries exist for diagnostic purposes only. They may roll over.
+ * Do not rely on them for non-testing purposes.
+ */
+uint16_t ossl_quic_channel_get_diag_num_rx_ack(QUIC_CHANNEL *ch);
+
# endif
#endif
diff --git a/include/internal/quic_tserver.h b/include/internal/quic_tserver.h
index 3cbbc279a6..9520deb0c1 100644
--- a/include/internal/quic_tserver.h
+++ b/include/internal/quic_tserver.h
@@ -195,6 +195,12 @@ void ossl_quic_tserver_set_msg_callback(QUIC_TSERVER *srv,
SSL *ssl, void *arg),
void *arg);
+/*
+ * This is similar to ossl_quic_conn_get_channel; it should be used for test
+ * instrumentation only and not to bypass QUIC_TSERVER for 'normal' operations.
+ */
+QUIC_CHANNEL *ossl_quic_tserver_get_channel(QUIC_TSERVER *srv);
+
# endif
#endif