pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Attempt to fix build with unusual OpenSSL versions
Date: Tue, 20 Mar 2018 20:57:53 +0000
Message-ID: <E1eyOKP-0003hD-6B@gemulon.postgresql.org> (raw)

Attempt to fix build with unusual OpenSSL versions

Since e3bdb2d92600ed45bd46aaf48309a436a9628218, libpq failed to build on
some platforms because they did not have SSL_clear_options().  Although
mainline OpenSSL introduced SSL_clear_options() after
SSL_OP_NO_COMPRESSION, so the code should have built fine, at least an
old NetBSD version (build farm "coypu" NetBSD 5.1 gcc 4.1.3 PR-20080704
powerpc) has SSL_OP_NO_COMPRESSION but no SSL_clear_options().

So add a configure check for SSL_clear_options().  If we don't find it,
skip the call.  That means on such a platform one cannot *enable* SSL
compression if the built-in default is off, but that seems an unlikely
combination anyway and not very interesting in practice.

Branch
------
master

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

Modified Files
--------------
configure                                | 2 +-
configure.in                             | 2 +-
src/include/pg_config.h.in               | 3 +++
src/interfaces/libpq/fe-secure-openssl.c | 8 ++++++++
4 files changed, 13 insertions(+), 2 deletions(-)



Message-ID: <E1eyOKP-0003hD-6B@gemulon.postgresql.org>
Permalink:  ../E1eyOKP-0003hD-6B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eyOKP-0003hD-6B@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Attempt to fix build with unusual OpenSSL versions
  In-Reply-To: <E1eyOKP-0003hD-6B@gemulon.postgresql.org>
  References: <E1eyOKP-0003hD-6B@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox