Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5599f40

Browse files
committed
libpq: ccache -> credential cache
The term "ccache" is overloaded. Let's be more clear, in case someoneother than a Kerberos wizard has to read this code.
1 parent946647f commit5599f40

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,13 +2748,13 @@ PQconnectPoll(PGconn *conn)
27482748
#ifdefENABLE_GSS
27492749

27502750
/*
2751-
* If GSSAPI is enabled and we have accache, try to set it up
2752-
* before sending startup messages. If it's already
2751+
* If GSSAPI is enabled and we have acredential cache, try to
2752+
*set it upbefore sending startup messages. If it's already
27532753
* operating, don't try SSL and instead just build the startup
27542754
* packet.
27552755
*/
27562756
if (conn->try_gss&& !conn->gctx)
2757-
conn->try_gss=pg_GSS_have_ccache(&conn->gcred);
2757+
conn->try_gss=pg_GSS_have_cred_cache(&conn->gcred);
27582758
if (conn->try_gss&& !conn->gctx)
27592759
{
27602760
ProtocolVersionpv=pg_hton32(NEGOTIATE_GSS_CODE);
@@ -2774,7 +2774,7 @@ PQconnectPoll(PGconn *conn)
27742774
elseif (!conn->gctx&&conn->gssencmode[0]=='r')
27752775
{
27762776
appendPQExpBufferStr(&conn->errorMessage,
2777-
libpq_gettext("GSSAPI encryption required, but was impossible (possibly noccache, no server support, or using a local socket)\n"));
2777+
libpq_gettext("GSSAPI encryption required, but was impossible (possibly nocredential cache, no server support, or using a local socket)\n"));
27782778
gotoerror_return;
27792779
}
27802780
#endif

‎src/interfaces/libpq/fe-gssapi-common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pg_GSS_error(const char *mprefix, PGconn *conn,
5858
* Check if we can acquire credentials at all (and yield them if so).
5959
*/
6060
bool
61-
pg_GSS_have_ccache(gss_cred_id_t*cred_out)
61+
pg_GSS_have_cred_cache(gss_cred_id_t*cred_out)
6262
{
6363
OM_uint32major,
6464
minor;

‎src/interfaces/libpq/fe-gssapi-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
voidpg_GSS_error(constchar*mprefix,PGconn*conn,
2222
OM_uint32maj_stat,OM_uint32min_stat);
23-
boolpg_GSS_have_ccache(gss_cred_id_t*cred_out);
23+
boolpg_GSS_have_cred_cache(gss_cred_id_t*cred_out);
2424
intpg_GSS_load_servicename(PGconn*conn);
2525

2626
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp