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-2022, 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 
21 extern PGDLLIMPORT char *pg_krb_realm;
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 #endif /* AUTH_H */
void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata, int extralen)
Definition: auth.c:663
PGDLLIMPORT ClientAuthentication_hook_type ClientAuthentication_hook
Definition: auth.c:236
PGDLLIMPORT char * pg_krb_server_keyfile
Definition: auth.c:171
PGDLLIMPORT char * pg_krb_realm
void(* ClientAuthentication_hook_type)(Port *, int)
Definition: auth.h:28
void ClientAuthentication(Port *port)
Definition: auth.c:385
PGDLLIMPORT bool pg_krb_caseins_users
Definition: auth.c:172
#define PGDLLIMPORT
Definition: c.h:1342
static int port
Definition: pg_regress.c:92
uint32 AuthRequest
Definition: pqcomm.h:165
Definition: libpq-be.h:125