mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
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
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user