aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-10-30 09:13:39 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-10-30 09:13:39 +0100
commit5cc1e64fb6f59aa8621caae03be36400807e3575 (patch)
tree5b5ad623dc0397da193ac9da44de6b62a684c394 /src
parente4d92126fda1defd9be201b97b162d1568122064 (diff)
downloadpostgresql-5cc1e64fb6f59aa8621caae03be36400807e3575.tar.gz
postgresql-5cc1e64fb6f59aa8621caae03be36400807e3575.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/auth.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index 0cf65ba5de7..58a44adeb7c 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