From: Peter Eisentraut Date: Wed, 30 Oct 2019 08:13:39 +0000 (+0100) Subject: Update code comments about peer authenticaton X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=5cc1e64fb6f59aa8621caae03be36400807e3575;p=users%2Frhaas%2Fpostgres.git Update code comments about peer authenticaton For historical reasons, the functions for peer authentication were grouped under ident authentication. But they are really completely separate, so give them their own section headings. --- diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 0cf65ba5de..58a44adeb7 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -73,6 +73,11 @@ static int CheckSCRAMAuth(Port *port, char *shadow_pass, char **logdetail); static int ident_inet(hbaPort *port); + +/*---------------------------------------------------------------- + * Peer authentication + *---------------------------------------------------------------- + */ #ifdef HAVE_UNIX_SOCKETS static int auth_peer(hbaPort *port); #endif @@ -1967,6 +1972,12 @@ ident_inet_done: return STATUS_ERROR; } + +/*---------------------------------------------------------------- + * Peer authentication system + *---------------------------------------------------------------- + */ + /* * Ask kernel about the credentials of the connecting process, * determine the symbolic name of the corresponding user, and check