INNER CODE UNIT · C
stored_passwd
pgbouncer/pgbouncer · src/client.c:122
stored_passwd = user->passwd;
}
if (!pg_md5_encrypt(stored_passwd + 3, (char *)client->tmp_login_salt, 4, md5))
return false;
return strcmp(md5, passwd) == 0;
}
}
return false;
}
static bool send_client_authreq(PgSocket *client)
{
int res;
int auth_type = client->client_auth_type;
if (auth_type == AUTH_TYPE_MD5) {
uint8_t saltlen = 4;
get_random_bytes((void *)client->tmp_login_salt, saltlen);