Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21905)
While QUICv1 assigns specific meaning to the low two bits of a QUIC stream ID,
QUIC stream IDs in future versions of QUIC are not required to have the same
semantics. Do not determine stream properties using these bits. Instead, use
-SSL_get_stream_type() to determine the stream type and SSL_get_stream_origin()
+SSL_get_stream_type() to determine the stream type and SSL_get_stream_is_local()
to determine the stream initiator.
The SSL_get_stream_type() identifies the type of a QUIC stream based on its
info->reason_len = tc->reason_len;
info->flags = 0;
if (!tc->remote)
- info->flags |= SSL_CONN_CLOSE_FLAG_LOCAL;
+ info->flags |= SSL_CONN_CLOSE_FLAG_LOCAL;
if (!tc->app)
info->flags |= SSL_CONN_CLOSE_FLAG_TRANSPORT;
return 1;