From d5bbe2aca55bc833e38c768d7f82c129b8b70c83 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Mon, 26 Jan 1998 01:42:53 +0000 Subject: From: Phil Thompson 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. --- src/interfaces/libpq/fe-connect.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/interfaces/libpq/fe-connect.h') 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 + +#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 -- cgit v1.2.3