]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/ntlm/Scheme.cc
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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.
10 #include "auth/ntlm/Config.h"
11 #include "auth/ntlm/Scheme.h"
12 #include "base/RunnersRegistry.h"
13 #include "debug/Messages.h"
14 #include "debug/Stream.h"
17 class NtlmAuthRr
: public RegisteredRunner
20 /* RegisteredRunner API */
21 virtual void bootstrapConfig() override
{
22 const char *type
= Auth::Ntlm::Scheme::GetInstance()->type();
23 debugs(29, 2, "Initialized Authentication Scheme '" << type
<< "'");
26 RunnerRegistrationEntry(NtlmAuthRr
);
29 Auth::Ntlm::Scheme::GetInstance()
31 static Auth::Scheme::Pointer _instance
;
34 _instance
= new Auth::Ntlm::Scheme();
41 Auth::Ntlm::Scheme::type() const
47 Auth::Ntlm::Scheme::shutdownCleanup()
49 // TODO: destruct any active Ntlm::Config objects via runner
50 debugs(29, 2, "Shutdown: NTLM authentication.");
54 Auth::Ntlm::Scheme::createConfig()
56 Auth::Ntlm::Config
*ntlmCfg
= new Auth::Ntlm::Config
;
57 return dynamic_cast<Auth::SchemeConfig
*>(ntlmCfg
);