diff options
| author | Bruce Momjian <bruce@momjian.us> | 1999-09-27 03:13:16 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1999-09-27 03:13:16 +0000 |
| commit | e0e7daef6daf9a760c9c90bc7fe5b9ba4349267f (patch) | |
| tree | 37489845f4c86ef613737986142354fd8562c0d9 /src/include/libpq/libpq-be.h | |
| parent | 3114f92122d3aa3588e89c166f69b44204d5b3db (diff) | |
| download | postgresql-e0e7daef6daf9a760c9c90bc7fe5b9ba4349267f.tar.gz | |
Lots of patches coming in from me today :-)
When drawing up a very simple "text-drawing" of how the negotiation is done,
I realised I had done this last part (fallback) in a very stupid way. Patch
#4 fixes this, and does it in a much better way.
Included is also the simple text-drawing of how the negotiation is done.
//Magnus
Diffstat (limited to 'src/include/libpq/libpq-be.h')
| -rw-r--r-- | src/include/libpq/libpq-be.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h index 9b38673d41..1d99bc31b2 100644 --- a/src/include/libpq/libpq-be.h +++ b/src/include/libpq/libpq-be.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-be.h,v 1.16 1999/07/17 20:18:28 momjian Exp $ + * $Id: libpq-be.h,v 1.17 1999/09/27 03:13:11 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -18,6 +18,11 @@ #include "libpq/hba.h" +#ifdef USE_SSL +#include <openssl/ssl.h> +#include <openssl/err.h> +#endif + /* Protocol v0 password packet. */ @@ -126,6 +131,13 @@ typedef struct Port char tty[SM_TTY + 1]; char auth_arg[MAX_AUTH_ARG]; UserAuth auth_method; + + /* + * SSL structures + */ +#ifdef USE_SSL + SSL *ssl; +#endif } Port; @@ -136,9 +148,9 @@ extern ProtocolVersion FrontendProtocol; * prototypes for functions in pqpacket.c */ void PacketReceiveSetup(Packet *pkt, PacketDoneProc iodone, void *arg); -int PacketReceiveFragment(Packet *pkt, int sock); +int PacketReceiveFragment(Port *port); void PacketSendSetup(Packet *pkt, int nbytes, PacketDoneProc iodone, void *arg); -int PacketSendFragment(Packet *pkt, int sock); +int PacketSendFragment(Port *port); void PacketSendError(Packet *pkt, char *errormsg); #endif /* LIBPQ_BE_H */ |
