mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Expand some more uses of "deleg" to "delegation" or "delegated".
Complete the task begun in 9c0a0e2ed
: we don't want to use the
abbreviation "deleg" for GSS delegation in any user-visible places.
(For consistency, this also changes most internal uses too.)
Abhijit Menon-Sen and Tom Lane
Discussion: https://postgr.es/m/949048.1684639317@sss.pgh.pa.us
This commit is contained in:
@ -622,18 +622,18 @@ pqsecure_open_gss(PGconn *conn)
|
||||
if (ret != STATUS_OK)
|
||||
return PGRES_POLLING_FAILED;
|
||||
|
||||
if (conn->gssdeleg && pg_strcasecmp(conn->gssdeleg, "enable") == 0)
|
||||
if (conn->gssdelegation && pg_strcasecmp(conn->gssdelegation, "enable") == 0)
|
||||
{
|
||||
/* Acquire credentials if possible */
|
||||
if (conn->gcred == GSS_C_NO_CREDENTIAL)
|
||||
(void) pg_GSS_have_cred_cache(&conn->gcred);
|
||||
|
||||
/*
|
||||
* We have credentials and gssdeleg is enabled, so request credential
|
||||
* delegation. This may or may not actually result in credentials
|
||||
* being delegated- it depends on if the forwardable flag has been set
|
||||
* in the credential and if the server is configured to accept
|
||||
* delegated credentials.
|
||||
* We have credentials and gssdelegation is enabled, so request
|
||||
* credential delegation. This may or may not actually result in
|
||||
* credentials being delegated- it depends on if the forwardable flag
|
||||
* has been set in the credential and if the server is configured to
|
||||
* accept delegated credentials.
|
||||
*/
|
||||
if (conn->gcred != GSS_C_NO_CREDENTIAL)
|
||||
gss_flags |= GSS_C_DELEG_FLAG;
|
||||
|
Reference in New Issue
Block a user