diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-18 19:30:54 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:11 +0100 |
commit | 2dbc39deacf9d5850eecef515cbc50331750dd22 (patch) | |
tree | 0a484718a8525de642a4d6f26b3fef49d1d38406 /include | |
parent | cb5c208bf2e39bf2367b051136c599cff1fc3683 (diff) | |
download | openssl-new-2dbc39deacf9d5850eecef515cbc50331750dd22.tar.gz |
QUIC APL: Add stream creation APIs
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_channel.h | 7 | ||||
-rw-r--r-- | include/internal/quic_stream_map.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/internal/quic_channel.h b/include/internal/quic_channel.h index d60e4010bd..7ccf6e0bb2 100644 --- a/include/internal/quic_channel.h +++ b/include/internal/quic_channel.h @@ -270,6 +270,13 @@ SSL *ossl_quic_channel_get0_ssl(QUIC_CHANNEL *ch); */ CRYPTO_MUTEX *ossl_quic_channel_get_mutex(QUIC_CHANNEL *ch); +/* + * Creates a new locally-initiated stream in the stream mapper, choosing an + * appropriate stream ID. If is_uni is 1, creates a unidirectional stream, else + * creates a bidirectional stream. + */ +QUIC_STREAM *ossl_quic_channel_new_stream(QUIC_CHANNEL *ch, int is_uni); + # endif #endif diff --git a/include/internal/quic_stream_map.h b/include/internal/quic_stream_map.h index f9a04723c1..0bdd7e88cf 100644 --- a/include/internal/quic_stream_map.h +++ b/include/internal/quic_stream_map.h @@ -101,6 +101,9 @@ struct quic_stream_st { /* A FIN has been retired from the rstream buffer. */ unsigned int recv_fin_retired : 1; + + /* The stream's XSO has been deleted. Pending GC. */ + unsigned int deleted : 1; }; /* |