mirror of
https://github.com/postgres/postgres.git
synced 2025-06-10 00:01:28 -04:00
Within the context of SCRAM, "verifier" has a specific meaning in the protocol, per RFCs. The existing code used "verifier" differently, to mean whatever is or would be stored in pg_auth.rolpassword. Fix this by using the term "secret" for this, following RFC 5803. Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/be397b06-6e4b-ba71-c7fb-54cae84a7e18%402ndquadrant.com
37 lines
1.1 KiB
C
37 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 bool pg_fe_scram_channel_bound(void *opaq);
|
|
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_secret(const char *password);
|
|
|
|
#endif /* FE_AUTH_H */
|