postgresql/contrib/sslinfo
Daniel Gustafsson 89d243d521 Fix compilation with OpenSSL 4
OpenSSL 4.0.0 changed some parameters and returnvalues to const, so
we need to update our declarations and subsequently cast away const-
ness from a few callsites to make libpq build without warnings. This
is tested with OpenSSL 1.1.1 through 4.0.0 as well as with LibreSSL.
No functional change is introduced, this commit only allows postgres
to be compiled against OpenSSL 4.0.0 without warnings.

There is also an errormessage change in OpenSSL 4.0.0 which needed
to be covered by our testharness.

This will be backpatched to all supported branches since they are
all equally likely to be built against OpenSSL 4.0.0 as it becomes
available in distributions.  Backpatching will be done once it has
been in master for a few days without issues.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/066B07BB-85FA-487C-BE8C-40F791CFC3C4@yesql.se
Backpatch-through: 14
2026-05-29 21:52:35 +02:00
..
Makefile Remove support for linking with libeay32 and ssleay32 2025-02-06 20:26:46 +01:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
sslinfo--1.0--1.1.sql Minor fixes in contrib installation scripts. 2016-06-14 10:47:06 -04:00
sslinfo--1.1--1.2.sql Update sslinfo extension for parallel query. 2016-06-14 14:52:55 -04:00
sslinfo--1.2.sql Update sslinfo extension for parallel query. 2016-06-14 14:52:55 -04:00
sslinfo.c Fix compilation with OpenSSL 4 2026-05-29 21:52:35 +02:00
sslinfo.control Revert "Add notBefore and notAfter to SSL cert info display" 2024-03-22 22:58:41 +01:00