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_e@gmx.net>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Set libpq sslcompression to off by default
Date: Sat, 17 Mar 2018 20:12:25 +0100
Message-ID: <ADA33C10-48FF-4667-B1F2-0860C7564436@yesql.se> (raw)
In-Reply-To: <32687.1521305277@sss.pgh.pa.us>
References: <E1exBnk-00018B-Qw@gemulon.postgresql.org>
	<32687.1521305277@sss.pgh.pa.us>

> On 17 Mar 2018, at 17:47, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> Peter Eisentraut <peter_e@gmx.net> writes:
>> Set libpq sslcompression to off by default
> 
> 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.  For older versions, the recommended option is to clear the list of
compression methods in order to disable compression:

    #ifndef SSL_OP_NO_COMPRESSION
    STACK_OF(SSL_COMP)* comp_methods;
    comp_methods = SSL_COMP_get_compression_methods();
    sk_SSL_COMP_zero(comp_methods);
    #endif

I don’t have an old version handy to try on, so the above is untested.

cheers ./daniel



view thread (8+ messages)  latest in thread

Message-ID: <ADA33C10-48FF-4667-B1F2-0860C7564436@yesql.se>
Permalink:  ../ADA33C10-48FF-4667-B1F2-0860C7564436@yesql.se/
Also on:    postgresql.org/message-id/ADA33C10-48FF-4667-B1F2-0860C7564436@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_e@gmx.net
  Subject: Re: pgsql: Set libpq sslcompression to off by default
  In-Reply-To: <ADA33C10-48FF-4667-B1F2-0860C7564436@yesql.se>
  References: <E1exBnk-00018B-Qw@gemulon.postgresql.org> <32687.1521305277@sss.pgh.pa.us> <ADA33C10-48FF-4667-B1F2-0860C7564436@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