mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* fe-auth.h
|
|
*
|
|
* Definitions for network authentication routines
|
|
*
|
|
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/interfaces/libpq/fe-auth.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef FE_AUTH_H
|
|
#define FE_AUTH_H
|
|
|
|
#include "libpq-fe.h"
|
|
#include "libpq-int.h"
|
|
|
|
|
|
/* Prototypes for functions in fe-auth.c */
|
|
extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn);
|
|
extern char *pg_fe_getauthname(PQExpBuffer errorMessage);
|
|
|
|
/* Prototypes for functions in fe-auth-scram.c */
|
|
extern void *pg_fe_scram_init(PGconn *conn,
|
|
const char *password,
|
|
const char *sasl_mechanism);
|
|
extern void pg_fe_scram_free(void *opaq);
|
|
extern void pg_fe_scram_exchange(void *opaq, char *input, int inputlen,
|
|
char **output, int *outputlen,
|
|
bool *done, bool *success);
|
|
extern char *pg_fe_scram_build_verifier(const char *password);
|
|
|
|
#endif /* FE_AUTH_H */
|