diff options
author | Tomas Mraz <tomas@openssl.org> | 2023-05-26 15:54:56 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-07-07 15:13:29 +0200 |
commit | 5c3474ea563ed95bb7c86c08867139613655276b (patch) | |
tree | b85a2fd2bdbe7eebf00a5311b6acea26dd2c7a89 /include | |
parent | 76696a5413db0a93e374f9f0f55e5694f93ecc0e (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.h | 5 |
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, |