pgsql: Define OPENSSL_API_COMPAT - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Define OPENSSL_API_COMPAT
Date
Msg-id E1qD1UH-000Ahc-18@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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/ZJJmOH+hIOSoesux@paquier.xyz
Backpatch-through: 11

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/96f96398d39841044cec5bee8ca08a9aa45d8745
Author: Peter Eisentraut <peter@eisentraut.org>

Modified Files
--------------
configure                     |  6 +++++-
configure.in                  |  3 +++
src/include/pg_config.h.in    |  4 ++++
src/include/pg_config.h.win32 |  4 ++++
src/tools/msvc/Solution.pm    | 10 +++++++++-
5 files changed, 25 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: doc: rename "decades" to be more generic
Next
From: Tom Lane
Date:
Subject: pgsql: Check for interrupts and stack overflow in TParserGet().