PostgreSQL Source Code  git master
auth.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * auth.h
4  * Definitions for network authentication routines
5  *
6  *
7  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/libpq/auth.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef AUTH_H
15 #define AUTH_H
16 
17 #include "libpq/libpq-be.h"
18 
22 
23 extern void ClientAuthentication(Port *port);
24 extern void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata,
25  int extralen);
26 
27 /* Hook for plugins to get control in ClientAuthentication() */
28 typedef void (*ClientAuthentication_hook_type) (Port *, int);
30 
31 /* hook type for password manglers */
32 typedef char *(*auth_password_hook_typ) (char *input);
33 
34 /* Default LDAP password mutator hook, can be overridden by a shared library */
36 
37 #endif /* AUTH_H */
void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata, int extralen)
Definition: auth.c:676
PGDLLIMPORT ClientAuthentication_hook_type ClientAuthentication_hook
Definition: auth.c:230
PGDLLIMPORT char * pg_krb_server_keyfile
Definition: auth.c:164
PGDLLIMPORT auth_password_hook_typ ldap_password_hook
void(* ClientAuthentication_hook_type)(Port *, int)
Definition: auth.h:28
void ClientAuthentication(Port *port)
Definition: auth.c:382
char *(* auth_password_hook_typ)(char *input)
Definition: auth.h:32
PGDLLIMPORT bool pg_krb_caseins_users
Definition: auth.c:165
PGDLLIMPORT bool pg_gss_accept_delegation
Definition: auth.c:166
#define PGDLLIMPORT
Definition: c.h:1316
FILE * input
static int port
Definition: pg_regress.c:116
uint32 AuthRequest
Definition: pqcomm.h:121
Definition: libpq-be.h:133