From: Hugo Landau Date: Fri, 9 Feb 2024 12:52:33 +0000 (+0000) Subject: QUIC: Add API for SSL_VALUE_EVENT_HANDLING_MODE X-Git-Tag: openssl-3.3.0-alpha1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c13e0851319ac99413044ac83e7e4a66fb23277;p=thirdparty%2Fopenssl.git QUIC: Add API for SSL_VALUE_EVENT_HANDLING_MODE Reviewed-by: Matt Caswell Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23535) --- diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in index 8e98e6acf29..4c5477de98d 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) */ diff --git a/util/other.syms b/util/other.syms index 3148866fb12..b45ba45bb58 100644 --- a/util/other.syms +++ b/util/other.syms @@ -664,6 +664,8 @@ SSL_get_quic_stream_bidi_local_avail define SSL_get_quic_stream_bidi_remote_avail define SSL_get_quic_stream_uni_local_avail define SSL_get_quic_stream_uni_remote_avail define +SSL_get_event_handling_mode define +SSL_set_event_handling_mode define SSL_CONN_CLOSE_FLAG_LOCAL define SSL_CONN_CLOSE_FLAG_TRANSPORT define SSLv23_client_method define @@ -725,6 +727,10 @@ SSL_VALUE_QUIC_STREAM_BIDI_LOCAL_AVAIL define SSL_VALUE_QUIC_STREAM_BIDI_REMOTE_AVAIL define SSL_VALUE_QUIC_STREAM_UNI_LOCAL_AVAIL define SSL_VALUE_QUIC_STREAM_UNI_REMOTE_AVAIL define +SSL_VALUE_EVENT_HANDLING_MODE define +SSL_VALUE_EVENT_HANDLING_MODE_INHERIT define +SSL_VALUE_EVENT_HANDLING_MODE_IMPLICIT define +SSL_VALUE_EVENT_HANDLING_MODE_EXPLICIT define TLS_DEFAULT_CIPHERSUITES define deprecated 3.0.0 X509_CRL_http_nbio define deprecated 3.0.0 X509_http_nbio define deprecated 3.0.0