Scheme.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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#include "auth/ntlm/Config.h"
11#include "auth/ntlm/Scheme.h"
13#include "debug/Messages.h"
14#include "debug/Stream.h"
15#include "helper.h"
16
18{
19public:
20 /* RegisteredRunner API */
21 void bootstrapConfig() override {
22 const char *type = Auth::Ntlm::Scheme::GetInstance()->type();
23 debugs(29, 2, "Initialized Authentication Scheme '" << type << "'");
24 }
25};
27
29Auth::Ntlm::Scheme::GetInstance()
30{
31 static Auth::Scheme::Pointer _instance;
32
33 if (!_instance) {
34 _instance = new Auth::Ntlm::Scheme();
35 AddScheme(_instance);
36 }
37 return _instance;
38}
39
40char const *
41Auth::Ntlm::Scheme::type() const
42{
43 return "ntlm";
44}
45
46void
47Auth::Ntlm::Scheme::shutdownCleanup()
48{
49 // TODO: destruct any active Ntlm::Config objects via runner
50 debugs(29, 2, "Shutdown: NTLM authentication.");
51}
52
54Auth::Ntlm::Scheme::createConfig()
55{
57 return dynamic_cast<Auth::SchemeConfig*>(ntlmCfg);
58}
59
class SquidConfig Config
Definition: SquidConfig.cc:12
void bootstrapConfig() override
Definition: Scheme.cc:21
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Stream.h:193
RunnerRegistrationEntry(NtlmAuthRr)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors