]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 1996-2025 The Squid Software Foundation and contributors | |
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 | ||
9 | #include "squid.h" | |
10 | ||
11 | #if USE_AUTH | |
12 | #include "AuthReg.h" | |
13 | ||
14 | #if HAVE_AUTH_MODULE_BASIC | |
15 | #include "auth/basic/Scheme.h" | |
16 | #endif | |
17 | #if HAVE_AUTH_MODULE_DIGEST | |
18 | #include "auth/digest/Scheme.h" | |
19 | #endif | |
20 | #if HAVE_AUTH_MODULE_NEGOTIATE | |
21 | #include "auth/negotiate/Scheme.h" | |
22 | #endif | |
23 | ||
24 | #include "debug/Stream.h" | |
25 | ||
26 | /** | |
27 | * Initialize the authentication modules (if any) | |
28 | * This is required once, before any configuration actions are taken. | |
29 | */ | |
30 | void | |
31 | Auth::Init() | |
32 | { | |
33 | debugs(29, 2, "Initializing Authentication Schemes ..."); | |
34 | #if HAVE_AUTH_MODULE_BASIC | |
35 | static const char *basic_type = Auth::Basic::Scheme::GetInstance()->type(); | |
36 | debugs(29, 2, "Initialized Authentication Scheme '" << basic_type << "'"); | |
37 | #endif | |
38 | #if HAVE_AUTH_MODULE_DIGEST | |
39 | static const char *digest_type = Auth::Digest::Scheme::GetInstance()->type(); | |
40 | debugs(29, 2, "Initialized Authentication Scheme '" << digest_type << "'"); | |
41 | #endif | |
42 | #if HAVE_AUTH_MODULE_NEGOTIATE | |
43 | static const char *negotiate_type = Auth::Negotiate::Scheme::GetInstance()->type(); | |
44 | debugs(29, 2, "Initialized Authentication Scheme '" << negotiate_type << "'"); | |
45 | #endif | |
46 | } | |
47 | ||
48 | #endif /* USE_AUTH */ | |
49 |