pgsql: Make detection of SSL_CTX_set_min_proto_version more portable

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make detection of SSL_CTX_set_min_proto_version more portable
Date: 2018-11-20 22:02:12
Message-ID: E1gPE60-000158-Fx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make detection of SSL_CTX_set_min_proto_version more portable

As already explained in configure.in, using the OpenSSL version number
to detect presence of functions doesn't work, because LibreSSL reports
incompatible version numbers. Fortunately, the functions we need here
are actually macros, so we can just test for them directly.

Branch
------
master

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

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

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2018-11-20 23:10:04 Re: pgsql: Make detection of SSL_CTX_set_min_proto_version more portable
Previous Message Peter Eisentraut 2018-11-20 21:22:09 pgsql: Add settings to control SSL/TLS protocol version