aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-08-27 15:15:23 +0000
committerBruce Momjian <bruce@momjian.us>2002-08-27 15:15:23 +0000
commitfd3c4b2eafde3b6b4e73f9a8d1b9dea29c28a919 (patch)
treeb4d785afb3fd87212b92679690eb6b426a632768
parent840deabfe01ddea7c68fe6e8c25ea1faf382474b (diff)
downloadpostgresql-fd3c4b2eafde3b6b4e73f9a8d1b9dea29c28a919.tar.gz
postgresql-fd3c4b2eafde3b6b4e73f9a8d1b9dea29c28a919.zip
Add most of Neil Conway's cleanups.
-rw-r--r--src/backend/libpq/auth.c4
-rw-r--r--src/include/libpq/pqcomm.h14
2 files changed, 13 insertions, 5 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index 83f7cb10c22..a36535cb974 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.83 2002/08/18 03:03:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.84 2002/08/27 15:15:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -809,7 +809,7 @@ recv_and_check_password_packet(Port *port)
return STATUS_EOF;
}
- /* Do not echo failed password to logs, for security. */
+ /* Do not echo password to logs, for security. */
elog(DEBUG5, "received password packet");
result = md5_crypt_verify(port, port->user, buf.data);
diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h
index f0ea4e35943..728cce81cd1 100644
--- a/src/include/libpq/pqcomm.h
+++ b/src/include/libpq/pqcomm.h
@@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqcomm.h,v 1.66 2002/08/18 03:03:26 momjian Exp $
+ * $Id: pqcomm.h,v 1.67 2002/08/27 15:15:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -106,10 +106,18 @@ typedef uint32 PacketLen;
/*
* Startup message parameters sizes. These must not be changed without changing
- * the protcol version. These are all strings that are '\0' terminated only if
+ * the protocol version. These are all strings that are '\0' terminated only if
* there is room.
*/
+/*
+ * FIXME: remove the fixed size limitations on database & user name, use
+ * variable length fields instead. The actual values will still be
+ * limited by NAMEDATALEN, but this will at least allow changing
+ * NAMEDATALEN to increase database & user name limits without changing
+ * the protocol. -neilc, 2002/08/27
+ */
+
/* These should all be of near-unlimited length, perhap 10k */
#define SM_DATABASE 64
/* SM_USER should be the same size as the others. bjm 2002-06-02 */
@@ -120,7 +128,7 @@ typedef uint32 PacketLen;
#define SM_UNUSED 64
#define SM_TTY 64
-typedef uint32 ProtocolVersion; /* Fe/Be protocol version nr. */
+typedef uint32 ProtocolVersion; /* Fe/Be protocol version number */
typedef struct StartupPacket
{