PostgreSQL Source Code git master
|
Go to the source code of this file.
Functions | |
static int | handle_auth_data (PGauthData type, PGconn *conn, void *data) |
static PostgresPollingStatusType | async_cb (PGconn *conn, PGoauthBearerRequest *req, pgsocket *altsock) |
static PostgresPollingStatusType | misbehave_cb (PGconn *conn, PGoauthBearerRequest *req, pgsocket *altsock) |
static void | usage (char *argv[]) |
int | main (int argc, char *argv[]) |
Variables | |
static bool | no_hook = false |
static bool | hang_forever = false |
static bool | stress_async = false |
static const char * | expected_uri = NULL |
static const char * | expected_scope = NULL |
static const char * | misbehave_mode = NULL |
static char * | token = NULL |
|
static |
Definition at line 229 of file oauth_hook_client.c.
References err(), hang_forever, PGINVALID_SOCKET, PGRES_POLLING_FAILED, PGRES_POLLING_OK, PGRES_POLLING_READING, socket, PGoauthBearerRequest::token, and token.
Referenced by handle_auth_data().
|
static |
Definition at line 173 of file oauth_hook_client.c.
References PGoauthBearerRequest::async, async_cb(), data, expected_scope, expected_uri, fprintf, hang_forever, misbehave_cb(), misbehave_mode, no_hook, PGoauthBearerRequest::openid_configuration, PQAUTHDATA_OAUTH_BEARER_TOKEN, PGoauthBearerRequest::scope, PGoauthBearerRequest::token, token, and type.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 59 of file oauth_hook_client.c.
References conn, CONNECTION_OK, expected_scope, expected_uri, fprintf, getopt_long(), handle_auth_data(), hang_forever, misbehave_mode, no_argument, no_hook, optarg, optind, PGRES_POLLING_FAILED, PGRES_POLLING_OK, PQconnectdb(), PQconnectPoll(), PQconnectStart(), PQerrorMessage(), PQfinish(), PQsetAuthDataHook(), PQstatus(), printf, required_argument, stress_async, and usage().
|
static |
Definition at line 271 of file oauth_hook_client.c.
References fprintf, misbehave_mode, PGRES_POLLING_FAILED, PGRES_POLLING_OK, and PGRES_POLLING_READING.
Referenced by handle_auth_data().
|
static |
Definition at line 33 of file oauth_hook_client.c.
References printf.
Referenced by main().
|
static |
Definition at line 54 of file oauth_hook_client.c.
Referenced by handle_auth_data(), and main().
|
static |
Definition at line 53 of file oauth_hook_client.c.
Referenced by handle_auth_data(), and main().
|
static |
Definition at line 51 of file oauth_hook_client.c.
Referenced by async_cb(), handle_auth_data(), and main().
|
static |
Definition at line 55 of file oauth_hook_client.c.
Referenced by handle_auth_data(), main(), and misbehave_cb().
|
static |
Definition at line 50 of file oauth_hook_client.c.
Referenced by handle_auth_data(), and main().
|
static |
Definition at line 52 of file oauth_hook_client.c.
Referenced by main().
|
static |
Definition at line 56 of file oauth_hook_client.c.
Referenced by async_cb(), and handle_auth_data().