Update copyright for 2022
[pgsql.git] / src / interfaces / libpq / fe-auth.h
blob16d5e1da0f0bbd937414ab67839c00e0090fa48a
1 /*-------------------------------------------------------------------------
3 * fe-auth.h
5 * Definitions for network authentication routines
7 * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/interfaces/libpq/fe-auth.h
12 *-------------------------------------------------------------------------
14 #ifndef FE_AUTH_H
15 #define FE_AUTH_H
17 #include "libpq-fe.h"
18 #include "libpq-int.h"
21 /* Prototypes for functions in fe-auth.c */
22 extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn);
23 extern char *pg_fe_getauthname(PQExpBuffer errorMessage);
25 /* Mechanisms in fe-auth-scram.c */
26 extern const pg_fe_sasl_mech pg_scram_mech;
27 extern char *pg_fe_scram_build_secret(const char *password);
29 #endif /* FE_AUTH_H */