summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-30 13:09:13 +0100
committerHugo Landau <hlandau@openssl.org>2023-09-01 14:02:50 +0100
commitd2e9e12b23fe331b71abe8c201f2610266090dde (patch)
treee9dae0b3942a2dd2d6b995f5430847c9799e0801 /ssl/ssl_lib.c
parent8d7f034622c0235d06f4d6526f71dcab2f71b0c6 (diff)
QUIC APL: Allow stream origin to be queried
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21905)
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 06efb4380a..b83f11fa5b 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -7474,6 +7474,18 @@ uint64_t SSL_get_stream_id(SSL *s)
#endif
}
+int SSL_is_stream_local(SSL *s)
+{
+#ifndef OPENSSL_NO_QUIC
+ if (!IS_QUIC(s))
+ return -1;
+
+ return ossl_quic_is_stream_local(s);
+#else
+ return -1;
+#endif
+}
+
int SSL_set_default_stream_mode(SSL *s, uint32_t mode)
{
#ifndef OPENSSL_NO_QUIC