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

Function pg_SSPI_error

src/interfaces/libpq/fe-auth.c:196–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 */
195
196static void
197pg_SSPI_error(PGconn *conn, const char *mprefix, SECURITY_STATUS r)
198{
199 char sysmsg[256];
200
201 if (FormatMessage(FORMAT_MESSAGE_IGNORE_INSERTS |
202 FORMAT_MESSAGE_FROM_SYSTEM,
203 NULL, r, 0,
204 sysmsg, sizeof(sysmsg), NULL) == 0)
205 appendPQExpBuffer(&conn->errorMessage, "%s: SSPI error %x\n",
206 mprefix, (unsigned int) r);
207 else
208 appendPQExpBuffer(&conn->errorMessage, "%s: %s (%x)\n",
209 mprefix, sysmsg, (unsigned int) r);
210}
211
212/*
213 * Continue SSPI authentication with next token as needed.

Callers 2

pg_SSPI_continueFunction · 0.70
pg_SSPI_startupFunction · 0.70

Calls 1

appendPQExpBufferFunction · 0.85

Tested by

no test coverage detected