88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.185 2009/10/1407:27:13 heikki Exp $
11+ * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.186 2009/10/1422:09:46 heikki Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -184,7 +184,7 @@ static intpg_SSPI_recvauth(Port *port);
184184
185185
186186/*
187- * Maximum size of GSS and SSPI authentication tokens.
187+ * Maximumaccepted size of GSS and SSPI authentication tokens.
188188 *
189189 * Kerberos tickets are usually quite small, but the TGTs issued by Windows
190190 * domain controllers include an authorization field known as the Privilege
@@ -196,7 +196,7 @@ static intpg_SSPI_recvauth(Port *port);
196196 * registry setting. Microsoft recommends that it is not set higher than
197197 * 65535 bytes, so that seems like a reasonable limit for us as well.
198198 */
199- #define MAX_AUTH_TOKEN_LENGTH 65535
199+ #define PG_MAX_AUTH_TOKEN_LENGTH 65535
200200
201201
202202/*----------------------------------------------------------------
@@ -963,7 +963,7 @@ pg_GSS_recvauth(Port *port)
963963
964964/* Get the actual GSS token */
965965initStringInfo (& buf );
966- if (pq_getmessage (& buf ,MAX_AUTH_TOKEN_LENGTH ))
966+ if (pq_getmessage (& buf ,PG_MAX_AUTH_TOKEN_LENGTH ))
967967{
968968/* EOF - pq_getmessage already logged error */
969969pfree (buf .data );
@@ -1201,7 +1201,7 @@ pg_SSPI_recvauth(Port *port)
12011201
12021202/* Get the actual SSPI token */
12031203initStringInfo (& buf );
1204- if (pq_getmessage (& buf ,MAX_AUTH_TOKEN_LENGTH ))
1204+ if (pq_getmessage (& buf ,PG_MAX_AUTH_TOKEN_LENGTH ))
12051205{
12061206/* EOF - pq_getmessage already logged error */
12071207pfree (buf .data );