diff options
Diffstat (limited to 'src/interfaces/libpq/fe-auth.h')
-rw-r--r-- | src/interfaces/libpq/fe-auth.h | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/interfaces/libpq/fe-auth.h b/src/interfaces/libpq/fe-auth.h index 0e015711ec1..01b2fcc9d92 100644 --- a/src/interfaces/libpq/fe-auth.h +++ b/src/interfaces/libpq/fe-auth.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.h,v 1.22 2005/10/15 02:49:48 momjian Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.h,v 1.23 2005/10/17 16:24:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -18,27 +18,8 @@ #include "libpq-int.h" -/*---------------------------------------------------------------- - * Common routines and definitions - *---------------------------------------------------------------- - */ - -/* what we call "no authentication system" */ -#define UNAUTHNAME "unauth" - -/* what a frontend uses by default */ -#ifndef KRB5 -#define DEFAULT_CLIENT_AUTHSVC UNAUTHNAME -#else -#define DEFAULT_CLIENT_AUTHSVC "kerberos" -#endif /* KRB5 */ - -extern int fe_sendauth(AuthRequest areq, PGconn *conn, const char *hostname, +extern int pg_fe_sendauth(AuthRequest areq, PGconn *conn, const char *hostname, const char *password, char *PQerrormsg); -extern MsgType fe_getauthsvc(char *PQerrormsg); -extern void fe_setauthsvc(const char *name, char *PQerrormsg); -extern char *fe_getauthname(char *PQerrormsg); - -#define PG_KRB5_VERSION "PGVER5.1" /* at most KRB_SENDAUTH_VLEN chars */ +extern char *pg_fe_getauthname(char *PQerrormsg); #endif /* FE_AUTH_H */ |