PostgreSQL and OpenSSL 4.0.0 - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject PostgreSQL and OpenSSL 4.0.0
Date
Msg-id 066B07BB-85FA-487C-BE8C-40F791CFC3C4@yesql.se
Whole thread
Responses Re: PostgreSQL and OpenSSL 4.0.0
List pgsql-hackers
With OpenSSL 4.0.0 shipping GA a few days ago I tried compiling PostgreSQL
against it and run the tests.  Unsurpisingly the test pass just fine and it
compiles without error since they aren't removing any API's we use (they are
deprecating more APIs we use, more on that in later threads).  There are
however a number of warnings since they changed constness on a number of API's.
Sadly, just adopting const cause similar warnings on OpenSSL 1.1.1 and LibreSSL
so we need to do uglier tricks with casting away constness.

The attached patch, while not pretty, allows libpq and sslinfo to build without
warnings on OpenSSL 1.1.1 through 4.0.0 as well as on LibreSSL (and there is
quite some variability in constness across all these API versions).

--
Daniel Gustafsson


Attachment

pgsql-hackers by date:

Previous
From: Chengpeng Yan
Date:
Subject: [PATCH] Fix hashed ScalarArrayOp semantics for NULL LHS with non-strict comparators
Next
From: Fujii Masao
Date:
Subject: Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid