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.
This commit is contained in:
Peter Eisentraut 2019-10-30 09:13:39 +01:00
parent e4d92126fd
commit 5cc1e64fb6

View File

@ -73,6 +73,11 @@ static int CheckSCRAMAuth(Port *port, char *shadow_pass, char **logdetail);
static int ident_inet(hbaPort *port); static int ident_inet(hbaPort *port);
/*----------------------------------------------------------------
* Peer authentication
*----------------------------------------------------------------
*/
#ifdef HAVE_UNIX_SOCKETS #ifdef HAVE_UNIX_SOCKETS
static int auth_peer(hbaPort *port); static int auth_peer(hbaPort *port);
#endif #endif
@ -1967,6 +1972,12 @@ ident_inet_done:
return STATUS_ERROR; return STATUS_ERROR;
} }
/*----------------------------------------------------------------
* Peer authentication system
*----------------------------------------------------------------
*/
/* /*
* Ask kernel about the credentials of the connecting process, * Ask kernel about the credentials of the connecting process,
* determine the symbolic name of the corresponding user, and check * determine the symbolic name of the corresponding user, and check