|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "libpq/auth.h"#include "libpq/libpq.h"#include "libpq/pqformat.h"#include "libpq/sasl.h"
Go to the source code of this file.
Functions | |
| int | CheckSASLAuth (const pg_be_sasl_mech *mech, Port *port, char *shadow_pass, const char **logdetail) |
| int CheckSASLAuth | ( | const pg_be_sasl_mech * | mech, |
| Port * | port, | ||
| char * | shadow_pass, | ||
| const char ** | logdetail | ||
| ) |
Definition at line 44 of file auth-sasl.c.
References appendStringInfoChar(), Assert(), AUTH_REQ_SASL, AUTH_REQ_SASL_CONT, AUTH_REQ_SASL_FIN, buf, StringInfoData::data, DEBUG4, elog, ereport, errcode(), errmsg(), ERROR, pg_be_sasl_mech::exchange, pg_be_sasl_mech::get_mechanisms, pg_be_sasl_mech::init, initStringInfo(), input, StringInfoData::len, pg_be_sasl_mech::max_message_length, output, pfree(), PG_SASL_EXCHANGE_CONTINUE, PG_SASL_EXCHANGE_FAILURE, PG_SASL_EXCHANGE_SUCCESS, port, pq_getbyte(), pq_getmessage(), pq_getmsgbytes(), pq_getmsgend(), pq_getmsgint(), pq_getmsgrawstring(), pq_startmsgread(), PqMsg_SASLResponse, sendAuthRequest(), STATUS_EOF, STATUS_ERROR, and STATUS_OK.
Referenced by CheckPWChallengeAuth(), and ClientAuthentication().