pgsql: Fix compilation with older OpenSSL versions - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Fix compilation with older OpenSSL versions
Date
Msg-id E1iEJgt-0002Db-6m@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix compilation with older OpenSSL versions

Some older OpenSSL versions (0.9.8 branch) define TLS*_VERSION macros
but not the corresponding SSL_OP_NO_* macro, which causes the code for
handling ssl_min_protocol_version/ssl_max_protocol_version to fail to
compile.  To fix, add more #ifdefs and error handling.

Reported-by: Victor Wagner <vitus@wagner.pp.ru>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/20190924101859.09383b4f%40fafnir.local.vm

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a430c7b4afe8278223541d3efee2281ee9135c1d

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c | 48 +++++++++++++++++++++++++++++++++--
1 file changed, 46 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Improve stability of partition_prune regression test.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Add a link target