From d330f1554d3a99304e1965e3acf63c10ec34ce20 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 17 Oct 2005 16:24:20 +0000 Subject: Clean up libpq's pollution of application namespace by renaming the exported routines of ip.c, md5.c, and fe-auth.c to begin with 'pg_'. Also get rid of the vestigial fe_setauthsvc/fe_getauthsvc routines altogether. --- src/interfaces/libpq/fe-auth.h | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'src/interfaces/libpq/fe-auth.h') 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 */ -- cgit v1.2.3