diff options
Diffstat (limited to 'ssl/quic/quic_impl.c')
-rw-r--r-- | ssl/quic/quic_impl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 2f97f7c6b5..6a28c00c75 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -1868,6 +1868,20 @@ int ossl_quic_get_stream_type(SSL *s) } /* + * SSL_get_stream_id + * ----------------- + */ +uint64_t ossl_quic_get_stream_id(SSL *s) +{ + QCTX ctx; + + if (!expect_quic_with_stream(s, /*remote_init=*/-1, &ctx)) + return UINT64_MAX; + + return ctx.xso->stream->id; +} + +/* * QUIC Front-End I/O API: SSL_CTX Management * ========================================== */ |