summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2023-05-26 15:54:56 +0200
committerTomas Mraz <tomas@openssl.org>2023-07-07 15:13:29 +0200
commit5c3474ea563ed95bb7c86c08867139613655276b (patch)
treeb85a2fd2bdbe7eebf00a5311b6acea26dd2c7a89 /include
parent76696a5413db0a93e374f9f0f55e5694f93ecc0e (diff)
QUIC err handling: Properly report network errors
We return SSL_ERROR_SYSCALL when network error is encountered. Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21087)
Diffstat (limited to 'include')
-rw-r--r--include/internal/quic_channel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/internal/quic_channel.h b/include/internal/quic_channel.h
index 8cc165ee8f..bfa5818574 100644
--- a/include/internal/quic_channel.h
+++ b/include/internal/quic_channel.h
@@ -216,6 +216,11 @@ void ossl_quic_channel_raise_protocol_error(QUIC_CHANNEL *ch,
uint64_t error_code,
uint64_t frame_type,
const char *reason);
+/*
+ * Returns 1 if permanent net error was detected on the QUIC_CHANNEL,
+ * 0 otherwise.
+ */
+int ossl_quic_channel_net_error(QUIC_CHANNEL *ch);
/* For RXDP use. */
void ossl_quic_channel_on_remote_conn_close(QUIC_CHANNEL *ch,