pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Refactor libpq authentication request processing.
Date: Thu, 13 Apr 2017 16:36:30 +0000
Message-ID: <E1cyhjS-0001wX-4W@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Refactor libpq authentication request processing.

Move the responsibility of reading the data from the authentication request
message from PQconnectPoll() to pg_fe_sendauth(). This way, PQconnectPoll()
doesn't need to know about all the different authentication request types,
and we don't need the extra fields in the pg_conn struct to pass the data
from PQconnectPoll() to pg_fe_sendauth() anymore.

Reviewed by Michael Paquier.

Discussion: https://www.postgresql.org/message-id/6490b975-5ee1-6280-ac1d-af975b19fb9a%40iki.fi

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/61bf96cab06390fec66405d3caad789f4417f25a

Modified Files
--------------
src/interfaces/libpq/fe-auth.c    | 230 ++++++++++++++++++++++++++++----------
src/interfaces/libpq/fe-auth.h    |   2 +-
src/interfaces/libpq/fe-connect.c | 129 +++++----------------
src/interfaces/libpq/libpq-int.h  |  11 +-
4 files changed, 202 insertions(+), 170 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cyhjS-0001wX-4W@gemulon.postgresql.org>
Permalink:  ../E1cyhjS-0001wX-4W@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cyhjS-0001wX-4W@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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Refactor libpq authentication request processing.
  In-Reply-To: <E1cyhjS-0001wX-4W@gemulon.postgresql.org>
  References: <E1cyhjS-0001wX-4W@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