pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Set libpq sslcompression to off by default
Date: Tue, 20 Mar 2018 09:03:35 +0100
Message-ID: <A99641B5-8198-41DD-A240-FCD5EFE5B497@yesql.se> (raw)
In-Reply-To: <15980.1521519338@sss.pgh.pa.us>
References: <E1exBnk-00018B-Qw@gemulon.postgresql.org>
	<32687.1521305277@sss.pgh.pa.us>
	<ADA33C10-48FF-4667-B1F2-0860C7564436@yesql.se>
	<c9f09030-f56d-5bb7-5953-ef555442b62b@2ndquadrant.com>
	<15980.1521519338@sss.pgh.pa.us>

> On 20 Mar 2018, at 05:15, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>> On 3/17/18 15:12, Daniel Gustafsson wrote:
>>> On 17 Mar 2018, at 17:47, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>>> Buildfarm reports that SSL_clear_options isn't available everywhere.
> 
>>> Per some reading of the documentation and various patchers it seems
>>> SSL_clear_options() was introduced in 0.9.8m and SSL_OP_NO_COMPRESSION in
>>> 1.0.0.
> 
>> It seems the failure is limited to an old NetBSD version.  They might
>> have patched their libssl locally somehow.  Is it worth supporting this?
> 
> Dunno, but the other side of the coin is that the goals of this patch
> don't seem like a sufficient reason to break backwards compatibility
> with any platform.

If we test for SSL_clear_options(), and use the sk_SSL_COMP_zero() where not
available, we should be able to keep backwards compatibility with older OpenSSL
revisions even if the distros have patched them AFAICT.  Unless you’re already
working on it I can take a stab at it.

cheers ./daniel



view thread (8+ messages)  latest in thread

Message-ID: <A99641B5-8198-41DD-A240-FCD5EFE5B497@yesql.se>
Permalink:  ../A99641B5-8198-41DD-A240-FCD5EFE5B497@yesql.se/
Also on:    postgresql.org/message-id/A99641B5-8198-41DD-A240-FCD5EFE5B497@yesql.se

 · 

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: daniel@yesql.se, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
  Subject: Re: pgsql: Set libpq sslcompression to off by default
  In-Reply-To: <A99641B5-8198-41DD-A240-FCD5EFE5B497@yesql.se>
  References: <E1exBnk-00018B-Qw@gemulon.postgresql.org> <32687.1521305277@sss.pgh.pa.us> <ADA33C10-48FF-4667-B1F2-0860C7564436@yesql.se> <c9f09030-f56d-5bb7-5953-ef555442b62b@2ndquadrant.com> <15980.1521519338@sss.pgh.pa.us> <A99641B5-8198-41DD-A240-FCD5EFE5B497@yesql.se>

* 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