]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
bbc27441 AJ |
3 | * |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
f7f3304a | 9 | #include "squid.h" |
2f1431ea AJ |
10 | |
11 | #if USE_AUTH | |
89736861 | 12 | #include "AuthReg.h" |
2f1431ea | 13 | |
5817ee13 | 14 | #if HAVE_AUTH_MODULE_BASIC |
616cfc4c | 15 | #include "auth/basic/Scheme.h" |
f07e9e1f | 16 | #endif |
5817ee13 | 17 | #if HAVE_AUTH_MODULE_DIGEST |
616cfc4c | 18 | #include "auth/digest/Scheme.h" |
f07e9e1f | 19 | #endif |
5817ee13 | 20 | #if HAVE_AUTH_MODULE_NEGOTIATE |
616cfc4c | 21 | #include "auth/negotiate/Scheme.h" |
f07e9e1f | 22 | #endif |
5817ee13 | 23 | #if HAVE_AUTH_MODULE_NTLM |
616cfc4c | 24 | #include "auth/ntlm/Scheme.h" |
f07e9e1f CT |
25 | #endif |
26 | ||
ccd8a22a | 27 | #include "Debug.h" |
ccd8a22a | 28 | |
5817ee13 AJ |
29 | /** |
30 | * Initialize the authentication modules (if any) | |
31 | * This is required once, before any configuration actions are taken. | |
32 | */ | |
33 | void | |
ccd8a22a | 34 | Auth::Init() |
5817ee13 | 35 | { |
ccd8a22a | 36 | debugs(29,DBG_IMPORTANT,"Startup: Initializing Authentication Schemes ..."); |
5817ee13 | 37 | #if HAVE_AUTH_MODULE_BASIC |
d6374be6 | 38 | static const char *basic_type = Auth::Basic::Scheme::GetInstance()->type(); |
ccd8a22a | 39 | debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication Scheme '" << basic_type << "'"); |
5817ee13 AJ |
40 | #endif |
41 | #if HAVE_AUTH_MODULE_DIGEST | |
d6374be6 | 42 | static const char *digest_type = Auth::Digest::Scheme::GetInstance()->type(); |
ccd8a22a | 43 | debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication Scheme '" << digest_type << "'"); |
5817ee13 AJ |
44 | #endif |
45 | #if HAVE_AUTH_MODULE_NEGOTIATE | |
d6374be6 | 46 | static const char *negotiate_type = Auth::Negotiate::Scheme::GetInstance()->type(); |
ccd8a22a | 47 | debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication Scheme '" << negotiate_type << "'"); |
5817ee13 AJ |
48 | #endif |
49 | #if HAVE_AUTH_MODULE_NTLM | |
d6374be6 | 50 | static const char *ntlm_type = Auth::Ntlm::Scheme::GetInstance()->type(); |
ccd8a22a | 51 | debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication Scheme '" << ntlm_type << "'"); |
5817ee13 | 52 | #endif |
ccd8a22a | 53 | debugs(29,DBG_IMPORTANT,"Startup: Initialized Authentication."); |
5817ee13 | 54 | } |
2f1431ea AJ |
55 | |
56 | #endif /* USE_AUTH */ | |
f53969cc | 57 |