PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
fe-auth.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * fe-auth.h
4 *
5 * Definitions for network authentication routines
6 *
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/interfaces/libpq/fe-auth.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef FE_AUTH_H
15#define FE_AUTH_H
16
17#include "libpq-fe.h"
18#include "libpq-int.h"
19
20
22
23
24/* Prototypes for functions in fe-auth.c */
25extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn,
26 bool *async);
27extern char *pg_fe_getusername(uid_t user_id, PQExpBuffer errorMessage);
28extern char *pg_fe_getauthname(PQExpBuffer errorMessage);
29
30/* Mechanisms in fe-auth-scram.c */
32extern char *pg_fe_scram_build_secret(const char *password,
33 int iterations,
34 const char **errstr);
35
36#endif /* FE_AUTH_H */
const pg_fe_sasl_mech pg_scram_mech
Definition: fe-auth-scram.c:33
PQauthDataHook_type PQauthDataHook
Definition: fe-auth.c:1586
int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn, bool *async)
Definition: fe-auth.c:1066
char * pg_fe_getauthname(PQExpBuffer errorMessage)
Definition: fe-auth.c:1344
char * pg_fe_scram_build_secret(const char *password, int iterations, const char **errstr)
char * pg_fe_getusername(uid_t user_id, PQExpBuffer errorMessage)
Definition: fe-auth.c:1286
int(* PQauthDataHook_type)(PGauthData type, PGconn *conn, void *data)
Definition: libpq-fe.h:811
uint32 AuthRequest
Definition: pqcomm.h:121
static char * password
Definition: streamutil.c:51
PGconn * conn
Definition: streamutil.c:52
int iterations
Definition: thread-thread.c:39
int uid_t
Definition: win32_port.h:234