25 #define PG_SASL_EXCHANGE_CONTINUE 0
26 #define PG_SASL_EXCHANGE_SUCCESS 1
27 #define PG_SASL_EXCHANGE_FAILURE 2
35 #define PG_MAX_SASL_MESSAGE_LENGTH 1024
88 void *(*init) (
Port *
port,
const char *mech,
const char *shadow_pass);
135 const char *
input,
int inputlen,
136 char **
output,
int *outputlen,
137 const char **logdetail);
145 char *shadow_pass,
const char **logdetail);
struct pg_be_sasl_mech pg_be_sasl_mech
int CheckSASLAuth(const pg_be_sasl_mech *mech, Port *port, char *shadow_pass, const char **logdetail)
int(* exchange)(void *state, const char *input, int inputlen, char **output, int *outputlen, const char **logdetail)
void(* get_mechanisms)(Port *port, StringInfo buf)