diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-02-14 08:44:36 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2024-03-09 08:56:59 +0000 |
commit | b317583f4ad8a8e742781381fa10db5bcd072585 (patch) | |
tree | 1e0910f353429ad59060636317bcfc6cd5ccf7fd /include | |
parent | a24f29bbb4e7c2c73b0b3b2193b81c9b444b0864 (diff) |
QUIC: Add stream write buffer queries
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23584)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ssl.h.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in index 0667fc3ec8..988e637dda 100644 --- a/include/openssl/ssl.h.in +++ b/include/openssl/ssl.h.in @@ -2381,6 +2381,9 @@ __owur int SSL_get_conn_close_info(SSL *ssl, # define SSL_VALUE_QUIC_STREAM_UNI_REMOTE_AVAIL 4 # define SSL_VALUE_QUIC_IDLE_TIMEOUT 5 # define SSL_VALUE_EVENT_HANDLING_MODE 6 +# define SSL_VALUE_STREAM_WRITE_BUF_SIZE 7 +# define SSL_VALUE_STREAM_WRITE_BUF_USED 8 +# define SSL_VALUE_STREAM_WRITE_BUF_AVAIL 9 # define SSL_VALUE_EVENT_HANDLING_MODE_INHERIT 0 # define SSL_VALUE_EVENT_HANDLING_MODE_IMPLICIT 1 @@ -2422,6 +2425,16 @@ int SSL_set_value_uint(SSL *s, uint32_t class_, uint32_t id, uint64_t v); SSL_set_generic_value_uint((ssl), SSL_VALUE_EVENT_HANDLING_MODE, \ (value)) +# define SSL_get_stream_write_buf_size(ssl, value) \ + SSL_get_generic_value_uint((ssl), SSL_VALUE_STREAM_WRITE_BUF_SIZE, \ + (value)) +# define SSL_get_stream_write_buf_used(ssl, value) \ + SSL_get_generic_value_uint((ssl), SSL_VALUE_STREAM_WRITE_BUF_USED, \ + (value)) +# define SSL_get_stream_write_buf_avail(ssl, value) \ + SSL_get_generic_value_uint((ssl), SSL_VALUE_STREAM_WRITE_BUF_AVAIL, \ + (value)) + # define SSL_POLL_EVENT_NONE 0 # define SSL_POLL_EVENT_F (1U << 0) /* F (Failure) */ |