diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1998-01-26 01:42:53 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1998-01-26 01:42:53 +0000 |
| commit | d5bbe2aca55bc833e38c768d7f82c129b8b70c83 (patch) | |
| tree | 47f4e1ecb3277869bb276e5433df335d920d1baf /src/include/libpq/auth.h | |
| parent | 91d983aa1140e3ae109684ff7c916583ed059e0e (diff) | |
| download | postgresql-d5bbe2aca55bc833e38c768d7f82c129b8b70c83.tar.gz | |
From: Phil Thompson <phil@river-bank.demon.co.uk>
I've completed the patch to fix the protocol and authentication issues I
was discussing a couple of weeks ago. The particular changes are:
- the protocol has a version number
- network byte order is used throughout
- the pg_hba.conf file is used to specify what method is used to
authenticate a frontend (either password, ident, trust, reject, krb4
or krb5)
- support for multiplexed backends is removed
- appropriate changes to man pages
- the -a switch to many programs to specify an authentication service
no longer has any effect
- the libpq.so version number has changed to 1.1
The new backend still supports the old protocol so old interfaces won't
break.
Diffstat (limited to 'src/include/libpq/auth.h')
| -rw-r--r-- | src/include/libpq/auth.h | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/include/libpq/auth.h b/src/include/libpq/auth.h index 6a4160e65d..bf85ee5996 100644 --- a/src/include/libpq/auth.h +++ b/src/include/libpq/auth.h @@ -6,40 +6,22 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: auth.h,v 1.7 1997/09/08 21:52:28 momjian Exp $ + * $Id: auth.h,v 1.8 1998/01/26 01:42:05 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef AUTH_H #define AUTH_H -#include <libpq/pqcomm.h> +#include "libpq/libpq-be.h" /*---------------------------------------------------------------- * Common routines and definitions *---------------------------------------------------------------- */ -/* what we call "no authentication system" */ -#define UNAUTHNAME "unauth" - -/* what a frontend uses by default */ -#if !defined(KRB4) && !defined(KRB5) -#define DEFAULT_CLIENT_AUTHSVC UNAUTHNAME -#else /* KRB4 || KRB5 */ -#define DEFAULT_CLIENT_AUTHSVC "kerberos" -#endif /* KRB4 || KRB5 */ - -extern int fe_sendauth(MsgType msgtype, Port *port, char *hostname); -extern void fe_setauthsvc(char *name); -extern MsgType fe_getauthsvc(); -extern char *fe_getauthname(void); -extern int be_recvauth(MsgType msgtype, Port *port, char *username, StartupInfo *sp); -extern void be_setauthsvc(char *name); - -/* the value that matches any dbName value when doing - host based authentication*/ -#define ALL_DBNAME "*" +void be_recvauth(Port *port); +void auth_failed(Port *port); #define PG_KRB4_VERSION "PGVER4.1" /* at most KRB_SENDAUTH_VLEN chars */ #define PG_KRB5_VERSION "PGVER5.1" |
