summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2023-10-17 10:00:58 +0200
committerMatt Caswell <matt@openssl.org>2023-10-20 16:29:28 +0100
commit7757f5ef731ad4e8d6c0f59ef752e4f726ba4f90 (patch)
treebac56bfc65b11b4d72cff176130d95fa780fa2d8 /include
parent8e520d2714abf4c6254ceec24b57f238433541ee (diff)
QUIC: Add handling of SSL_get_shutdown()
Return SSL_SENT_SHUTDOWN and SSL_RECEIVED_SHUTDOWN with semantics similar to TLS connections. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22408)
Diffstat (limited to 'include')
-rw-r--r--include/internal/quic_channel.h1
-rw-r--r--include/internal/quic_ssl.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/internal/quic_channel.h b/include/internal/quic_channel.h
index 0841001c23..f46db0637e 100644
--- a/include/internal/quic_channel.h
+++ b/include/internal/quic_channel.h
@@ -320,6 +320,7 @@ QUIC_STREAM *ossl_quic_channel_get_stream_by_id(QUIC_CHANNEL *ch,
int ossl_quic_channel_is_term_any(const QUIC_CHANNEL *ch);
const QUIC_TERMINATE_CAUSE *
ossl_quic_channel_get_terminate_cause(const QUIC_CHANNEL *ch);
+int ossl_quic_channel_is_closing(const QUIC_CHANNEL *ch);
int ossl_quic_channel_is_terminated(const QUIC_CHANNEL *ch);
int ossl_quic_channel_is_active(const QUIC_CHANNEL *ch);
int ossl_quic_channel_is_handshake_complete(const QUIC_CHANNEL *ch);
diff --git a/include/internal/quic_ssl.h b/include/internal/quic_ssl.h
index 66cea1bfe1..52d4527c81 100644
--- a/include/internal/quic_ssl.h
+++ b/include/internal/quic_ssl.h
@@ -125,6 +125,7 @@ void ossl_quic_conn_force_assist_thread_wake(SSL *s);
QUIC_CHANNEL *ossl_quic_conn_get_channel(SSL *s);
int ossl_quic_has_pending(const SSL *s);
+int ossl_quic_get_shutdown(const SSL *s);
# endif