QUIC err handling: Save and restore error state
authorTomas Mraz <tomas@openssl.org>
Tue, 30 May 2023 20:14:58 +0000 (22:14 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 7 Jul 2023 13:13:29 +0000 (15:13 +0200)
commit9c3ea4e1d7580fc061dfb754b620adb3439e683f
treee87832dee0de7a0e5a1f0da4a71e59ac89f3345d
parent5c3474ea563ed95bb7c86c08867139613655276b
QUIC err handling: Save and restore error state

We save the error state from the thread that encountered
a permanent error condition caused by system or internal
error to the QUIC_CHANNEL.

Then we restore it whenever we are returning to a user
call when protocol is shutdown.

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)
12 files changed:
crypto/err/build.info
crypto/err/err.c
crypto/err/err_local.h
crypto/err/err_save.c [new file with mode: 0644]
doc/build.info
doc/man3/OSSL_ERR_STATE_save.pod [new file with mode: 0644]
include/internal/quic_channel.h
include/openssl/err.h.in
ssl/quic/quic_channel.c
ssl/quic/quic_channel_local.h
ssl/quic/quic_impl.c
util/libcrypto.num