aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-auth.h
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-04-13 19:34:14 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-04-13 19:34:14 +0300
commit61bf96cab06390fec66405d3caad789f4417f25a (patch)
tree64db943c3ba74e0b69f35cb4352fb436fb35a7ab /src/interfaces/libpq/fe-auth.h
parent5e39f06cfe65acbecedf42a660f577c3fca47bcc (diff)
downloadpostgresql-61bf96cab06390fec66405d3caad789f4417f25a.tar.gz
postgresql-61bf96cab06390fec66405d3caad789f4417f25a.zip
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
Diffstat (limited to 'src/interfaces/libpq/fe-auth.h')
-rw-r--r--src/interfaces/libpq/fe-auth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-auth.h b/src/interfaces/libpq/fe-auth.h
index 204790cea46..a5c739f01a3 100644
--- a/src/interfaces/libpq/fe-auth.h
+++ b/src/interfaces/libpq/fe-auth.h
@@ -19,7 +19,7 @@
/* Prototypes for functions in fe-auth.c */
-extern int pg_fe_sendauth(AuthRequest areq, PGconn *conn);
+extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn);
extern char *pg_fe_getauthname(PQExpBuffer errorMessage);
/* Prototypes for functions in fe-auth-scram.c */