]>
Commit | Line | Data |
---|---|---|
5817ee13 | 1 | #include "config.h" |
2f1431ea AJ |
2 | |
3 | #if USE_AUTH | |
4 | ||
5817ee13 AJ |
5 | #include "Debug.h" |
6 | #include "protos.h" | |
f07e9e1f | 7 | |
5817ee13 | 8 | #if HAVE_AUTH_MODULE_BASIC |
616cfc4c | 9 | #include "auth/basic/Scheme.h" |
f07e9e1f | 10 | #endif |
5817ee13 | 11 | #if HAVE_AUTH_MODULE_DIGEST |
616cfc4c | 12 | #include "auth/digest/Scheme.h" |
f07e9e1f | 13 | #endif |
5817ee13 | 14 | #if HAVE_AUTH_MODULE_NEGOTIATE |
616cfc4c | 15 | #include "auth/negotiate/Scheme.h" |
f07e9e1f | 16 | #endif |
5817ee13 | 17 | #if HAVE_AUTH_MODULE_NTLM |
616cfc4c | 18 | #include "auth/ntlm/Scheme.h" |
f07e9e1f CT |
19 | #endif |
20 | ||
5817ee13 AJ |
21 | /** |
22 | * Initialize the authentication modules (if any) | |
23 | * This is required once, before any configuration actions are taken. | |
24 | */ | |
25 | void | |
26 | InitAuthSchemes() | |
27 | { | |
28 | debugs(29,1,"Initializing Authentication Schemes ..."); | |
29 | #if HAVE_AUTH_MODULE_BASIC | |
30 | static const char *basic_type = basicScheme::GetInstance()->type(); | |
31 | debugs(29,1,"Initialized Authentication Scheme '" << basic_type << "'"); | |
32 | #endif | |
33 | #if HAVE_AUTH_MODULE_DIGEST | |
34 | static const char *digest_type = digestScheme::GetInstance()->type(); | |
35 | debugs(29,1,"Initialized Authentication Scheme '" << digest_type << "'"); | |
36 | #endif | |
37 | #if HAVE_AUTH_MODULE_NEGOTIATE | |
38 | static const char *negotiate_type = negotiateScheme::GetInstance()->type(); | |
39 | debugs(29,1,"Initialized Authentication Scheme '" << negotiate_type << "'"); | |
40 | #endif | |
41 | #if HAVE_AUTH_MODULE_NTLM | |
42 | static const char *ntlm_type = ntlmScheme::GetInstance()->type(); | |
43 | debugs(29,1,"Initialized Authentication Scheme '" << ntlm_type << "'"); | |
44 | #endif | |
45 | debugs(29,1,"Initializing Authentication Schemes Complete."); | |
46 | } | |
2f1431ea AJ |
47 | |
48 | #endif /* USE_AUTH */ |