diff options
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
| -rw-r--r-- | src/interfaces/libpq/libpq-int.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index 98080f2350..cbefdd8e0f 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.121 2007/07/08 18:28:56 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.122 2007/07/10 13:14:22 mha Exp $ * *------------------------------------------------------------------------- */ @@ -44,6 +44,10 @@ /* include stuff found in fe only */ #include "pqexpbuffer.h" +#ifdef ENABLE_GSS +#include <gssapi/gssapi.h> +#endif + #ifdef USE_SSL #include <openssl/ssl.h> #include <openssl/err.h> @@ -268,7 +272,7 @@ struct pg_conn char *pguser; /* Postgres username and password, if any */ char *pgpass; char *sslmode; /* SSL mode (require,prefer,allow,disable) */ -#ifdef KRB5 +#if defined(KRB5) || defined(ENABLE_GSS) char *krbsrvname; /* Kerberos service name */ #endif @@ -350,6 +354,14 @@ struct pg_conn char peer_cn[SM_USER + 1]; /* peer common name */ #endif +#ifdef ENABLE_GSS + gss_ctx_id_t gctx; /* GSS context */ + gss_name_t gtarg_nam; /* GSS target name */ + OM_uint32 gflags; /* GSS service request flags */ + gss_buffer_desc ginbuf; /* GSS input token */ + gss_buffer_desc goutbuf; /* GSS output token */ +#endif + /* Buffer for current error message */ PQExpBufferData errorMessage; /* expansible string */ @@ -399,6 +411,11 @@ extern pgthreadlock_t pg_g_threadlock; #define pgunlock_thread() ((void) 0) #endif +/* === in fe-auth.c === */ +#ifdef ENABLE_GSS +extern void pg_GSS_error(char *mprefix, char *msg, int msglen, + OM_uint32 maj_stat, OM_uint32 min_stat); +#endif /* === in fe-exec.c === */ |
