PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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-2017, 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 
21 /* Prototypes for functions in fe-auth.c */
22 extern int pg_fe_sendauth(AuthRequest areq, PGconn *conn);
23 extern char *pg_fe_getauthname(PQExpBuffer errorMessage);
24 
25 /* Prototypes for functions in fe-auth-scram.c */
26 extern void *pg_fe_scram_init(const char *username, const char *password);
27 extern void pg_fe_scram_free(void *opaq);
28 extern void pg_fe_scram_exchange(void *opaq, char *input, int inputlen,
29  char **output, int *outputlen,
30  bool *done, bool *success, PQExpBuffer errorMessage);
31 
32 #endif /* FE_AUTH_H */
static char password[100]
Definition: streamutil.c:41
static void output(uint64 loop_count)
uint32 AuthRequest
Definition: pqcomm.h:178
PGconn * conn
Definition: streamutil.c:42
static bool success
Definition: pg_basebackup.c:96
void pg_fe_scram_exchange(void *opaq, char *input, int inputlen, char **output, int *outputlen, bool *done, bool *success, PQExpBuffer errorMessage)
void * pg_fe_scram_init(const char *username, const char *password)
Definition: fe-auth-scram.c:82
static char * username
Definition: initdb.c:131
char * pg_fe_getauthname(PQExpBuffer errorMessage)
Definition: fe-auth.c:846
void pg_fe_scram_free(void *opaq)
int pg_fe_sendauth(AuthRequest areq, PGconn *conn)
Definition: fe-auth.c:641