]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Various patches from Pawel Worach
authorrobertc <>
Sun, 3 Aug 2003 14:09:00 +0000 (14:09 +0000)
committerrobertc <>
Sun, 3 Aug 2003 14:09:00 +0000 (14:09 +0000)
[patch] make trans. ipfilter compile
one else too many?

[patch] update .cvsignore files
Make all .cvsignore files up-to-date and add some
new ones to libTrie.

[patch] make ntlm_auth compile on freebsd 5.x
I have no idea how portable this is but freebsd doesn't
use malloc.h anymore.

# grep error /usr/include/malloc.h
#error "<malloc.h> has been replaced by <stdlib.h>"

[patch] make auth_ntlm compile if NTLM_FAIL_OPEN is defined
ntlm/auth_ntlm.cc: In function `stateful_helper_callback_t
   authenticateNTLMHandleReply(void*, void*, char*)':
ntlm/auth_ntlm.cc:601: error: invalid conversion from `void*' to `
   ntlm_helper_state_t*'

[patch] make useragent and referer log stuff compile
Can't use class RefCount where a bool is expected says gcc 3.3.1
I guess this is the right fix :)

[patch] pam_auth has to be installed setuid root
pam_auth has to be setuid root for it to work.
this could apply to 2.5 too.

35 files changed:
.cvsignore
helpers/.cvsignore
helpers/basic_auth/LDAP/.cvsignore
helpers/basic_auth/MSNT/.cvsignore
helpers/basic_auth/NCSA/.cvsignore
helpers/basic_auth/PAM/.cvsignore
helpers/basic_auth/PAM/Makefile.am
helpers/basic_auth/PAM/Makefile.in
helpers/basic_auth/SMB/.cvsignore
helpers/basic_auth/getpwnam/.cvsignore
helpers/basic_auth/winbind/.cvsignore
helpers/digest_auth/password/.cvsignore
helpers/ntlm_auth/SMB/.cvsignore
helpers/ntlm_auth/SMB/smbval/rfcnb-util.c
helpers/ntlm_auth/SMB/smbval/session.c
helpers/ntlm_auth/SMB/smbval/smblib-util.c
helpers/ntlm_auth/SMB/smbval/smblib.c
helpers/ntlm_auth/fakeauth/.cvsignore
helpers/ntlm_auth/winbind/.cvsignore
lib/libTrie/.cvsignore
src/.cvsignore
src/IPInterception.cc
src/auth/basic/.cvsignore
src/auth/digest/.cvsignore
src/auth/ntlm/.cvsignore
src/auth/ntlm/auth_ntlm.cc
src/client_side_request.cc
src/fs/aufs/.cvsignore
src/fs/coss/.cvsignore
src/fs/diskd/.cvsignore
src/fs/null/.cvsignore
src/fs/ufs/.cvsignore
src/repl/.cvsignore
src/repl/heap/.cvsignore
src/repl/lru/.cvsignore

index cdfff08ace02a766ee47dc7260282db28f775342..ce401912e552172b9afe76cca92067a8f7033820 100644 (file)
@@ -1,4 +1,3 @@
 Makefile
 config.*
 autom4te*
-makefile
index 7bda5c8c8840563bbdec435450f36e3face6a6f6..f3c7a7c5da68804a1bdf391127ba34aed33c3cca 100644 (file)
@@ -1,2 +1 @@
-.cvsignore
 Makefile
index 63f8570f9f040884137c41e90780b02c8a41c50e..3ecf279f01e0b6f59d3e78c32ec4f1bff3497326 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+squid_ldap_auth
index 63f8570f9f040884137c41e90780b02c8a41c50e..b6e9dda3901c8d65030cec1d6633d6d55d4af595 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+msnt_auth
index 63f8570f9f040884137c41e90780b02c8a41c50e..d224ea88e5306671a2eebd9737866e048b375f91 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+ncsa_auth
index 63f8570f9f040884137c41e90780b02c8a41c50e..29e2d7b1608af74b9c9777781a50a16405c48fa4 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+pam_auth
index 1578cadd88a6feb387a71e7a7634c893d3c65b68..d8bf599fe8b0b71d612f6c2931fd35bbe5b0bcf3 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Makefile for the Squid PAM authentication helper
 #
-#  $Id: Makefile.am,v 1.5 2003/01/23 00:35:35 robertc Exp $
+#  $Id: Makefile.am,v 1.6 2003/08/03 08:09:07 robertc Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -12,3 +12,7 @@ man_MANS              = pam_auth.8
 EXTRA_DIST             = pam_auth.8
 libexec_PROGRAMS       = pam_auth
 LDADD                  = -L$(top_builddir)/lib -lmiscutil -lpam $(XTRA_LIBS)
+
+install-exec-hook:
+       chown root $(libexecdir)/pam_auth || true
+       chmod u+s $(libexecdir)/pam_auth || true
index 6873bf3c4ac09067b4d344fed6a5c1fa1e53c650..dd25c783cf42f0d7ccff634b3c882e4de4a6b520 100644 (file)
@@ -17,7 +17,7 @@
 #
 #  Makefile for the Squid PAM authentication helper
 #
-#  $Id: Makefile.in,v 1.44 2003/07/23 00:13:44 hno Exp $
+#  $Id: Makefile.in,v 1.45 2003/08/03 08:09:07 robertc Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -499,6 +499,8 @@ info-am:
 install-data-am: install-man
 
 install-exec-am: install-libexecPROGRAMS
+       @$(NORMAL_INSTALL)
+       $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
 
 install-info: install-info-am
 
@@ -538,6 +540,10 @@ uninstall-man: uninstall-man8
        ps ps-am tags uninstall uninstall-am uninstall-info-am \
        uninstall-libexecPROGRAMS uninstall-man uninstall-man8
 
+
+install-exec-hook:
+       chown root $(libexecdir)/pam_auth || true
+       chmod u+s $(libexecdir)/pam_auth || true
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
index 63f8570f9f040884137c41e90780b02c8a41c50e..09593ba8da036bbf0318a0a557255a21b96df9dc 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+smb_auth
index 63f8570f9f040884137c41e90780b02c8a41c50e..13ebf81cb3f2d77ee3e75e4d00d5323741904596 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+getpwname_auth
index 63f8570f9f040884137c41e90780b02c8a41c50e..59dafef00f46e0a887242f6c3be651258f19236f 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+wb_auth
index 63f8570f9f040884137c41e90780b02c8a41c50e..50106a2accef579f0be9734abb5b367f08eb8b64 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+digest_pw_auth
index 63f8570f9f040884137c41e90780b02c8a41c50e..26c24fc14601d8a6614378f7e449d68cd424afd0 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+ntlm_auth
index 5df94e37fe5999584ee158b773b8601025ef611d..a293dab9dd401292f8923f2765338c985e73a9ef 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 #include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
 
 #include "std-includes.h"
 #include "rfcnb-priv.h"
index f646ecdb11c20202e5b1c3d159cb524efe222bc0..361a8f886aece7bf4b546fe01d127e6ca9f6b54b 100644 (file)
@@ -23,7 +23,6 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <malloc.h>
 #include <string.h>
 #include <stdlib.h>
 
index ffb1fccb8eace6a9b72081282502998cdbb8e673..5c5ea7f8c7474ee2c7431135f77d880c9655bc84 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 #include "smblib-priv.h"
-#include <malloc.h>
+#include <stdlib.h>
 #include <string.h>
 
 #include "rfcnb.h"
index 996141bdcd6341521dabd9ce4566d974e151ae36..0e71e5db97d263e5e2cce1e7104588b09c8eb2ab 100644 (file)
@@ -25,7 +25,7 @@
  */
 
 #include "config.h"
-#include <malloc.h>
+#include <stdlib.h>
 #include <ctype.h>
 #include <string.h>
 
index 63f8570f9f040884137c41e90780b02c8a41c50e..a809eec86a83fedf966d38bf461fbf65a9f1e1c8 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+fakeauth_auth
index 63f8570f9f040884137c41e90780b02c8a41c50e..f92311e747695b29c2c01185218e5b64708c6723 100644 (file)
@@ -1,2 +1,3 @@
 .deps
 Makefile
+wb_ntlmauth
index cdfff08ace02a766ee47dc7260282db28f775342..22f800cb6394991ca89a23e59eff7a06f72414a3 100644 (file)
@@ -1,4 +1,4 @@
 Makefile
 config.*
 autom4te*
-makefile
+stamp-h1
index e94fcf0e7ee5af9bf08d7f06e5bc3f2f27582e17..5ef4e288c883357e88c0d9a1e6dce91d053ee720 100644 (file)
@@ -1,18 +1,17 @@
 .deps
 Makefile
-auth_modules.c
+auth_modules.cc
+cachemgr.cgi
 cf.data
+cf_gen
 cf_gen_defines.h
-cf_parser.c
 cf_parser.h
-globals.c
-repl_modules.c
-squid.conf
-squid.conf.default
-store_modules.c
-string_arrays.c
-cachemgr
-cf_gen
+dnsserver
+globals.cc
+pinger
+repl_modules.cc
 squid
+squid.conf.default
 squidclient
+string_arrays.c
 unlinkd
index c658f312b96448a3287fb9d06697d522e7a43428..c1944f810eb26c64c36d9ab1d0e14f65d72a7744 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: IPInterception.cc,v 1.6 2003/02/21 22:50:05 robertc Exp $
+ * $Id: IPInterception.cc,v 1.7 2003/08/03 08:09:26 robertc Exp $
  *
  * DEBUG: section 89    NAT / IP Interception 
  * AUTHOR: Robert Collins
@@ -149,11 +149,6 @@ clientNatLookup(int fd, struct sockaddr_in me, struct sockaddr_in peer, struct s
 
         return 0;
     }
-    else
-    {
-        return -1;
-    }
-}
 }
 
 #elif LINUX_NETFILTER
index 0881ecd5b66691c0496c7e69461709263e6e40e2..ec96903b9d05c45b7fb9e6f057c456661be09b81 100644 (file)
@@ -1,2 +1,2 @@
+.deps
 .dirstamp
-Makefile
index 0881ecd5b66691c0496c7e69461709263e6e40e2..ec96903b9d05c45b7fb9e6f057c456661be09b81 100644 (file)
@@ -1,2 +1,2 @@
+.deps
 .dirstamp
-Makefile
index f3c7a7c5da68804a1bdf391127ba34aed33c3cca..ec96903b9d05c45b7fb9e6f057c456661be09b81 100644 (file)
@@ -1 +1,2 @@
-Makefile
+.deps
+.dirstamp
index ce18661ed4b028625cc1f2a180e518db63d4357d..c4d1ac1c5d573cdcd37d2c9e45be69e839cff47e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: auth_ntlm.cc,v 1.34 2003/07/14 14:16:21 robertc Exp $
+ * $Id: auth_ntlm.cc,v 1.35 2003/08/03 08:09:30 robertc Exp $
  *
  * DEBUG: section 29    NTLM Authenticator
  * AUTHOR: Robert Collins
@@ -598,7 +598,7 @@ authenticateNTLMHandleReply(void *data, void *lastserver, char *reply)
         /* we only expect LD when finishing the handshake */
         assert(ntlm_request->auth_state == AUTHENTICATE_STATE_RESPONSE);
         ntlm_user->username = xstrndup(reply, MAX_LOGIN_SZ);
-        helperstate = helperStatefulServerGetData(ntlm_request->authserver);
+        helperstate = static_cast<ntlm_helper_state_t *>(helperStatefulServerGetData(ntlm_request->authserver));
         ntlm_request->authserver = NULL;
         /* BH code: mark helper as broken */
         /* mark it for starving */
index 43cfc176b54aaf0f8b05ef7624d9816d91d416e3..5763cd3c7b7c1ef7e6f9e416bf72509171672ac6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_request.cc,v 1.28 2003/07/14 15:07:21 robertc Exp $
+ * $Id: client_side_request.cc,v 1.29 2003/08/03 08:09:26 robertc Exp $
  * 
  * DEBUG: section 85    Client-side Request Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -674,13 +674,13 @@ clientInterpretRequestHeaders(clientHttpRequest * http)
 
 #if USE_USERAGENT_LOG
     if ((str = httpHeaderGetStr(req_hdr, HDR_USER_AGENT)))
-        logUserAgent(fqdnFromAddr(http->getConn() ? http->getConn()->log_addr : no_addr), str);
+        logUserAgent(fqdnFromAddr(http->getConn().getRaw() ? http->getConn()->log_addr : no_addr), str);
 
 #endif
 #if USE_REFERER_LOG
 
     if ((str = httpHeaderGetStr(req_hdr, HDR_REFERER)))
-        logReferer(fqdnFromAddr(http->getConn() ? http->getConn()->log_addr : no_addr), str, http->log_uri);
+        logReferer(fqdnFromAddr(http->getConn().getRaw() ? http->getConn()->log_addr : no_addr), str, http->log_uri);
 
 #endif
 #if FORW_VIA_DB
index 0881ecd5b66691c0496c7e69461709263e6e40e2..ec96903b9d05c45b7fb9e6f057c456661be09b81 100644 (file)
@@ -1,2 +1,2 @@
+.deps
 .dirstamp
-Makefile
index f3c7a7c5da68804a1bdf391127ba34aed33c3cca..ec96903b9d05c45b7fb9e6f057c456661be09b81 100644 (file)
@@ -1 +1,2 @@
-Makefile
+.deps
+.dirstamp
index ba68552b4e4cf19258fb3c38d762de9c33e734ea..2e618e39f1295bb4e17fe3f7f3ffb2df382ce2c4 100644 (file)
@@ -1,3 +1,3 @@
 .deps
-Makefile
+.dirstamp
 diskd
index 0881ecd5b66691c0496c7e69461709263e6e40e2..ec96903b9d05c45b7fb9e6f057c456661be09b81 100644 (file)
@@ -1,2 +1,2 @@
+.deps
 .dirstamp
-Makefile
index 0881ecd5b66691c0496c7e69461709263e6e40e2..ec96903b9d05c45b7fb9e6f057c456661be09b81 100644 (file)
@@ -1,2 +1,2 @@
+.deps
 .dirstamp
-Makefile
index a09ad2358e3486e9454a81f0b42366768757e050..63f8570f9f040884137c41e90780b02c8a41c50e 100644 (file)
@@ -1,3 +1,2 @@
 .deps
 Makefile
-stamp
index f3c7a7c5da68804a1bdf391127ba34aed33c3cca..5d91176542ee30d60974b7923bca5d3a292be1ca 100644 (file)
@@ -1 +1,3 @@
+.deps
+.dirstamp
 Makefile
index 0881ecd5b66691c0496c7e69461709263e6e40e2..5d91176542ee30d60974b7923bca5d3a292be1ca 100644 (file)
@@ -1,2 +1,3 @@
+.deps
 .dirstamp
 Makefile