]> granicus.if.org Git - postgresql/commit
Refactor libpq authentication request processing.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 13 Apr 2017 16:34:14 +0000 (19:34 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 13 Apr 2017 16:34:14 +0000 (19:34 +0300)
commit61bf96cab06390fec66405d3caad789f4417f25a
tree64db943c3ba74e0b69f35cb4352fb436fb35a7ab
parent5e39f06cfe65acbecedf42a660f577c3fca47bcc
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
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-auth.h
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-int.h