]> git.ipfire.org Git - thirdparty/squid.git/blob - src/AuthReg.cc
Renamed squid.h to squid-old.h and config.h to squid.h
[thirdparty/squid.git] / src / AuthReg.cc
1 #include "squid.h"
2
3 #if USE_AUTH
4
5 #if HAVE_AUTH_MODULE_BASIC
6 #include "auth/basic/Scheme.h"
7 #endif
8 #if HAVE_AUTH_MODULE_DIGEST
9 #include "auth/digest/Scheme.h"
10 #endif
11 #if HAVE_AUTH_MODULE_NEGOTIATE
12 #include "auth/negotiate/Scheme.h"
13 #endif
14 #if HAVE_AUTH_MODULE_NTLM
15 #include "auth/ntlm/Scheme.h"
16 #endif
17
18 #include "Debug.h"
19 #include "protos.h"
20
21 /**
22 * Initialize the authentication modules (if any)
23 * This is required once, before any configuration actions are taken.
24 */
25 void
26 Auth::Init()
27 {
28 debugs(29,DBG_IMPORTANT,"Startup: Initializing Authentication Schemes ...");
29 #if HAVE_AUTH_MODULE_BASIC
30 static const char *basic_type = Auth::Basic::Scheme::GetInstance()->type();
31 debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication Scheme '" << basic_type << "'");
32 #endif
33 #if HAVE_AUTH_MODULE_DIGEST
34 static const char *digest_type = Auth::Digest::Scheme::GetInstance()->type();
35 debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication Scheme '" << digest_type << "'");
36 #endif
37 #if HAVE_AUTH_MODULE_NEGOTIATE
38 static const char *negotiate_type = Auth::Negotiate::Scheme::GetInstance()->type();
39 debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication Scheme '" << negotiate_type << "'");
40 #endif
41 #if HAVE_AUTH_MODULE_NTLM
42 static const char *ntlm_type = Auth::Ntlm::Scheme::GetInstance()->type();
43 debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication Scheme '" << ntlm_type << "'");
44 #endif
45 debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication.");
46 }
47
48 #endif /* USE_AUTH */