MCPcopy Create free account
hub / github.com/apache/cloudberry / pg_GSS_error

Function pg_GSS_error

src/interfaces/libpq/fe-gssapi-common.c:53–62  ·  view source on GitHub ↗

* GSSAPI errors contain two parts; put both into conn->errorMessage. */

Source from the content-addressed store, hash-verified

51 * GSSAPI errors contain two parts; put both into conn->errorMessage.
52 */
53void
54pg_GSS_error(const char *mprefix, PGconn *conn,
55 OM_uint32 maj_stat, OM_uint32 min_stat)
56{
57 appendPQExpBuffer(&conn->errorMessage, "%s:", mprefix);
58 pg_GSS_error_int(&conn->errorMessage, maj_stat, GSS_C_GSS_CODE);
59 appendPQExpBufferChar(&conn->errorMessage, ':');
60 pg_GSS_error_int(&conn->errorMessage, min_stat, GSS_C_MECH_CODE);
61 appendPQExpBufferChar(&conn->errorMessage, '\n');
62}
63
64/*
65 * Check if we can acquire credentials at all (and yield them if so).

Callers 5

pg_GSS_continueFunction · 0.85
pg_GSS_writeFunction · 0.85
pg_GSS_readFunction · 0.85
pqsecure_open_gssFunction · 0.85
pg_GSS_load_servicenameFunction · 0.85

Calls 3

appendPQExpBufferFunction · 0.85
appendPQExpBufferCharFunction · 0.85
pg_GSS_error_intFunction · 0.70

Tested by

no test coverage detected