Go to the source code of this file.
|
| | DECLARE_GETTER (PQExpBuffer, errorMessage) |
| |
| | DECLARE_GETTER (char *, oauth_client_id) |
| |
| | DECLARE_GETTER (char *, oauth_client_secret) |
| |
| | DECLARE_GETTER (char *, oauth_discovery_uri) |
| |
| | DECLARE_GETTER (char *, oauth_issuer_id) |
| |
| | DECLARE_GETTER (char *, oauth_scope) |
| |
| | DECLARE_GETTER (fe_oauth_state *, sasl_state) |
| |
| | DECLARE_SETTER (pgsocket, altsock) |
| |
| | DECLARE_SETTER (char *, oauth_token) |
| |
| PGDLLEXPORT void | libpq_oauth_init (pgthreadlock_t threadlock, 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) |
| |
| void | libpq_append_conn_error (PGconn *conn, const char *fmt,...) pg_attribute_printf(2 |
| |
| void bool | oauth_unsafe_debugging_enabled (void) |
| |
| int | pq_block_sigpipe (sigset_t *osigset, bool *sigpipe_pending) |
| |
| void | pq_reset_sigpipe (sigset_t *osigset, bool sigpipe_pending, bool got_epipe) |
| |
◆ DECLARE_GETTER
Value:
Definition at line 29 of file oauth-utils.h.
71{
76
81
82#ifdef ENABLE_NLS
84#else
85#define libpq_gettext(x) (x)
86#endif
87
89
90#define pglock_thread() pg_g_threadlock(true)
91#define pgunlock_thread() pg_g_threadlock(false)
92
93#endif
#define pg_attribute_format_arg(a)
#define pg_attribute_printf(f, a)
void(* pgthreadlock_t)(int acquire)
void pq_reset_sigpipe(sigset_t *osigset, bool sigpipe_pending, bool got_epipe)
void bool oauth_unsafe_debugging_enabled(void)
int pq_block_sigpipe(sigset_t *osigset, bool *sigpipe_pending)
pgthreadlock_t pg_g_threadlock
void libpq_append_conn_error(PGconn *conn, const char *fmt,...) pg_attribute_printf(2
◆ DECLARE_SETTER
◆ libpq_gettext
◆ pglock_thread
◆ pgunlock_thread
◆ libpq_gettext_func
◆ PGTernaryBool
| Enumerator |
|---|
| PG_BOOL_UNKNOWN | |
| PG_BOOL_YES | |
| PG_BOOL_NO | |
Definition at line 71 of file oauth-utils.h.
◆ DECLARE_GETTER() [1/7]
| DECLARE_GETTER |
( |
char * |
, |
|
|
oauth_client_id |
|
|
) |
| |
◆ DECLARE_GETTER() [2/7]
| DECLARE_GETTER |
( |
char * |
, |
|
|
oauth_client_secret |
|
|
) |
| |
◆ DECLARE_GETTER() [3/7]
| DECLARE_GETTER |
( |
char * |
, |
|
|
oauth_discovery_uri |
|
|
) |
| |
◆ DECLARE_GETTER() [4/7]
| DECLARE_GETTER |
( |
char * |
, |
|
|
oauth_issuer_id |
|
|
) |
| |
◆ DECLARE_GETTER() [5/7]
| DECLARE_GETTER |
( |
char * |
, |
|
|
oauth_scope |
|
|
) |
| |
◆ DECLARE_GETTER() [6/7]
◆ DECLARE_GETTER() [7/7]
◆ DECLARE_SETTER() [1/2]
| DECLARE_SETTER |
( |
char * |
, |
|
|
oauth_token |
|
|
) |
| |
◆ DECLARE_SETTER() [2/2]
◆ libpq_append_conn_error()
◆ libpq_oauth_init()
| PGDLLEXPORT void libpq_oauth_init |
( |
pgthreadlock_t |
threadlock, |
|
|
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 |
|
) |
| |
|
extern |
Definition at line 65 of file oauth-utils.c.
76{
88}
set_conn_oauth_token_func set_conn_oauth_token
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
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
conn_errorMessage_func conn_errorMessage
References conn_errorMessage, conn_oauth_client_id, conn_oauth_client_secret, conn_oauth_discovery_uri, conn_oauth_issuer_id, conn_oauth_scope, conn_sasl_state, fb(), libpq_gettext_impl, pg_g_threadlock, set_conn_altsock, and set_conn_oauth_token.
◆ oauth_unsafe_debugging_enabled()
◆ pq_block_sigpipe()
Definition at line 172 of file oauth-utils.c.
173{
176
179
180
183 return -1;
184
185
187 {
188
190 return -1;
191
193 *sigpipe_pending = true;
194 else
195 *sigpipe_pending = false;
196 }
197 else
198 *sigpipe_pending = false;
199
200 return 0;
201}
#define SOCK_ERRNO_SET(e)
◆ pq_reset_sigpipe()
Definition at line 208 of file oauth-utils.c.
209{
213
214
215 if (got_epipe && !sigpipe_pending)
216 {
219 {
221
224
226 }
227 }
228
229
231
233}
◆ pg_g_threadlock