Update code comments about peer authenticaton
authorPeter Eisentraut <[email protected]>
Wed, 30 Oct 2019 08:13:39 +0000 (09:13 +0100)
committerPeter Eisentraut <[email protected]>
Wed, 30 Oct 2019 08:13:39 +0000 (09:13 +0100)
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.

src/backend/libpq/auth.c

index 0cf65ba5de71789f4b30e852bbba3bc3557f8ab4..58a44adeb7c30b7bc9424c188c1a31d3450ba36d 100644 (file)
@@ -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