diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-10-14 22:10:01 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-10-14 22:10:01 +0000 |
commit | 3db362edf348b2906747acbe37fc0eda1651c8f5 (patch) | |
tree | 315dc6c11c11dd08580516bd7f6cfe096d2add8b /src/backend | |
parent | bd62a211b5992aa080413709932728ce11a3d8dd (diff) | |
download | postgresql-3db362edf348b2906747acbe37fc0eda1651c8f5.tar.gz postgresql-3db362edf348b2906747acbe37fc0eda1651c8f5.zip |
Rename the new MAX_AUTH_TOKEN_LENGTH #define to PG_MAX_AUTH_MAX_TOKEN_LENGTH,
to make it more obvious that it's a PostgreSQL internal limit, not something
that comes from system header files.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/libpq/auth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 466b3640e85..9a1ae66f037 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.183.2.1 2009/10/14 07:27:27 heikki Exp $ + * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.183.2.2 2009/10/14 22:10:01 heikki Exp $ * *------------------------------------------------------------------------- */ @@ -182,7 +182,7 @@ static int pg_SSPI_recvauth(Port *port); /* - * Maximum size of GSS and SSPI authentication tokens. + * Maximum accepted size of GSS and SSPI authentication tokens. * * Kerberos tickets are usually quite small, but the TGTs issued by Windows * domain controllers include an authorization field known as the Privilege @@ -194,7 +194,7 @@ static int pg_SSPI_recvauth(Port *port); * registry setting. Microsoft recommends that it is not set higher than * 65535 bytes, so that seems like a reasonable limit for us as well. */ -#define MAX_AUTH_TOKEN_LENGTH 65535 +#define PG_MAX_AUTH_TOKEN_LENGTH 65535 /*---------------------------------------------------------------- @@ -952,7 +952,7 @@ pg_GSS_recvauth(Port *port) /* Get the actual GSS token */ initStringInfo(&buf); - if (pq_getmessage(&buf, MAX_AUTH_TOKEN_LENGTH)) + if (pq_getmessage(&buf, PG_MAX_AUTH_TOKEN_LENGTH)) { /* EOF - pq_getmessage already logged error */ pfree(buf.data); @@ -1190,7 +1190,7 @@ pg_SSPI_recvauth(Port *port) /* Get the actual SSPI token */ initStringInfo(&buf); - if (pq_getmessage(&buf, MAX_AUTH_TOKEN_LENGTH)) + if (pq_getmessage(&buf, PG_MAX_AUTH_TOKEN_LENGTH)) { /* EOF - pq_getmessage already logged error */ pfree(buf.data); |