diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-11-09 10:27:14 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-12-21 08:12:06 +0000 |
commit | 4df4add22d8acf09cdd8bd58614a9dc69284a1bb (patch) | |
tree | a1e151ca4087f294916af1aa6b9ae61f3427c656 /include | |
parent | f12ea1f1e0f11686be8abad608b56a8357c688bb (diff) |
QUIC PORT: Allow errors to be tracked at port level
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22674)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_port.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/internal/quic_port.h b/include/internal/quic_port.h index ea97b93392..be08e213ee 100644 --- a/include/internal/quic_port.h +++ b/include/internal/quic_port.h @@ -134,15 +134,23 @@ void ossl_quic_port_set_inhibit_tick(QUIC_PORT *port, int inhibit); int ossl_quic_port_is_running(const QUIC_PORT *port); /* + * Restores port-level error to the error stack. To be called only if + * the port is no longer running. + */ +void ossl_quic_port_restore_err_state(const QUIC_PORT *port); + +/* * Events * ====== */ /* * Called if a permanent network error occurs. Terminates all channels - * immediately. + * immediately. triggering_ch is an optional argument designating + * a channel which encountered the network error. */ -void ossl_quic_port_raise_net_error(QUIC_PORT *port); +void ossl_quic_port_raise_net_error(QUIC_PORT *port, + QUIC_CHANNEL *triggering_ch); # endif |