Scheme.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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/basic/Config.h"
11 #include "auth/basic/Scheme.h"
12 #include "Debug.h"
13 #include "helper.h"
14 
15 Auth::Scheme::Pointer Auth::Basic::Scheme::_instance = NULL;
16 
18 Auth::Basic::Scheme::GetInstance()
19 {
20  if (_instance == NULL) {
21  _instance = new Auth::Basic::Scheme();
22  AddScheme(_instance);
23  }
24  return _instance;
25 }
26 
27 char const *
29 {
30  return "basic";
31 }
32 
33 void
34 Auth::Basic::Scheme::shutdownCleanup()
35 {
36  if (_instance == NULL)
37  return;
38 
39  _instance = NULL;
40  debugs(29, DBG_CRITICAL, "Shutdown: Basic authentication.");
41 }
42 
44 Auth::Basic::Scheme::createConfig()
45 {
47  return dynamic_cast<Auth::SchemeConfig*>(newCfg);
48 }
49 
int type
Definition: errorpage.cc:79
#define DBG_CRITICAL
Definition: Debug.h:44
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Debug.h:123
class SquidConfig Config
Definition: SquidConfig.cc:12
#define NULL
Definition: types.h:166

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors