Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/interfaces/libpq/fe-auth.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,18 @@
#include "libpq-fe.h"
#include "libpq-int.h"


extern PQauthDataHook_type PQauthDataHook;


/* Prototypes for functions in fe-auth.c */
extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn,
bool *async);

extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn,
bool *async);
extern char *pg_fe_getusername(uid_t user_id, PQExpBuffer errorMessage);
extern char *pg_fe_getauthname(PQExpBuffer errorMessage);

/* Mechanisms in fe-auth-scram.c */
extern const pg_fe_sasl_mech pg_scram_mech;
extern char *pg_fe_scram_build_secret(const char *password,
int iterations,
const char **errstr);
extern char *pg_fe_scram_build_secret(const char *password, int iterations,
const char **errstr);

#endif /* FE_AUTH_H */
#endif /* FE_AUTH_H */