PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
int | pg_fe_sendauth (AuthRequest areq, int payloadlen, PGconn *conn) |
char * | pg_fe_getusername (uid_t user_id, PQExpBuffer errorMessage) |
char * | pg_fe_getauthname (PQExpBuffer errorMessage) |
char * | pg_fe_scram_build_secret (const char *password, int iterations, const char **errstr) |
Variables | |
const pg_fe_sasl_mech | pg_scram_mech |
char* pg_fe_getauthname | ( | PQExpBuffer | errorMessage | ) |
Definition at line 1255 of file fe-auth.c.
References pg_fe_getusername().
Referenced by conninfo_add_defaults(), and pqConnectOptions2().
char* pg_fe_getusername | ( | uid_t | user_id, |
PQExpBuffer | errorMessage | ||
) |
Definition at line 1197 of file fe-auth.c.
References buf, libpq_append_error(), name, and username.
Referenced by pg_fe_getauthname(), and PQconnectPoll().
char* pg_fe_scram_build_secret | ( | const char * | password, |
int | iterations, | ||
const char ** | errstr | ||
) |
Definition at line 892 of file fe-auth-scram.c.
References free, iterations, libpq_gettext, password, pg_saslprep(), PG_SHA256, pg_strong_random(), SASLPREP_OOM, SASLPREP_SUCCESS, scram_build_secret(), SCRAM_DEFAULT_SALT_LEN, and SCRAM_SHA_256_KEY_LEN.
Referenced by PQencryptPasswordConn().
int pg_fe_sendauth | ( | AuthRequest | areq, |
int | payloadlen, | ||
PGconn * | conn | ||
) |
Definition at line 989 of file fe-auth.c.
References appendPQExpBufferStr(), AUTH_REQ_CRYPT, AUTH_REQ_GSS, AUTH_REQ_GSS_CONT, AUTH_REQ_KRB4, AUTH_REQ_KRB5, AUTH_REQ_MD5, AUTH_REQ_OK, AUTH_REQ_PASSWORD, AUTH_REQ_SASL, AUTH_REQ_SASL_CONT, AUTH_REQ_SASL_FIN, AUTH_REQ_SSPI, check_expected_areq(), pg_conn::client_finished_auth, conn, pg_conn::connhost, pg_conn::errorMessage, pg_conn::gsslib, PQExpBufferData::len, libpq_append_conn_error(), password, pg_conn_host::password, pg_conn::password_needed, pg_password_sendauth(), pg_SASL_continue(), pg_SASL_init(), pg_strcasecmp(), pglock_thread, pg_conn::pgpass, pgunlock_thread, PQnoPasswordSupplied, pg_conn::sasl_state, STATUS_ERROR, STATUS_OK, and pg_conn::whichhost.
Referenced by PQconnectPoll().
|
extern |
Definition at line 32 of file fe-auth-scram.c.
Referenced by pg_SASL_init().