diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-08-30 13:09:13 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-09-01 14:02:50 +0100 |
commit | d2e9e12b23fe331b71abe8c201f2610266090dde (patch) | |
tree | e9dae0b3942a2dd2d6b995f5430847c9799e0801 /ssl/ssl_lib.c | |
parent | 8d7f034622c0235d06f4d6526f71dcab2f71b0c6 (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.c | 12 |
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 |