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 | cb5c208bf2e39bf2367b051136c599cff1fc3683 (patch) | |
tree | 9c73cd585825736cebe9ebfac7325218f3bbacb6 /include | |
parent | 26ad16ea84c58d91375491c0872e43dc27915b4a (diff) |
QUIC APL: Refactor stream-related code into QUIC_XSO object
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_ssl.h | 1 | ||||
-rw-r--r-- | include/openssl/ssl.h.in | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/internal/quic_ssl.h b/include/internal/quic_ssl.h index b0b1b7fb19..97ee2c9218 100644 --- a/include/internal/quic_ssl.h +++ b/include/internal/quic_ssl.h @@ -65,6 +65,7 @@ BIO *ossl_quic_conn_get_net_rbio(const SSL *s); BIO *ossl_quic_conn_get_net_wbio(const SSL *s); __owur int ossl_quic_conn_set_initial_peer_addr(SSL *s, const BIO_ADDR *peer_addr); +__owur SSL *ossl_quic_conn_stream_new(SSL *s, uint64_t flags); /* * Used to override ossl_time_now() for debug purposes. Must be called before diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in index 38dc3e5172..9593e6bfed 100644 --- a/include/openssl/ssl.h.in +++ b/include/openssl/ssl.h.in @@ -2266,6 +2266,10 @@ __owur int SSL_net_write_desired(SSL *s); __owur int SSL_set_blocking_mode(SSL *s, int blocking); __owur int SSL_get_blocking_mode(SSL *s); __owur int SSL_set_initial_peer_addr(SSL *s, const BIO_ADDR *peer_addr); + +#define SSL_STREAM_FLAG_UNI (1U << 0) +__owur SSL *SSL_new_stream(SSL *s, uint64_t flags); + # ifndef OPENSSL_NO_QUIC __owur int SSL_inject_net_dgram(SSL *s, const unsigned char *buf, size_t buf_len, |