Define OPENSSL_API_COMPAT
authorPeter Eisentraut <[email protected]>
Sun, 19 Jul 2020 10:14:42 +0000 (12:14 +0200)
committerMichael Paquier <[email protected]>
Sat, 24 Jun 2023 11:26:56 +0000 (20:26 +0900)
commit265c9138da58ae6d37dc5324e51d6fc782fe8923
treeedf63cb48bf464057f80ad017144ef38d39b02d3
parent4f8f0f8c397ee855caed36c7994b2450b11278b1
Define OPENSSL_API_COMPAT

This avoids deprecation warnings from newer OpenSSL versions (3.0.0 in
particular).

This has been originally applied as 4d3db13 for v14 and newer versions,
but not on the older branches out of caution, and this commit closes the
gap to remove all these deprecation warnings in all the branches still
supported.

OPENSSL_API_COMPAT's value is set based on the oldest version of OpenSSL
supported on a branch: 1.0.1 for Postgres 13 and 0.9.8 for Postgres 11
and 12.

Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/FEF81714-D479-4512-839B-C769D2605F8A@yesql.se
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 11
configure
configure.in
src/include/pg_config.h.in
src/include/pg_config.h.win32
src/tools/msvc/Solution.pm