pgsql: Refactor libpq authentication request processing.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor libpq authentication request processing.
Date: 2017-04-13 16:36:30
Message-ID: E1cyhjS-0001wX-4W@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2017-04-13 17:13:07 pgsql: doc: add missing sect1 close tag
Previous Message Tom Lane 2017-04-13 16:08:15 pgsql: Move bootstrap-time lookup of regproc OIDs into genbki.pl.