From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Victor Wagner <vitus@wagner.pp.ru>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: PostgreSQL12 and older versions of OpenSSL
Date: Fri, 27 Sep 2019 15:50:57 +0200
Message-ID: <c09cf245-cfb4-c756-aeea-db57b6ad329c@2ndquadrant.com> (raw)
In-Reply-To: <20190927015101.GC2078@paquier.xyz>
References: <20190924101859.09383b4f@fafnir.local.vm>
<bdb92317-6138-f40c-070d-a357e475a07f@2ndquadrant.com>
<20190926045314.GC2115@paquier.xyz>
<58f51c56-1764-3d05-d07a-ee5666169f72@2ndquadrant.com>
<000788f2-631c-2731-4ce0-d2ea07c4c32e@2ndquadrant.com>
<20190927015101.GC2078@paquier.xyz>
On 2019-09-27 03:51, Michael Paquier wrote:
> I have tested compilation of REL_12_STABLE with the top of OpenSSL
> 0.9.8, 1.0.0, 1.0.1, 1.0.2, 1.1.0 and 1.1.1. Our SSL tests also pass
> in all the setups I have tested.
great
> Your patch does not issue a ereport(LOG/FATAL) in the event of a
> failure with SSL_CTX_set_max_proto_version(), which is something done
> when ssl_protocol_version_to_openssl()'s result is -1. Wouldn't it be
> better to report that properly to the user?
Our SSL_CTX_set_max_proto_version() is a reimplementation of a function
that exists in newer versions of OpenSSL, so it has a specific error
behavior. Our implementation should probably not diverge from it too much.
> Some more nits about the patch I have. Would it be worth copying the
> comment from min_proto_version() to SSL_CTX_set_max_proto_version()?
> I would add a newline before the comment block as well.
ok
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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-hackers@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, michael@paquier.xyz, vitus@wagner.pp.ru
Subject: Re: PostgreSQL12 and older versions of OpenSSL
In-Reply-To: <c09cf245-cfb4-c756-aeea-db57b6ad329c@2ndquadrant.com>
References: <20190924101859.09383b4f@fafnir.local.vm> <bdb92317-6138-f40c-070d-a357e475a07f@2ndquadrant.com> <20190926045314.GC2115@paquier.xyz> <58f51c56-1764-3d05-d07a-ee5666169f72@2ndquadrant.com> <000788f2-631c-2731-4ce0-d2ea07c4c32e@2ndquadrant.com> <20190927015101.GC2078@paquier.xyz> <c09cf245-cfb4-c756-aeea-db57b6ad329c@2ndquadrant.com>
* 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