#include "postgres_fe.h"
#include "common/base64.h"
#include "common/hmac.h"
#include "common/saslprep.h"
#include "common/scram-common.h"
#include "fe-auth.h"
Go to the source code of this file.
Enumerator | |
---|---|
FE_SCRAM_INIT | |
FE_SCRAM_NONCE_SENT | |
FE_SCRAM_PROOF_SENT | |
FE_SCRAM_FINISHED |
Definition at line 44 of file fe-auth-scram.c.
Definition at line 455 of file fe-auth-scram.c.
References appendPQExpBuffer(), appendPQExpBufferStr(), buf, calculate_client_proof(), pg_conn::channel_binding, conn, enlargePQExpBuffer(), pg_conn::errorMessage, free, initPQExpBuffer(), libpq_append_conn_error(), malloc, pg_b64_enc_len(), pg_b64_encode(), pgtls_get_peer_certificate_hash(), PQExpBufferDataBroken, SCRAM_MAX_KEY_LEN, SCRAM_SHA_256_PLUS_NAME, pg_conn::ssl_in_use, and termPQExpBuffer().
Referenced by scram_exchange().
Definition at line 350 of file fe-auth-scram.c.
References appendPQExpBuffer(), appendPQExpBufferChar(), appendPQExpBufferStr(), Assert(), buf, pg_conn::channel_binding, conn, initPQExpBuffer(), libpq_append_conn_error(), malloc, pg_b64_enc_len(), pg_b64_encode(), pg_strong_random(), PQExpBufferDataBroken, SCRAM_RAW_NONCE_LEN, SCRAM_SHA_256_PLUS_NAME, pg_conn::ssl_in_use, and termPQExpBuffer().
Referenced by scram_exchange().
Definition at line 766 of file fe-auth-scram.c.
References i, pg_hmac_create(), pg_hmac_error(), pg_hmac_final(), pg_hmac_free(), pg_hmac_init(), pg_hmac_update(), scram_ClientKey(), scram_H(), SCRAM_MAX_KEY_LEN, and scram_SaltedPassword().
Referenced by build_client_final_message().
Definition at line 915 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().
Definition at line 308 of file fe-auth-scram.c.
References input, and libpq_append_error().
Referenced by read_server_final_message(), and read_server_first_message().
Definition at line 693 of file fe-auth-scram.c.
References conn, errmsg(), pg_conn::errorMessage, free, input, libpq_append_conn_error(), malloc, pg_b64_dec_len(), pg_b64_decode(), and read_attr_value().
Referenced by scram_exchange().
Definition at line 607 of file fe-auth-scram.c.
References conn, pg_conn::errorMessage, input, libpq_append_conn_error(), malloc, pg_b64_dec_len(), pg_b64_decode(), and read_attr_value().
Referenced by scram_exchange().
Definition at line 158 of file fe-auth-scram.c.
References FE_SCRAM_FINISHED, and SCRAM_SHA_256_PLUS_NAME.
Definition at line 209 of file fe-auth-scram.c.
References build_client_final_message(), build_client_first_message(), conn, FE_SCRAM_FINISHED, FE_SCRAM_INIT, FE_SCRAM_NONCE_SENT, FE_SCRAM_PROOF_SENT, input, libpq_append_conn_error(), output, read_server_final_message(), read_server_first_message(), SASL_COMPLETE, SASL_CONTINUE, SASL_FAILED, and verify_server_signature().
Definition at line 182 of file fe-auth-scram.c.
References free.
Definition at line 97 of file fe-auth-scram.c.
References Assert(), conn, FE_SCRAM_INIT, free, malloc, password, pg_saslprep(), PG_SHA256, SASLPREP_OOM, SASLPREP_SUCCESS, and SCRAM_SHA_256_KEY_LEN.
Definition at line 846 of file fe-auth-scram.c.
References pg_hmac_create(), pg_hmac_error(), pg_hmac_final(), pg_hmac_free(), pg_hmac_init(), pg_hmac_update(), SCRAM_MAX_KEY_LEN, and scram_ServerKey().
Referenced by scram_exchange().
Definition at line 33 of file fe-auth-scram.c.
Referenced by pg_SASL_init(), and pqConnectOptions2().