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/interfaces/libpq/fe-connect.h | |
parent | 91d983aa1140e3ae109684ff7c916583ed059e0e (diff) | |
download | postgresql-d5bbe2aca55bc833e38c768d7f82c129b8b70c83.tar.gz postgresql-d5bbe2aca55bc833e38c768d7f82c129b8b70c83.zip |
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/interfaces/libpq/fe-connect.h')
-rw-r--r-- | src/interfaces/libpq/fe-connect.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/interfaces/libpq/fe-connect.h b/src/interfaces/libpq/fe-connect.h index 7a68e3dedcd..999ae05dac4 100644 --- a/src/interfaces/libpq/fe-connect.h +++ b/src/interfaces/libpq/fe-connect.h @@ -6,26 +6,23 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: fe-connect.h,v 1.5 1997/12/04 00:28:13 scrappy Exp $ + * $Id: fe-connect.h,v 1.6 1998/01/26 01:42:30 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef FE_CONNECT_H #define FE_CONNECT_H +#include <sys/types.h> + +#include "libpq-fe.h" + + /*---------------------------------------------------------------- * Common routines and definitions *---------------------------------------------------------------- */ -extern int packetSend(Port *port, PacketBuf *buf, PacketLen len, bool nonBlocking); -extern int packetReceive(Port *port, PacketBuf *buf, bool nonBlocking); +int packetSend(PGconn *conn, char *buf, size_t len); #endif /* FE_CONNECT_H */ -#ifndef FE_CONNECT_H -#define FE_CONNECT_H - -int packetSend(Port *port, PacketBuf *buf, PacketLen len, bool nonBlocking); -int packetReceive(Port *port, PacketBuf *buf, bool nonBlocking); - -#endif |