pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Álvaro Hernández Tortosa <aht@8kdata.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256
Date: Thu, 4 Jan 2018 15:41:39 -0500
Message-ID: <9ac07df0-784a-cb03-a9e1-1454eca16b3b@2ndquadrant.com> (raw)
In-Reply-To: <20171228071900.GA26798@paquier.xyz>
References: <CAB7nPqQ6twidjk7PPwkgucE6eFfHfc3EAkeWyxANWFyUAj_AeQ@mail.gmail.com>
	<CAB7nPqQ9+Ot46=y+yWNk4NTc4dEmm+DF=RKWDhC_xUq9L7m55g@mail.gmail.com>
	<6de87398-a9da-aa8b-a4c2-ca06ef8d757c@2ndquadrant.com>
	<CAB7nPqRrAFZCSk3xMd7=sXtVO2Y_N=NCGG14Mivu_L9XpP4mEQ@mail.gmail.com>
	<0eeb65bc-7f7d-064f-bbe2-5814c9763873@2ndquadrant.com>
	<CAB7nPqTvZQ62OtUR6eTKrfn7cL3A2pbqNpLhJkNy+z1SEpTtbQ@mail.gmail.com>
	<20171222025908.GA11776@paquier.xyz>
	<CAB7nPqR0ueQk5mtcZncDLacF3uat18SJR_U=qQHnhXvGHer8ug@mail.gmail.com>
	<63b10730-d6d6-fe96-c86b-b2ef4d320be7@2ndquadrant.com>
	<20171227002740.GA1727@paquier.xyz>
	<20171228071900.GA26798@paquier.xyz>

On 12/28/17 02:19, Michael Paquier wrote:
> On Wed, Dec 27, 2017 at 09:27:40AM +0900, Michael Paquier wrote:
>> On Tue, Dec 26, 2017 at 03:28:09PM -0500, Peter Eisentraut wrote:
>>> On 12/22/17 03:10, Michael Paquier wrote:
>>>> Second thoughts on 0002 as there is actually no need to move around
>>>> errorMessage if the PGconn* pointer is saved in the SCRAM status data
>>>> as both are linked. The attached simplifies the logic even more.
>>>>
>>>
>>> That all looks pretty reasonable.
>>
>> Thanks for the review. Don't you think that the the refactoring
>> simplifications should be done first though? This would result in
>> producing the patch set in reverse order. I'll be fine to produce them
>> if need be.
> 
> Well, here is a patch set doing the reverse operation: refactoring does
> first in 0001 and support for tls-server-end-point is in 0002. Hope this
> helps.

committed

I reorganized the be_tls_get_certificate_hash() and
pgtls_get_peer_certificate_hash() functions a bit to not have most of
the code in a big if statement.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (75+ messages)  latest in thread

Message-ID: <9ac07df0-784a-cb03-a9e1-1454eca16b3b@2ndquadrant.com>
Permalink:  ../9ac07df0-784a-cb03-a9e1-1454eca16b3b@2ndquadrant.com/
Also on:    postgresql.org/message-id/9ac07df0-784a-cb03-a9e1-1454eca16b3b@2ndquadrant.com

 · 

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-jdbc@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com, robertmhaas@gmail.com, aht@8kdata.com, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256
  In-Reply-To: <9ac07df0-784a-cb03-a9e1-1454eca16b3b@2ndquadrant.com>
  References: <CAB7nPqQ6twidjk7PPwkgucE6eFfHfc3EAkeWyxANWFyUAj_AeQ@mail.gmail.com> <CAB7nPqQ9+Ot46=y+yWNk4NTc4dEmm+DF=RKWDhC_xUq9L7m55g@mail.gmail.com> <6de87398-a9da-aa8b-a4c2-ca06ef8d757c@2ndquadrant.com> <CAB7nPqRrAFZCSk3xMd7=sXtVO2Y_N=NCGG14Mivu_L9XpP4mEQ@mail.gmail.com> <0eeb65bc-7f7d-064f-bbe2-5814c9763873@2ndquadrant.com> <CAB7nPqTvZQ62OtUR6eTKrfn7cL3A2pbqNpLhJkNy+z1SEpTtbQ@mail.gmail.com> <20171222025908.GA11776@paquier.xyz> <CAB7nPqR0ueQk5mtcZncDLacF3uat18SJR_U=qQHnhXvGHer8ug@mail.gmail.com> <63b10730-d6d6-fe96-c86b-b2ef4d320be7@2ndquadrant.com> <20171227002740.GA1727@paquier.xyz> <20171228071900.GA26798@paquier.xyz> <9ac07df0-784a-cb03-a9e1-1454eca16b3b@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