Re: Remove deprecation warnings when compiling PG ~13 with OpenSSL 3.0~

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Michael Paquier <michael@paquier.xyz>
Cc: Peter Eisentraut <peter@eisentraut.org>, Andres Freund <andres@anarazel.de>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-06-22T08:02:58Z
Lists: pgsql-hackers
> On 22 Jun 2023, at 01:53, Michael Paquier <michael@paquier.xyz> wrote:

> I have tested the attached patches across 11~13 with various versions
> of OpenSSL (OPENSSL_API_COMPAT exists since 1.1.0), and this is
> working here.  Note that I don't have a MSVC environment at hand to
> test this change on Windows, still `perl -cw Solution.pm` is OK with
> it.

These patches LGTM from reading, but I think the Discussion link in the commit
messages should refer to this thread as well.

--
Daniel Gustafsson




Commits

  1. Define OPENSSL_API_COMPAT

  2. Remove support for OpenSSL versions older than 0.9.8.