summaryrefslogtreecommitdiff
path: root/src/backend/libpq/auth.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-09-15 10:48:30 +0200
committerPeter Eisentraut <peter@eisentraut.org>2025-09-15 11:04:10 +0200
commitdc41d7415fc6eea3b5c5528a39d07016983ea75e (patch)
treeb23c9a49e76da680dbe35200c013f2aceb99cc1f /src/backend/libpq/auth.c
parentd4d1fc527bdb333d818038081c17ed7d9b1697c1 (diff)
Remove hbaPort type
This was just a workaround to avoid including the header file that defines the Port type. With C11, we can now just re-define the Port type without the possibility of a conflict. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/10d32190-f31b-40a5-b177-11db55597355@eisentraut.org
Diffstat (limited to 'src/backend/libpq/auth.c')
-rw-r--r--src/backend/libpq/auth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index 4da46666439..ec4dbacf015 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -70,14 +70,14 @@ static int CheckMD5Auth(Port *port, char *shadow_pass,
/* Standard TCP port number for Ident service. Assigned by IANA */
#define IDENT_PORT 113
-static int ident_inet(hbaPort *port);
+static int ident_inet(Port *port);
/*----------------------------------------------------------------
* Peer authentication
*----------------------------------------------------------------
*/
-static int auth_peer(hbaPort *port);
+static int auth_peer(Port *port);
/*----------------------------------------------------------------
@@ -1668,7 +1668,7 @@ interpret_ident_response(const char *ident_response,
* latch was set would improve the responsiveness to timeouts/cancellations.
*/
static int
-ident_inet(hbaPort *port)
+ident_inet(Port *port)
{
const SockAddr remote_addr = port->raddr;
const SockAddr local_addr = port->laddr;
@@ -1853,7 +1853,7 @@ ident_inet_done:
* Iff authorized, return STATUS_OK, otherwise return STATUS_ERROR.
*/
static int
-auth_peer(hbaPort *port)
+auth_peer(Port *port)
{
uid_t uid;
gid_t gid;