8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.185 2009/10/14 07:27:13 heikki Exp $
11
+ * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.186 2009/10/14 22:09:46 heikki Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -184,7 +184,7 @@ static int pg_SSPI_recvauth(Port *port);
184
184
185
185
186
186
/*
187
- * Maximum size of GSS and SSPI authentication tokens.
187
+ * Maximum accepted size of GSS and SSPI authentication tokens.
188
188
*
189
189
* Kerberos tickets are usually quite small, but the TGTs issued by Windows
190
190
* domain controllers include an authorization field known as the Privilege
@@ -196,7 +196,7 @@ static int pg_SSPI_recvauth(Port *port);
196
196
* registry setting. Microsoft recommends that it is not set higher than
197
197
* 65535 bytes, so that seems like a reasonable limit for us as well.
198
198
*/
199
- #define MAX_AUTH_TOKEN_LENGTH 65535
199
+ #define PG_MAX_AUTH_TOKEN_LENGTH 65535
200
200
201
201
202
202
/*----------------------------------------------------------------
@@ -963,7 +963,7 @@ pg_GSS_recvauth(Port *port)
963
963
964
964
/* Get the actual GSS token */
965
965
initStringInfo (& buf );
966
- if (pq_getmessage (& buf , MAX_AUTH_TOKEN_LENGTH ))
966
+ if (pq_getmessage (& buf , PG_MAX_AUTH_TOKEN_LENGTH ))
967
967
{
968
968
/* EOF - pq_getmessage already logged error */
969
969
pfree (buf .data );
@@ -1201,7 +1201,7 @@ pg_SSPI_recvauth(Port *port)
1201
1201
1202
1202
/* Get the actual SSPI token */
1203
1203
initStringInfo (& buf );
1204
- if (pq_getmessage (& buf , MAX_AUTH_TOKEN_LENGTH ))
1204
+ if (pq_getmessage (& buf , PG_MAX_AUTH_TOKEN_LENGTH ))
1205
1205
{
1206
1206
/* EOF - pq_getmessage already logged error */
1207
1207
pfree (buf .data );
0 commit comments