* GSSAPI errors contain two parts; put both into conn->errorMessage. */
| 51 | * GSSAPI errors contain two parts; put both into conn->errorMessage. |
| 52 | */ |
| 53 | void |
| 54 | pg_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). |
no test coverage detected