]> git.ipfire.org Git - thirdparty/openssl.git/commit
Modernize header macros for C23 compatibility
authorIgor Ustinov <igus68@gmail.com>
Sun, 2 Nov 2025 16:37:00 +0000 (17:37 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 4 Nov 2025 15:02:11 +0000 (16:02 +0100)
commit0b7afd6d303d150c13c04f66e77fcbcdaeec2a84
tree41c0cccd63f6b2cc9e0e4ee5bb73ac83d2dd9ec5
parent54681f6e5b689299bada4363adc2edc46a1d67b4
Modernize header macros for C23 compatibility

Replace old-style (int (*)()) and (char *(*)()) casts with proper typed
prototypes (i2d_of_void *, d2i_of_void *, void *(*)(void)) to comply
with stricter C23 function pointer rules.

Fixes #27938

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29048)
include/openssl/dh.h
include/openssl/dsa.h
include/openssl/ocsp.h.in