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

Commitd57a931

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 parent7aa815a commitd57a931

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
@@ -2747,13 +2747,13 @@ PQconnectPoll(PGconn *conn)
27472747
#ifdefENABLE_GSS
27482748

27492749
/*
2750-
* If GSSAPI is enabled and we have accache, try to set it up
2751-
* before sending startup messages. If it's already
2750+
* If GSSAPI is enabled and we have acredential cache, try to
2751+
*set it upbefore sending startup messages. If it's already
27522752
* operating, don't try SSL and instead just build the startup
27532753
* packet.
27542754
*/
27552755
if (conn->try_gss&& !conn->gctx)
2756-
conn->try_gss=pg_GSS_have_ccache(&conn->gcred);
2756+
conn->try_gss=pg_GSS_have_cred_cache(&conn->gcred);
27572757
if (conn->try_gss&& !conn->gctx)
27582758
{
27592759
ProtocolVersionpv=pg_hton32(NEGOTIATE_GSS_CODE);
@@ -2773,7 +2773,7 @@ PQconnectPoll(PGconn *conn)
27732773
elseif (!conn->gctx&&conn->gssencmode[0]=='r')
27742774
{
27752775
appendPQExpBuffer(&conn->errorMessage,
2776-
libpq_gettext("GSSAPI encryption required, but was impossible (possibly noccache, no server support, or using a local socket)\n"));
2776+
libpq_gettext("GSSAPI encryption required, but was impossible (possibly nocredential cache, no server support, or using a local socket)\n"));
27772777
gotoerror_return;
27782778
}
27792779
#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