summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2024-02-09 12:52:33 +0000
committerTomas Mraz <tomas@openssl.org>2024-02-19 10:15:46 +0100
commit8c13e0851319ac99413044ac83e7e4a66fb23277 (patch)
tree7ccd5e50135de16325632e9733a0dbc939ae9157 /include
parent40c457029e7861eeedae5c5ca3267e4b668ba205 (diff)
QUIC: Add API for SSL_VALUE_EVENT_HANDLING_MODE
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23535)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ssl.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in
index 8e98e6acf2..4c5477de98 100644
--- a/include/openssl/ssl.h.in
+++ b/include/openssl/ssl.h.in
@@ -2377,6 +2377,11 @@ __owur int SSL_get_conn_close_info(SSL *ssl,
# define SSL_VALUE_QUIC_STREAM_UNI_LOCAL_AVAIL 3
# 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_EVENT_HANDLING_MODE_INHERIT 0
+# define SSL_VALUE_EVENT_HANDLING_MODE_IMPLICIT 1
+# define SSL_VALUE_EVENT_HANDLING_MODE_EXPLICIT 2
int SSL_get_value_uint(SSL *s, uint32_t class_, uint32_t id, uint64_t *v);
int SSL_set_value_uint(SSL *s, uint32_t class_, uint32_t id, uint64_t v);
@@ -2407,6 +2412,13 @@ int SSL_set_value_uint(SSL *s, uint32_t class_, uint32_t id, uint64_t v);
SSL_get_generic_value_uint((ssl), SSL_VALUE_QUIC_STREAM_UNI_REMOTE_AVAIL, \
(value))
+# define SSL_get_event_handling_mode(ssl, value) \
+ SSL_get_generic_value_uint((ssl), SSL_VALUE_EVENT_HANDLING_MODE, \
+ (value))
+# define SSL_set_event_handling_mode(ssl, value) \
+ SSL_set_generic_value_uint((ssl), SSL_VALUE_EVENT_HANDLING_MODE, \
+ (value))
+
# define SSL_POLL_EVENT_NONE 0
# define SSL_POLL_EVENT_F (1U << 0) /* F (Failure) */