23#ifndef USE_DYNAMIC_OAUTH
24#error oauth-utils.c is not supported in static builds
28#error do not rely on libpq-int.h in dynamic builds of libpq-oauth
151 const char *
env =
getenv(
"PGOAUTHDEBUG");
161#define SOCK_ERRNO (WSAGetLastError())
162#define SOCK_ERRNO_SET(e) WSASetLastError(e)
164#define SOCK_ERRNO errno
165#define SOCK_ERRNO_SET(e) (errno = (e))
193 *sigpipe_pending =
true;
195 *sigpipe_pending =
false;
198 *sigpipe_pending =
false;
215 if (got_epipe && !sigpipe_pending)
#define unconstify(underlying_type, expr)
#define Assert(condition)
void(* pgthreadlock_t)(int acquire)
set_conn_oauth_token_func set_conn_oauth_token
void pq_reset_sigpipe(sigset_t *osigset, bool sigpipe_pending, bool got_epipe)
conn_oauth_client_secret_func conn_oauth_client_secret
conn_sasl_state_func conn_sasl_state
conn_oauth_client_id_func conn_oauth_client_id
int pq_block_sigpipe(sigset_t *osigset, bool *sigpipe_pending)
void libpq_oauth_init(pgthreadlock_t threadlock_impl, libpq_gettext_func gettext_impl, conn_errorMessage_func errmsg_impl, conn_oauth_client_id_func clientid_impl, conn_oauth_client_secret_func clientsecret_impl, conn_oauth_discovery_uri_func discoveryuri_impl, conn_oauth_issuer_id_func issuerid_impl, conn_oauth_scope_func scope_impl, conn_sasl_state_func saslstate_impl, set_conn_altsock_func setaltsock_impl, set_conn_oauth_token_func settoken_impl)
conn_oauth_scope_func conn_oauth_scope
static libpq_gettext_func libpq_gettext_impl
pgthreadlock_t pg_g_threadlock
conn_oauth_issuer_id_func conn_oauth_issuer_id
set_conn_altsock_func set_conn_altsock
conn_oauth_discovery_uri_func conn_oauth_discovery_uri
#define SOCK_ERRNO_SET(e)
void libpq_append_conn_error(PGconn *conn, const char *fmt,...)
conn_errorMessage_func conn_errorMessage
bool oauth_unsafe_debugging_enabled(void)
char *(* libpq_gettext_func)(const char *msgid)
bool appendPQExpBufferVA(PQExpBuffer str, const char *fmt, va_list args)
void appendPQExpBufferChar(PQExpBuffer str, char ch)
#define PQExpBufferBroken(str)