squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
auth
negotiate
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/negotiate/Config.h
"
11
#include "
auth/negotiate/Scheme.h
"
12
#include "
debug/Messages.h
"
13
#include "
debug/Stream.h
"
14
#include "helper.h"
15
16
Auth::Scheme::Pointer
Auth::Negotiate::Scheme::_instance =
nullptr
;
17
18
Auth::Scheme::Pointer
19
Auth::Negotiate::Scheme::GetInstance()
20
{
21
if
(_instance ==
nullptr
) {
22
_instance =
new
Auth::Negotiate::Scheme();
23
AddScheme(_instance);
24
}
25
return
_instance;
26
}
27
28
char
const
*
29
Auth::Negotiate::Scheme::type()
const
30
{
31
return
"negotiate"
;
32
}
33
34
void
35
Auth::Negotiate::Scheme::shutdownCleanup()
36
{
37
if
(_instance ==
nullptr
)
38
return
;
39
40
_instance =
nullptr
;
41
debugs
(29,
Critical
(60),
"Shutdown: Negotiate authentication."
);
42
}
43
44
Auth::SchemeConfig
*
45
Auth::Negotiate::Scheme::createConfig()
46
{
47
Auth::Negotiate::Config
*negotiateCfg =
new
Auth::Negotiate::Config
;
48
return
dynamic_cast<
Auth::SchemeConfig
*
>
(negotiateCfg);
49
}
50
Config
class SquidConfig Config
Definition:
SquidConfig.cc:12
Config.h
Auth::SchemeConfig
Definition:
SchemeConfig.h:47
RefCount
Definition:
RefCount.h:28
Messages.h
Critical
#define Critical(id)
Definition:
Messages.h:92
Stream.h
debugs
#define debugs(SECTION, LEVEL, CONTENT)
Definition:
Stream.h:194
Scheme.h
squid.h
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
pl
...
full list
FTP Package Archive