mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 03:31:15 +02:00
Source formatting cleanup.
This commit is contained in:
parent
d4042234f9
commit
54bf5da7d7
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.53 2001/06/20 18:07:55 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.54 2001/07/21 00:29:56 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -122,7 +122,6 @@ pg_krb4_recvauth(Port *port)
|
|||||||
|
|
||||||
return STATUS_ERROR;
|
return STATUS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* KRB4 */
|
#endif /* KRB4 */
|
||||||
|
|
||||||
|
|
||||||
@ -304,7 +303,6 @@ pg_krb5_recvauth(Port *port)
|
|||||||
|
|
||||||
return STATUS_ERROR;
|
return STATUS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* KRB5 */
|
#endif /* KRB5 */
|
||||||
|
|
||||||
|
|
||||||
@ -399,7 +397,6 @@ recv_and_check_passwordv0(Port *port)
|
|||||||
* Note that many sorts of failure report additional information in the
|
* Note that many sorts of failure report additional information in the
|
||||||
* postmaster log, which we hope is only readable by good guys.
|
* postmaster log, which we hope is only readable by good guys.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
auth_failed(Port *port)
|
auth_failed(Port *port)
|
||||||
{
|
{
|
||||||
@ -435,7 +432,6 @@ auth_failed(Port *port)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Client authentication starts here. If there is an error, this
|
* Client authentication starts here. If there is an error, this
|
||||||
* function does not return and the backend process is terminated.
|
* function does not return and the backend process is terminated.
|
||||||
@ -451,7 +447,6 @@ ClientAuthentication(Port *port)
|
|||||||
* hba config file, not with the request. hba.c should have dropped
|
* hba config file, not with the request. hba.c should have dropped
|
||||||
* an error message into the postmaster logfile if it failed.
|
* an error message into the postmaster logfile if it failed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (hba_getauthmethod(port) != STATUS_OK)
|
if (hba_getauthmethod(port) != STATUS_OK)
|
||||||
elog(FATAL, "Missing or erroneous pg_hba.conf file, see postmaster log for details");
|
elog(FATAL, "Missing or erroneous pg_hba.conf file, see postmaster log for details");
|
||||||
|
|
||||||
@ -464,11 +459,9 @@ ClientAuthentication(Port *port)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Handle new style authentication. */
|
/* Handle new style authentication. */
|
||||||
|
|
||||||
switch (port->auth_method)
|
switch (port->auth_method)
|
||||||
{
|
{
|
||||||
case uaReject:
|
case uaReject:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This could have come from an explicit "reject" entry in
|
* This could have come from an explicit "reject" entry in
|
||||||
* pg_hba.conf, but more likely it means there was no
|
* pg_hba.conf, but more likely it means there was no
|
||||||
@ -530,7 +523,6 @@ ClientAuthentication(Port *port)
|
|||||||
/*
|
/*
|
||||||
* Send an authentication request packet to the frontend.
|
* Send an authentication request packet to the frontend.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
sendAuthRequest(Port *port, AuthRequest areq)
|
sendAuthRequest(Port *port, AuthRequest areq)
|
||||||
{
|
{
|
||||||
@ -556,7 +548,6 @@ sendAuthRequest(Port *port, AuthRequest areq)
|
|||||||
/*
|
/*
|
||||||
* Called when we have received the password packet.
|
* Called when we have received the password packet.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int
|
static int
|
||||||
recv_and_check_password_packet(Port *port)
|
recv_and_check_password_packet(Port *port)
|
||||||
{
|
{
|
||||||
@ -638,7 +629,6 @@ old_be_recvauth(Port *port)
|
|||||||
* allow the connection anyway, disallow it anyway, or use the result)
|
* allow the connection anyway, disallow it anyway, or use the result)
|
||||||
* depending on what authentication we really want to use.
|
* depending on what authentication we really want to use.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int
|
static int
|
||||||
map_old_to_new(Port *port, UserAuth old, int status)
|
map_old_to_new(Port *port, UserAuth old, int status)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user