]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 Mar 2009 11:51:28 +0000 (00:51 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 Mar 2009 11:51:28 +0000 (00:51 +1300)
Imporing the AuthReg.cc file.

This file is a hack to force required libraries and object files under
the auth/* included in main squid executable.

src/AuthReg.cc [new file with mode: 0644]
src/Makefile.am

diff --git a/src/AuthReg.cc b/src/AuthReg.cc
new file mode 100644 (file)
index 0000000..dce94ec
--- /dev/null
@@ -0,0 +1,35 @@
+#include "squid.h"
+
+
+#ifdef HAVE_AUTH_MODULE_BASIC
+#include "auth/basic/basicScheme.h"
+#endif
+
+#ifdef HAVE_AUTH_MODULE_NTLM
+#include "auth/ntlm/ntlmScheme.h"
+#endif
+
+#ifdef HAVE_AUTH_MODULE_DIGEST
+#include "auth/digest/digestScheme.h"
+#endif
+
+#ifdef HAVE_AUTH_MODULE_NEGOTIATE
+#include "auth/negotiate/negotiateScheme.h"
+#endif
+
+#ifdef HAVE_AUTH_MODULE_BASIC
+static const char *basic_type = basicScheme::GetInstance().type();
+#endif
+
+#ifdef HAVE_AUTH_MODULE_NTLM
+static const char *ntlm_type = ntlmScheme::GetInstance().type();
+#endif
+
+#ifdef HAVE_AUTH_MODULE_DIGEST
+static const char *digest_type = digestScheme::GetInstance().type();
+#endif
+
+#ifdef HAVE_AUTH_MODULE_NEGOTIATE
+static const char *negotiate_type = negotiateScheme::GetInstance().type();
+#endif
+
index 7bbd6539ec4898a28aceb3980a2bc7ef917bfac2..c9420755d690b3c3bf8fa1f3fb7c8b792396043c 100644 (file)
@@ -217,7 +217,7 @@ cf_gen_LDADD= \
 cf_gen.$(OBJEXT): cf_gen_defines.h
 
 
-ACL_REGISTRATION_SOURCES = AclRegs.cc
+ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
 
 DISKIO_SOURCE = \
        DiskIO/DiskIOModule.cc \