diff options
Diffstat (limited to 'src/interfaces/libpq/fe-auth-oauth.h')
-rw-r--r-- | src/interfaces/libpq/fe-auth-oauth.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-auth-oauth.h b/src/interfaces/libpq/fe-auth-oauth.h index 3f1a7503a01..0d59e91605b 100644 --- a/src/interfaces/libpq/fe-auth-oauth.h +++ b/src/interfaces/libpq/fe-auth-oauth.h @@ -15,8 +15,8 @@ #ifndef FE_AUTH_OAUTH_H #define FE_AUTH_OAUTH_H +#include "fe-auth-sasl.h" #include "libpq-fe.h" -#include "libpq-int.h" enum fe_oauth_step @@ -27,18 +27,24 @@ enum fe_oauth_step FE_OAUTH_SERVER_ERROR, }; +/* + * This struct is exported to the libpq-oauth module. If changes are needed + * during backports to stable branches, please keep ABI compatibility (no + * changes to existing members, add new members at the end, etc.). + */ typedef struct { enum fe_oauth_step step; PGconn *conn; void *async_ctx; + + void *builtin_flow; } fe_oauth_state; -extern PostgresPollingStatusType pg_fe_run_oauth_flow(PGconn *conn); -extern void pg_fe_cleanup_oauth_flow(PGconn *conn); extern void pqClearOAuthToken(PGconn *conn); extern bool oauth_unsafe_debugging_enabled(void); +extern bool use_builtin_flow(PGconn *conn, fe_oauth_state *state); /* Mechanisms in fe-auth-oauth.c */ extern const pg_fe_sasl_mech pg_oauth_mech; |