]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix fake NTLM auth symbol clash on ERR/OK macros
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 31 Jul 2010 05:48:01 +0000 (17:48 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 31 Jul 2010 05:48:01 +0000 (17:48 +1200)
helpers/ntlm_auth/fake/ntlm_fake_auth.cc

index 000eb675bc994016245aa9160fd8217d791b33bd..3d967a12e9ebe9a3b9fb0b0fb7d8993f0d7c0171 100644 (file)
@@ -54,6 +54,7 @@
 #define IGNORANCE_IS_BLISS
 
 #include "config.h"
+#include "helpers/defines.h"
 #include "libntlmauth/ntlmauth.h"
 #include "libntlmauth/support_bits.cci"
 #include "util.h"
 #define SEND3(X,Y,Z) debug("sending '" X "' to squid\n",Y,Z); printf(X "\n",Y,Z);
 #endif
 
-#define ERR    "ERR\n"
-#define OK     "OK\n"
-
-#define BUFFER_SIZE 10240
-
 const char *authenticate_ntlm_domain = "WORKGROUP";
 int strip_domain_enabled = 0;
 int NTLM_packet_debug_enabled = 0;
@@ -151,7 +147,7 @@ process_options(int argc, char *argv[])
 int
 main(int argc, char *argv[])
 {
-    char buf[BUFFER_SIZE];
+    char buf[HELEPR_INPUT_BUFFER];
     int buflen = 0;
     char user[NTLM_MAX_FIELD_LENGTH], domain[NTLM_MAX_FIELD_LENGTH];
     char *p;
@@ -169,7 +165,7 @@ main(int argc, char *argv[])
 
     debug("%s build " __DATE__ ", " __TIME__ " starting up...\n", my_program_name);
 
-    while (fgets(buf, BUFFER_SIZE, stdin) != NULL) {
+    while (fgets(buf, HELPER_INPUT_BUFFER, stdin) != NULL) {
         user[0] = '\0';                /*no user code */
         domain[0] = '\0';              /*no domain code */