]> git.ipfire.org Git - thirdparty/openssl.git/commit
Use less preprocessor gymnastics for fatal error detection.
authorBob Beck <beck@openssl.org>
Mon, 25 Aug 2025 20:26:33 +0000 (14:26 -0600)
committerTomas Mraz <tomas@openssl.org>
Thu, 18 Sep 2025 15:19:07 +0000 (17:19 +0200)
commitc66adbab2d4ba677c38c23c24344ab755584c18b
tree73ca4a366b2789faf902f20f68fe7ff1882684e3
parenta71c36b39828efde20989c0b723a8f176ca61687
Use less preprocessor gymnastics for fatal error detection.

We seem to be using a lot of preprocessor gymnastics to avoid
having duplicate cases in a case statement depending on what
the host system defines these values to.  We should not care.

If we don't bother with the case statement this becomes
easier to follow.

While we are here, pick up the reccomended windows2 values
that correspond with the POSIX values we already have
in here that we believe are "non-fatal", and condition
the codes to use on being windows or something POSIX.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28344)
crypto/bio/bss_sock.c