Bug 2426: Increase buffer in authenticateNegotiateStart / squid_kerb_auth
- Kerberos helper bit left out of first patch.
#include "spnegohelp.h"
#endif
+// AYJ: must match the definition in src/auth/negotiate/auth_negotiate.cc
+#define MAX_AUTHTOKEN_LEN 32768
+
+// AYJ: match define in include/rfc2181.h
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX 256
#endif
return(0);
}
-
-
int main(int argc, char * const argv[])
{
- char buf[6400];
+ char buf[MAX_AUTHTOKEN_LEN];
char *c;
int length=0;
static int err=0;
/**
* Maximum length (buffer size) for token strings.
*/
+// AYJ: must match re-definition in helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c
#define MAX_AUTHTOKEN_LEN 32768
static void